Skip to Content
0

how to add ws-timestamp in soap message header

Dec 12, 2017 at 08:29 AM

70

avatar image

Hello Experts,

I am creating an ABAP consumer proxy to consume a non SAP external web service. As per the message security, I need to pass the user name token and ws-timestamp in the SOAP header. When testing the web service in SOAPUI tool, I oberserved that a following tag is generated when I insert WS-TIMESTAMP in the SOAP header.

<wsu:Timestamp wsu:Id="TS-DBE839EE666130D66815129728630097">

<wsu:Created>2017-12-11T06:14:23.009Z</wsu:Created>

<wsu:Expires>2017-12-11T06:15:23.009Z</wsu:Expires>

</wsu:Timestamp>

I understood that in ABAP, I will have to use interface IF_PROTOCOL_WS_HEADER to insert the SOAP header. But the timestamp ID, created, expired will be dynamic and I need to generate that. Any idea any API already available for this purpose or how to achieve this?

Thanks,

Mainak

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers