AnsweredAssumed Answered

[WSFW001]Invalid session:712b01a814bb420480a7cba3ac2f6294

Question asked by sh0046352 on Oct 20, 2016

Hi Guys out there.
For a few weeks i have problem when inititalize a session.
When is set up my initSession call it sometimes returns the right session key, and somtimes i get [WSFW001]Invalid session:712b01a814bb420480a7cba3ac2f6294 (mostly).
It seems to be in a random order. Maybe someone have a hint.

 

My Envelope looks like

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

   <soapenv:Header>

      <wsse:Security soapenv:mustUnderstand="1" 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">

         <wsu:Timestamp wsu:Id="TS-8544906C6F1E105A6B147674821221812">

            <wsu:Created>${#Project#createdTimestamp}</wsu:Created>

            <wsu:Expires>${#Project#expiredTimestamp}</wsu:Expires>

         </wsu:Timestamp>

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

            <wsse:Username>xxusernamexxx</wsse:Username>

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

            <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">fKSScTYQ6pTYxTUsAptykw==</wsse:Nonce>

            <wsu:Created>${#Project#createdTimestamp}</wsu:Created>

         </wsse:UsernameToken>

      </wsse:Security>

   </soapenv:Header>

   <soapenv:Body/>

</soapenv:Envelope>

 

 

my Project Properties looks like :

createdTimestamp : ${=new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.S'Z'").format(new Date())}

expiredTimestamp : ${=new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.S'Z'").format((new Date((new Date()).getTime() + (3600 * 2))))}

Outcomes