Hi guys,
I have a process that invokes an external service through the "Service Endpoint" step. The property Throw Exception on Fault is set to yes.
The service is answering with the following Soap Fault
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Content-Length: 711
Date: Mon, 28 Nov 2016 12:03:57 GMT
Connection: close
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>An error was detected while executing the Web Service request. (10893)</faultstring>
<detail>
<ns1:FaultDetail xmlns:ns1="urn:soap-fault:details"><errorMessage>Web Service application not found: uri:kamstrup.com/schemas/Contract (10858)</errorMessage><requestID>bf52b677bfc471d0:-4f08337:158a4443c5f:-7fff#34de</requestID></ns1:FaultDetail>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
the message is audit in the MessageHistory table with FaultType = Server, but not exception is thrown and no message is logged in the Failed Message table.
I do not recall this behavior, all the services developed until now rely on the previous property for catching the error, as I would expect an exception to be thrown.
Am I missing anything?
Thank you very much
Fabrizio
Tags:
When using the service endpoint step to call a REST service, and you've configured the REST tab on the service policy that the service endpoint is configured to use, you have to set the property "Throw Exception on Fault" to true in order for the exceptions thrown due to the policy to be caught in an exception handler in the process. If you set that property to false all exceptions will be ignored by the process.
what happens if I do not configure the rest tab on the service policy ? Does it throw an exception? For every error code?
Fabrizio
Neuron ESB Product Support Forums and Communities
© 2024 Created by Neuron Admin. Powered by