Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to add ws-timestamp in soap message header

0 Kudos

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

0 REPLIES 0