cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PO 7.31 : Axis Sender Adapter - WSDoAllReceiver: The timestamp could not be validated

Former Member
0 Kudos

Hi All,

We have a scenario that requires us to do header level Authentication on a SOAP call. We are using the SOAP Axis adapter. But we get an error as soon as the third party adds the timestamp in the header. The message does works if we remove the timestamp, but the third party cannot remove it from the payload. I know that we can remove it using a custom adapter module, but that is a last resort. We would like to get the Axis adapter working.

Error - WSDoAllReceiver: The timestamp could not be validated

Please see my configuration below.

Process Sequence:

1AF_Adapters/axis/HandlerBeanLocal Enterprise Beanauth
2AF_Adapters/axis/HandlerBeanLocal Enterprise Beanusertoken
3AF_Adapters/axis/HandlerBeanLocal Enterprise Beanlogin
4AF_Adapters/axis/HandlerBeanLocal Enterprise Beanxireq
5AF_Adapters/axis/AFAdapterBeanLocal Enterprise Beanafreq
6CallSapAdapterLocal Enterprise Beansap
7AF_Adapters/axis/AFAdapterBeanLocal Enterprise Beanafresp
8AF_Adapters/axis/HandlerBeanLocal Enterprise Beanxires

Module Configuration:

1authhandler.typejava:org.apache.axis.handlers.http.HTTPAuthHandler
2loginhandler.typejava:com.sap.aii.adapter.axis.ra.handlers.security.LoginHandler
3sapmodule.pivottrue
4usertokenactionUsernameToken Timestamp
5usertokenhandler.typejava:com.sap.aii.adapter.axis.ra.handlers.security.WSDoAllReceiver
6usertokenpwd.password*
7usertokenuser*
8xireqhandler.typejava:com.sap.aii.axis.xi.XI30InboundHandler
9xireshandler.typejava:com.sap.aii.axis.xi.XI30InboundHandler

Header Payload :

  <soapenv:Header>

    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" soapenv:actor="www.toromont.com" soapenv:mustUnderstand="1">

      <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

          <wsu:Created>2015-09-01T10:00:31Z</wsu:Created>

   <wsu:Expires>2015-09-30T18:01:31Z</wsu:Expires>

      </wsu:Timestamp>

      <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-232">

        <wsse:Username>***********</wsse:Username>

        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">**********</wsse:Password>

      </wsse:UsernameToken>

    </wsse:Security>

  </soapenv:Header>

Regards,

Jannus Botha

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

As anyone faced this problem before?

Regards,

Jannus Botha