SOAP requests and returned http code in FSW

Solution Verified - Updated -

Issue

  • We are currently experiencing an issue on http returned codes for SOAP endpoints. We have seen that in some cases (not all faults) integration in attachment returns an OK code (200) even if response is a fault.

  • Questions :

    • Should Switchyard return automatically a failure http code in case of SOAP faults, correct? On binding configuration, it seems no particular option is available for this.
    • Does Switchyard comply to WS-I basic profile version 1.1 and version 2.0.
  • Current workaround is try/catch the webService call, checking response and manually throw an Exception (with SOAP fault content) when it is a SOAP fault. This way, returned code is 500 as expected. Alternative could be using handleFaults() Camel method, but its still a workaround and also it seems not possible setting fault string.

Environment

  • Red Hat JBoss Fuse Service Works (FSW)
    • 6.0.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content