Skip to Content

Issue with HTTP POST Header details in for SOAP 1.2 in SAP PI 7.3

Hi All,

I am working on a scenario where I need to send the data to web service in SOAP1.2 version.It is proxy to SOAP Synchronous call.

I have used XSLT to build SOAP envelop and checked DO Not USe SOAP Envelop in receiver SOAP channel.

I have used AddSOAPHeaderbean to add HTTP header details in the SOAP request but it is not working when I test it end to end.

It is working in SOAP UI with mapping output but i have entered the header details manually here.

Header details:

auth-token: 123456789***(it is constant)

ContentType: application/soap+xml

I know that problem is with HTTP header details. Third party is not able to provide me logs or request due to privacy concerns.

Output looks like-

Auth-Token:xxxxx-xxxxxx-xxxxxxx-xxxxxx

Content-Type:application/soap+xml;action=http://www.abc.com

<Soap envelop>

<Header>

<auth-token>

<Contenttype>

</Header>

<Body>

</Body>

<Soap envelop>

I have been searching and trying with XSLT but it is not working.

XSLT Code-

- http://www.w3.org/1999/XSL/Transform" version="1.0"> - - http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:soap12=" http://www.w3.org/2003/05/soap-envelope" xmlns:ns1=" http://www.abc.com" xmlns:ns2=" http://schemas.microsoft.com/2003/10/Serialization/Arrays"> -

I tired with adding Header tag in XSLT but no luck.

Can you please provide me your input how to handle it .

Cheers,

Giri

addheader.png (16.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Mar 08, 2018 at 09:32 AM

    Hi,

    There is a setting in soap ui to fully show the soap header in the raw tab. After knowing the full header, just use parameterized mappings to enter the username/password and then call it in your xslt via Java.

    Regards,

    Mark

    Add comment
    10|10000 characters needed characters exceeded