Can anyone help me out on how to extract the SOAP Header from a SOAP Message? Also is it possible to see the entire SOAP request coming from the client.
I tried using pub.soap.utils:getHeader in my flow service, but unable to get any results. Any help in this regards would be extremely helpful.
Set the following extended settings to true for logging SOAP request-responses.
I am not sure what are you doing in your code but for getting the header entries these steps need to be done,
- Post a SOAP message over HTTP using the pub.client:http and convert the return stream inside the body document to soapData object using the built-in service pub.soap.utils:streamToSoapData.
- Use the soapData object from the above step to invoke pub.soap.utils:getHeaderEntries and that should get all the header entries as an array of objects.
Thanks for your response. I will try to implement the steps that you have mentioned. But my Goal is to capture headerEntries in real time,
Say For Ex: An Consumer A wants to access the webService hosted on webMethods IS, I need to extract the information he is passing in his SOAP Request HEADER and BODY, before sending the SOAP Response back to him.