Adds a SOAP response header to a web service response. Call only from within a CFC web service function that is processing a request as a SOAP web service.
addSOAPResponseHeader(namespace, name, value [, mustUnderstand])
→ returns boolean
true
ws = createObject("webservice", "http://localhost/soapheaders/headerservice.cfc?WSDL");
addSOAPRequestHeader(ws, "http://mynamespace/", "username", "tom", false);
ret = ws.echo_me("argument");
header = getSOAPResponseHeader(ws, "http://www.tomj.org/myns", "returnheader");
XMLheader = getSOAPResponseHeader(ws, "http://www.tomj.org/myns", "returnheader", true);
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.