1 Reply Latest reply on Nov 6, 2009 8:52 AM by objectiser

    How are WSDL faults encoded in the ESB Fault object?

    objectiser

      I am receiving a WSDL fault in a custom ESB action, and want to return the fault name in an ESB Fault object.

      I receive the fault name as a QName, but the Fault.setCode takes a URI.

      Just wondering how faults are returned from the ESB action pipeline, when the ESB service is providing a Web Service implementation, so that it gets correctly returned to the WS client as a SOAP fault?

        • 1. Re: How are WSDL faults encoded in the ESB Fault object?
          objectiser

          The approach I found was to instantiate a org.jboss.soa.esb.actions.ActionProcessingDetailFaultException exception, which takes the fault name (QName) as a constructor arg, and then retrieve the Message from it, which had the appropriately initialised Fault object associated with it.

          However the actual fault QName is stored in a named body entry (org.jboss.soa.esb.message.fault.detail.code).

          So I assume it is quite valid for subsequent ESB actions to obtain the fault QName from this body entry? I ask because I don't see this entry name documented anywhere?