8 Replies Latest reply on Feb 12, 2021 11:56 AM by sdepriest

    Web Service Consumer - WSSE Security Header Timestamp TimeToLive

    sdepriest Guru

      Does anyone know if PowerCenter's Web Service Consumer (WSC) transformation can be configured to add the Timestamp Created/Expired values to the WSSE Security Header (bolded in the example below)?

       

      A SOAP service I'm trying to use requires a TimeToLive value which translates to this Timestamp section.  If not PowerCenter, does Developer give you this ability?

       

      I've set the WS Security Type to PasswordText in the WSC to give me the wsse_Username and wsse_Password and pass those values into the WSC but I still get a security error, so I'm pretty sure it relates to lack of the TimeToLive value. I'm testing this request in SOAPUI and if no TimeToLive value, I get the same security error.

      Thanks. Sarah

       

       

      <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"

             xmlns:urn="urn:employee.labor.assetsuite.ventyx.com:V1"

                     xmlns:urn1="urn:valueobject.common.labor.assetsuite.ventyx.com"

             xmlns:urn2="urn:standardreply.fault.services.common.core.ventyx.com"

             xmlns:urn3="urn:util.valueobject.common.assetsuite.ventyx.com">

      <soap: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:mustUnderstand="1">

      <wsu:Timestamp wsu:Id="uuid">

      <wsu:Created>2021-02-03T16:00:00Z</wsu:Created>

      <wsu:Expires>2021-02-04T16:00:00Z</wsu:Expires>

      </wsu:Timestamp>

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

      <wsse:Username>myusername</wsse:Username>

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

      <wsse:Nonce>uuid</wsse:Nonce>

      <wsu:Created>2021-02-03T16:00:00Z</wsu:Created>

      </wsse:UsernameToken>

      </wsse:Security>

      </soap:Header>

      <soap:Body>...the request...</soap:Body>

      </soap:Envelope>