Make SOAP based Web service calls with Spry


By David Fekke
January 17th, 2011

I decided to try to use Spry to make a SOAP based web service call using a ColdFusion CFC for the web service.

Spry 1.1 allows developers to make GET and POST method calls for DataSets. Here is an example I wrote that calls one of my quote web services;

"_-//W3C//DTD XHTML 1.0 Transitional//EN"__ "[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)">_ "[http://www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)" xmlns:spry="[http://ns.adobe.com/spry](http://ns.adobe.com/spry)"> "Content-Type" content="text/html; charset=iso-8859-1" /> </font>Call Webservice<font color="NAVY">



<div id="Specials_DIV" spry:region="dsData">
Episode: {episode}

{quote}

Stardate: {stardate}


<input type="button" name="Do something" value="Get Quote" onclick="dsData.loadData();" />

The trick to getting this to work is setting the header attribute for the XMLDataSet method with a SOAPAction method.

← Previous Page  Next Page →