SOAP requests and returned http code in FSW
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.