How to map execption when using HTTP Proxy in switchyard ?

Solution Verified - Updated -

Issue

  • If backend webservice throws a soapfault exception I am getting the exception as below instead I want a passthrough response back to the client.
    Below is the sample response got for soapfault
org.switchyard.HandlerException: org.apache.camel.CamelException: <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><env:Fault xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><faultcode>env:Server</faultcode><faultstring></faultstring><detail><ns2:ServiceException xmlns:ns2='service'><errorCode>700</errorCode><errorDetails/></ns2:ServiceException></detail></env:Fault></env:Body></env:Envelope>
  • I just want the response without the string prefix org.switchyard.HandlerException: org.apache.camel.CamelException:

Environment

  • Red Hat JBoss Fuse Service Works
    • 6.2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.