addSOAPRequestHeader

Adds a SOAP header to a web service request before making the request.

addSOAPRequestHeader(webservice, namespace, name, value, mustunderstand) → returns boolean

addSOAPRequestHeader Argument Reference

webservice
Required

No Help Available

namespace
Required

No Help Available

name
Required

No Help Available

value
Required

No Help Available

mustunderstand
Required

No Help Available

Examples sample code invoking the addSOAPRequestHeader function


Tag Syntax

<h3>addSOAPRequestHeader Example</h3> 
 <cfscript> 
     // Create the web service object. 
     ws = createObject("webservice", "http://localhost/soapheaders/headerservice.cfc?WSDL"); 
     // Set the username header as a string. 
 addSOAPRequestHeader(ws, "http://mynamespace/", "username", "tom", false); 
 </cfscript>

Fork me on GitHub