getSOAPRequest

Returns an XML object that contains the entire SOAP
request. Usually called from within a web service CFC.

getSOAPRequest(webservice) → returns any

Argument Reference

webservice any

A webservice object as returned from the cfobject tag or the CreateObject function

Examples
Sample code invoking the getSOAPRequest function

Create a SOAP webservice to call, then we can use getSOAPRequest() to view the request

soapURL = "https://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl";
ws = CreateObject("webservice", soapURL);
zipLatLong = ws.LatLonListZipCode("10001");
req = getSOAPRequest(ws);
writeDump(req);

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub