Java method to add SOAP header


/ Published in: Java
Save to your folder(s)

Some webservices require a SOAP header to be added to requests (typically with authentication information). For Domino webservice consumer code, this can be handled by extending the generated stub class and rewriting the service calls that are being used. Those methods all execute a 'createCall'. After you have a handle to the call, you can call this custom method to add headers to it.

NOTE: The oli log methods are to a custom logger (OpenLog) which is setup elsewhere in the class. Delete if not using OpenLog.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.