cancel
Showing results for 
Search instead for 
Did you mean: 

Capturing HTTP errors with SOAP receiver adapters

Former Member
0 Kudos

Hi experts,

I have an asynchrounous scenario IDOC->XI->SOAP.

In a normal scenario, things work fine.

But when the connectivity between XI and the SOAP server is disrupted or if the SOAP server is down or returning any sort of error codes, e.g. HTTP 400,401, 500, etc, I see this error message in RWB - Message Monitoring - Message Display Tool:

<b>

SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault

</b>

or

<b>

SOAP: error occured: java.io.IOException: invalid content type for SOAP: TEXT/HTML</b>

When I use a TCP Monitor to trap the SOAP request/response between XI and the SOAP server, I see that it's actually a HTTP 500 or a HTTP 404 error response.

How can I trap this error and display this on alerts?

Please help.

Thanks.

Ron

Accepted Solutions (0)

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

Hi Ron,

By default, the SOAP adapter sends the SOAP message with the content type text/xml.

When you check "Do not use SOAP envelope", the default contnet type is application/xml.

You can change the content type like this: Go to the SOAP receiver communication channel module tab. Add the module "localejbs/AF_Modules/MessageTransformBean" before the standard module. Add the parameter name Transform.ContentType and value text/xml.

Check out this

/people/varadharajan.krishnasamy/blog/2007/01/09/troubleshooting-soap-message--xi

One way of testing ur scenario

/people/michal.krawczyk2/blog/2005/08/25/xi-sending-a-message-without-the-use-of-an-adapter-not-possible

Also have a look here

SAP Note 856597

Regards,

Prateek