cancel
Showing results for 
Search instead for 
Did you mean: 

WS-security Need to Get Username and Password and time Stamp in SOAP Header

Former Member
0 Kudos

HI ALL,

i need to get USERNAME and PWD in my Soap header for consuming Webservice using SAP PI ,

and my SOAP Header should look like this

<soapenv:Header>

<wsse:Security soapenv:mustUnderstand="1"

xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"

xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurityutility-

1.0.xsd"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-

secext-1.0.xsd">

<wsu:Timestamp wsu:Id="Timestamp-296915943">

<wsu:Created>2008-06-05T18:30:59.904Z</wsu:Created>

<wsu:Expires>2009-06-05T18:35:59.904Z</wsu:Expires>

</wsu:Timestamp>

<wsse:UsernameToken wsu:Id="UsernameToken-192809888">

<wsse:Username>midtier-service</wsse:Username>

xxxxxxxx: Confidential Green 10

<wsse:Password Type="http://docs.oasisopen.

org/wss/2004/01/oasis-200401-wss-username-token-profile-

1.0#PasswordText">password</wsse:Password>

</wsse:UsernameToken>

</wsse:Security>

</soapenv:Header>

should i need to get some certificates from client and deploy it or should we do anything in SAP PI and send to soap header or can hard code it and send to webservice, please help me in this t

hanking you

Sridhar

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

answered

Former Member
0 Kudos

Sridhar, nice that you got the answer but it will be much better if you share your solution with the forum as it might be helpful to others in the future.

Former Member
0 Kudos

Hi Sridhar,

Can you please share what settings u did?

Thanks,

Hetal

Former Member
0 Kudos

i need to get USERNAME and PWD in my Soap header for consuming Webservice using SAP PI ,

Can be achieved by XSL Mapping or SOAP Axis Adapter. Search on SDN for further details as this has been discussed many a times on the forum.

should i need to get some certificates from client and deploy it or should we do anything in SAP PI and send to soap header or can hard code it and send to webservice, please help me in this t

First you need to confirm whether certificates are required or not. Might be the web service is using user id / password security (basic authorization).

How to use certificates in PI - Search on SAP Help, this has been explained in great details over there.