Print
How do I add SOAP headers on a client invocation

You can register a Handler with the SoapClient to perform some processing and output any custom headers as part of a SOAP client invocation.

e.g.

SoapClient client = ...;
Handler myHandler = ...;
client.addHeaderHandler(myHandler);
response = client.invoke(body);
Powered by Atlassian Confluence