Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 1118

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
Using request and response headers
ColdFusion includes a set of functions that enable your web service to get and set request and response headers. You
use these functions to retrieve the response headers from a web service request and to create SOAP headers in a request
that has the
mustUnderstand
You typically use different functions in web services clients and in the web service CFC, itself:
In the client:
• AddSOAPRequestHeader, called before the request to set a SOAP header.
• GetSOAPResponseHeader, called after the request to retrieve a SOAP header.
• GetSOAPResponse, called after the request to retrieve a SOAP response.
In the web service CFC:
• IsSOAPRequest, called to determine whether the CFC method is being called as a web service.
• GetSOAPRequestHeader, called to retrieve a SOAP header set by the client.
• GetSOAPRequest, called to retrieve a SOAP request sent by the client.
• AddSOAPResponseHeader, called to set a SOAP header that is returned to the client.
Note: When used in a CFC, you can only use these functions in CFC methods if they are being used as web services. Use
the
function to determine whether the CFC method is being called as a web service.
IsSOAPRequest
The following example CFM page uses the
functions:
attribute set to be True.
AddSOAPRequestHeader
Last updated 1/20/2012
,
, and
getSOAPRequest
GetSOAPResponse
1113

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents