Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 1125

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using Web Elements and External Objects
<complexType name="ArrayOf_SOAP-ENC_Array">
<complexContent>
<restriction base="SOAP-ENC:Array">
<attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="SOAP-ENC:Array[]" />
</restriction>
</complexContent>
</complexType>
<complexType name="ArrayOf_SOAP-ENC_string">
<complexContent>
<restriction base="SOAP-ENC:Array">
<attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]" />
</restriction>
</complexContent>
</complexType>
Troubleshooting SOAP requests and responses
ColdFusion provides the following facilities for troubleshooting SOAP requests and responses:
• The
and
getSOAPRequest
• The TCP monitor.
Viewing SOAP requests and responses
You can use the
getSOAPRequest
from a web service. Although advanced users can use this information for custom functionality, you typically use these
functions for debugging.
Use these functions in the following places:
Clients call this function after the web service request; web service CFCs call this function in
GetSOAPRequest
the web service CFC method.
Clients call this function after the web service request completes; web service CFCs cannot use
GetSOAPResponse
this method.
The following example uses the
<cfscript>
ws = CreateObject("webservice", "http://localhost:8500/soapexamples/tester.cfc?WSDL");
addSOAPRequestHeader(ws, "http://mynamespace/", "username", "randy");
ret = ws.echo_me("value");
</cfscript>
<cfset soapreq = GetSOAPRequest(ws)>
<h2>SOAP Request</h2>
<cfdump var="#soapreq#">
<cfset soapresp = GetSOAPResponse(ws)>
<h2>SOAP Response</h2>
<cfdump var="#soapresp#">
...
The following example uses the
functions.
getSOAPResponse
and
getSOAPResponse
and
GetSOAPRequest
GetSOAPResponse
function in a web service CFC method:
GetSOAPRequest
Last updated 1/20/2012
functions to retrieve and display the XML passed to and
functions in a web service client:
1120

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents