on 03-08-2018 6:47 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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).
Why not use java mapping directly?
Regards,
Mark
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
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.