addSOAPRequestHeader

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

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

Argument Reference for the addSOAPRequestHeader function

webservice

Required: Yes
No Help Available

namespace

Required: Yes
No Help Available

name

Required: Yes
No Help Available

value

Required: Yes
No Help Available

mustunderstand

Required: Yes
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