Skip to Content
avatar image
Former Member

Capturing HTTP errors with SOAP receiver adapters

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:


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




SOAP: error occured: 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.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 22, 2007 at 08:36 AM

    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


    One way of testing ur scenario


    Also have a look here

    SAP Note 856597



    Add comment
    10|10000 characters needed characters exceeded