Skip to Content
0

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

Mar 08 at 06:47 AM

51

avatar image
Former Member

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Mark Dihiansan Mar 08 at 09:32 AM
0

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

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Mark,

Thanks for your input.

I am not clear on "just use parameterized mappings to enter the username/password and then call it in your xslt via Java."

Please provide me sample if you have it.

Cheers,

Giri

0

Hi Giri,

Apologies for the late reply, here's what I found in SAP help. I'm still searching for the older code (PI 7.1 and below but have no luck).

https://help.sap.com/viewer/0b9668e854374d8fa3fc8ec327ff3693/7.5.9/en-US/4bf40f2cc0c33de4e10000000a42189e.html

Why not use java mapping directly?

Regards,

Mark

0
Former Member

Hi Mark,

Thanks for your time.

We have decided to do it in IIB as there are some limitation(TLS1.2 and SOAP 1.2) with current PI version here.

Cheers,

Giri

1