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"__ "[](">_ "[](" xmlns: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}


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 →