Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

WS Security profile details are not going as part of header

SA-7491

Summary



You are connecting to an external Service using Pega7 SOAP Connector. You are using a WS-Security profile with Outflow configured to use Username. You are able to establish a successful connection and get proper response without any issue. When you are tracing the SOAP connectivity from Pega7, you do not see any security header and thus suspect that username token was not going as part of SOAP request header.

Error Messages



Not Applicable

Steps to Reproduce



Connect to an external Service from Pega7 SOAP Connector using a WS-Security profile with Outflow configured to use Username (as required by Service).

Root Cause



The hypothesis was wrong as tracer does not capture the soap:Header but just the XML payload in soap:Body. 

Resolution



Successful connectivity proves that your Connector is sending what external Service was asking for. 

To capture the SOAP traffic, you can use tcpmon tool (it is a free utility from apache).

For more information, visit below references:

http://ws.apache.org/tcpmon/tcpmontutorial.html
http://ws.apache.org/tcpmon/download.cgi

- For your use case, soap:Header will look something like this.

<soap:Header>
<wsse:Security xmlns:wsse="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-85C9F52F263CE73186142616483168410"><wsse:Username>USERNAME</wsse:Username>
<wsse:Password Type="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">PASSWORD</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

50% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us