To process incoming SOAP headers in your service method (which you must do yourself – there is no WebSphere® Portlet Factory-wide default SOAP header processing provided), you may retrieve the SOAP Header information (if any was present in the incoming SOAP envelope), by retrieving them in IXml or JDOM Element format from the current HttpServletRequest via request attribute.
HttpServletRequest request = webAppAccess.getHttpServletRequest();
IXml soapHeaders = (IXml)request.getAttribute("bowstreet.soap.header");
org.jdom.Element soapHeaders = (Element) request.getAttribute("bowstreet.soap.jdom.header");
To send SOAP Headers in the response envelope from your service method, you may do so by setting a request attribute that will be picked up and inserted into the SOAP Response envelope.
The Web Service Enable builder also provides a set of inputs you can use to populate an control the content of SOAP headers.
Parent topic: Web Service Enable builder: wpf7