cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Header data in a SOAP Envelope for SOAP Sender Adapter

prashanthgurra
Explorer
0 Kudos

Hello All,

Am using a SOAP sender adapter and want to use the data inside the SOAP Header for some routing purpose(extended receiver determination). Any SOAP message coming into XI will look something like below. But XI will pass the contents of <SOAP-ENV:Body> to Payload and <SOAP-ENV:Header> to the SOAP Header category you can see that in SXMB_MONI.

Is there a way to read the data in my SOAP Header to be later used in my extended receiver determination.

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:Q-ENV="/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<SOAP-ENV:Header>
		<Q-ENV:Header>
			<Q-ENV:Sender-Id>1</Q-ENV:Sender-Id>
			<Q-ENV:Receiver-Id></Q-ENV:Receiver-Id>
			<Q-ENV:Correlation-Id></Q-ENV:Correlation-Id>
			<Q-ENV:Message-Id></Q-ENV:Message-Id>
			<Q-ENV:Date-Sent></Q-ENV:Date-Sent>
			<Q-ENV:Document-Type></Q-ENV:Document-Type>
			<Q-ENV:Message-Format></Q-ENV:Message-Format>
		</Q-ENV:Header>
	</SOAP-ENV:Header>
	<SOAP-ENV:Body>
		<Q-ENV:Body>
			<Q-ENV:Content-Type>text/xml</Q-ENV:Content-Type>
			<Q-ENV:Message-Type></Q-ENV:Message-Type>
			<Q-ENV:Encoding>UTF-8</Q-ENV:Encoding>
			<Q-ENV:Message-Body>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Thanks for your replies in advance.

Regards,

Prashanth

Accepted Solutions (1)

Accepted Solutions (1)

former_member184681
Active Contributor
0 Kudos

Hi,

Check chapter: "4. Define Conversion Parameters" in the help document here:

http://help.sap.com/saphelp_nw73/helpdata/en/48/3555240bea31c3e10000000a42189d/content.htm

Hope this helps,

Greg

Answers (1)

Answers (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Going through the link that Grzegorz provided, you can try using option 1. That way, the whole SOAP envelope is read (the header and body) are placed in the payload and not separated as what you have described.

Hope this helps,

Mark

prashanthgurra
Explorer
0 Kudos

Thanks Guys.. for your response...

We did try that option by asking the sender to put the nosoap=true option and it did work...but they were not getting any response back from XI and the sending system kept resending the message.. may be it was acting like a HTTP post.

Regards,

Prashanth

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

but they were not getting any response back from XI and the sending system kept resending the message.. may be it was acting like a HTTP post.

The method that is used by the native SOAP Adapter is always HTTP Post. Not sure why you are not getting a response, have you checked the outbound firewall of the sending party or the inbound firewall of XI? To which SOAP URL are you sending to?

Hope this helps,

Mark

prashanthgurra
Explorer
0 Kudos

Hi Mark,

True usually they get a empty SOAP response back can see that when I test in SOAP UI, but with the above config they are not getting any response. May be HTTP 200 Ok message is something that they will receive and they cannot do much with that.

Regards,

Prashanth