Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Add security header to Webservice Request in Groovy

edited Oct 4, 2018 12:20PM in Sales 2 comments

Summary

Add security header to Webservice Request in Groovy While invoking services from OSC

Content

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&quot; 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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!