How to Propagate a SOAP Fault from a Backend System to a Client Using Oracle Service Bus? (Doc ID 860492.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle Service Bus - Version 2.5 and later
Information in this document applies to any platform.

Goal

How to propagate the exact SOAP Fault received from a back end service to the client via Oracle Service Bus / ALSB?

In a scenario with a message flow like:

Client -> External Proxy Service -> Internal Proxy Service -> Business service -> Backend Service

a SOAP Fault is generated by the Backen Service as follows, however, it is not correctly propagated to client.

The Backend Service is returning:

<con:errorCode>BEA-380001</con:errorCode>
  <urn:Report xmlns:urn="urn:ecms:log:report">
    <urn:Header>
      <soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <lmnk:messageIdentification soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
                                     soapenv:mustUnderstand="0" xmlns:lmnk="http://schemas.elementk.com/headers">
             <lmnk:responseId>6E049BD7-291A-C6A8-3052-38F85BF12BEF</lmnk:responseId>
             <lmnk:timeSent>2009-06-26T22:15:17.28</lmnk:timeSent>
         </lmnk:messageIdentification>
      </soapenv:Header>
    </urn:Header>
    <urn:Body>
      <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <soapenv:Fault>
              <faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Client.InvalidRequest</faultcode>
              <faultstring>Group does not exist within organization</faultstring>
              <detail>
                <message />
              </detail>
         </soapenv:Fault>
      </soapenv:Body>
   </urn:Body>
</urn:Report>



However the client is receiving the following:

<con:errorCode>BEA-380000</con:errorCode>
 <urn:Report xmlns:urn="urn:ecms:log:report">
   <urn:Header>
     <soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" />
   </urn:Header>
   <urn:Body>
       <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" />
  </urn:Body>
</urn:Report>



Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms