Skip to Content

SOAP HEADER - WSS Security

Hello Experts,

We are using PI 7.11 and got a new requirement PROXY <--> SOAP. As we need to send the data to government website they provided the details to be in the header which are to be encrypted using key symmetric and Base 64 encoded result. Please find below example Header structure :

<S:Header>

http://schemas.xmlsoap.org/ws/2002/12/secext">

<wss:UsernameToken>

<wss:Username>599999993/37</wss:Username>

<wss:Password>ikCyRV+SWfvZ5c6Q0bhrBQ==</wss:Password>

<wss:Nonce>

fkAHne7cqurxpImCfBC8EEc2vskyUyNofWi0ptIijYg4gYCxir++unzfPVPpusloEtmLkcZjf+E6T9/76tsCqdupUkxOhWtkRH5IrNwmfEW1ZGFQgYTF21iyKBRzMdsJMhhHrofYYV/YhSPdT4dlgG0tk9Z736jFuw061mP2TNqHcR/mQR0yW/AEOC6RPumqO8OAfc9/b4KFBSfbpY9HRzbD8bKiTo20n0PtamZevCSVHht4yt/Xwgd+KV70WFzyesGVMOgFRTWZyXyXBVaBrkJS8b6PojxADLcpWRnw5+YeOs3cPU2o1H/YgAam1QuEHioCT2YTdRt+9p6ARNElFg==

</wss:Nonce>

<wss:Created>>YEWoIoqIY5DOD11SeXz+0i4b/AJg1/RgNcOHOYpSxGk</wss:Created>

</wss:UsernameToken>

</wss:Security>

</S:Header>

Request you to provide your suggestion for this.

Thanks

Ravi.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 25, 2016 at 11:17 AM

    Hi Ravi,

    You have two options:

    1. use an Axis adapter which supports WS Security,

    2. use a SOAP adapter and check 'Do Not Use SOAP Envelope' option in you communication channel. But in this case you have to create SOAP envelope with a security header by yourself (in java mapping for example).

    Best regards,

    Andrzej

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 28, 2017 at 10:59 AM

    Hello All,

    Due to PI 7.11 version, we are unable to use JAVA code due to lower version issues which leads to failing importing of respective classes. Can you please provide an XSLT for achieving the same. Awaiting your response.

    Ravi

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Kolmakov,

      As we are using JDK 1.5 Update 45 for our PI 7.11 version, when trying to import some of the class for Base64 (DatatypeConverter.printBase64Binary(buffer.toByteArray())) etc, we are getting error.

      So we cannot use java here.

      Ravi