cancel
Showing results for 
Search instead for 
Did you mean: 

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

venkatagiri_gongadi
Participant
0 Kudos

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-

<?xml version="1.0"?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> -<xsl:template match="/"> -<soap12:Envelope xmlns:xsi="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"> -<soap12:Body> <xsl:copy-of select="."/> </soap12:Body> </soap12:Envelope> </xsl:template> </xsl:stylesheet>

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

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

Cheers,

Giri

Accepted Solutions (0)

Answers (1)

Answers (1)

markangelo_dihiansan
Active Contributor
0 Kudos

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

venkatagiri_gongadi
Participant
0 Kudos

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

markangelo_dihiansan
Active Contributor
0 Kudos

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/4bf40f2cc0c33de4e10000000a4...

Why not use java mapping directly?

Regards,

Mark

venkatagiri_gongadi
Participant

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