Add security header to Webservice Request in Groovy
Summary
Add security header to Webservice Request in Groovy While invoking services from OSCContent
Add security header to Webservice Request
We are invoking the Peoplesoft webservice from OSC.
PeopleSoft API contains the Authentication information in the security header like as below :
<SOAP-ENV:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="1">
<wsse:UsernameToken>
<wsse:Username>User</wsse:Username>
<wsse:Password>Password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
How can this header information be included in the groovy script?
In groovy script , we are just able to view the Request payload without security information