AnsweredAssumed Answered

Add timestamp to SOAP header request

Question asked by andrew.constantine309036 on May 30, 2017
Latest reply on Jun 1, 2017 by andrew.constantine309036

Hi,

I'm trying to integrate with Oracle Primavera and getting the error "Timestamp is missing from message. Message cannot be processed without timestamp" when connecting to the SOAP service using the Web Services SOAP Client connector.

 

I've traced the connector call, and can see that it is missing the required <wsu:Timestamp> fields in the request header. How I can add these fields & the required associated details.

 

SOAP request is below, and I've added in the XML in bold that needs to be included:

 

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" SOAP-ENV:mustUnderstand="1">

<wsu:Timestamp wsu:Id="TS-848E52E7D72D699DFA14961218586149">
<wsu:Created>2017-05-30T05:24:18Z</wsu:Created>
<wsu:Expires>2017-05-30T05:57:38Z</wsu:Expires>
</wsu:Timestamp>

<wsse:UsernameToken wsu:Id="UsernameToken-58580456A91941DCFA14961219605062">
<wsse:Username>svs_dash_p6</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXX</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">asOUEh6Uf4zoFV8jG1vVcg==</wsse:Nonce>
<wsu:Created>2017-05-30T05:26:00.506Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns2:ReadEPS xmlns:ns2="http://xmlns.oracle.com/Primavera/P6/WS/EPS/V1">
<ns2:Field>Id</ns2:Field>
<ns2:Filter>Id='DC RM-DV'</ns2:Filter>
</ns2:ReadEPS>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Outcomes