ColdFusion 9.0 Resources |
GetSOAPResponseDescriptionReturns an XML object that contains the entire SOAP response after invoking a web service. See alsoAddSOAPRequestHeader, AddSOAPResponseHeader, GetSOAPRequest, GetSOAPRequestHeader, GetSOAPResponseHeader, IsSOAPRequest; Basic web service concepts in the Developing ColdFusion Applications Parameters
UsageInvoke the web service before attempting to get the response. You can use CFML XML functions to examine the XML response. ExampleThis example makes a request to execute the echo_me function of the headerservice.cfc web service. Following the request, the example calls the GetSOAPResponse function to get the SOAP response, and then calls cfdump to display its content. for information on implementing the headerservice.cfc web service and also to see the echo_me function and the content of the web service CFC, see the example for either the AddSOAPResponseHeader function or the GetSOAPRequestHeader function. <!--- Note that you might need to modify the URL in the CreateObject function to match your server and the location of the headerservice.cfc file if it is different than shown here. ---> <cfscript> ws = CreateObject("webservice", "http://localhost/soapheaders/headerservice.cfc?WSDL"); ws.echo_me("hello world"); resp = getSOAPResponse(ws); </cfscript> <cfdump var="#resp#"> |