Skip to Content
avatar image
Former Member

SOAP Adapter - Using Fault Message

Hi all,

I have developed a Synchronous Integration Scenario which receives a SOAP request to the SOAP adapter, calls an ABAP proxy in SAP ECC to post some information and return a response or a fault to the sender.

This all works fine, I am using a fault message in the ABAP proxy to record errors and return them to the SOAP adapter using the fault mapping. Again this all works fine. However when an application error is identified and a fault message returned to thre SOAP adapter, I had expected that the error details in the fault message to be packaged up in a standard SOAP fault and returned to the sender. Instead the fault message details are sent as the payload in the SOAP body of the response.

Can anyone provide information on if it is possible to return the fault message as a standard SOAP fault instead of in the SOAP body of the response.

Thanks

Gary

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • May 18, 2007 at 10:41 AM

    Dont think this is possible in standard.

    As an alternate, maybe you can select option Do not use SOAP Enevlope int he sender SOAP Adapter and thereby the entire SOAP Message will enter the mapping and you would need to use a XSL or Java mapping to strip the SOAP Envlope in the mapping for the request and like wise in the response mapping you would need to add the SOAP Enevlope to the response.

    For the fault message mapping you need not add the SOAP Envelope.

    Not a standard solution, but can be tried if the requirement is really worth it. Otherwise I think the Fault Message will continue to be sent as the payload in the the SOAP Enevlope as this is how the SOAP adapter works.

    Regards

    Bhavesh

    Add comment
    10|10000 characters needed characters exceeded

    • Gary,

      ><i>I am getting the Fault Message returned in the SOAP body of the SOAP envelope, which is fine.</i>

      I thought that you were nto getting this as well . Thankfully you are 😊

      If you do find an alternate to do this apart from the manual creation of SOAP Envelope etc, please do let us know or even do blog on it.

      Regards

      Bhavesh

  • avatar image
    Former Member
    Jun 04, 2007 at 09:45 PM

    Hi Gary,

    Have you found a solution to your problem? I have the similar problem. Could you post your solution if you found one?

    Regards,

    Hui

    Add comment
    10|10000 characters needed characters exceeded