Mule ESB任何一点Studio-在Web服务关闭或超时时显示错误

时间:2018-06-04 06:49:43

标签: mule anypoint-studio mule-el mule-esb

我已经使用了wsdl服务工作正常,如果你改变了任何请求,它现在会给你500错误我需要显示预定义消息,如果我消耗的网络服务是关闭&也是为了超时。

还有一件事是Web服务调用没有工作,不知道为什么,但他们是从CXF工作的任何想法?

1 个答案:

答案 0 :(得分:0)

To catch a timeout from a WS, use a Catch Exception Strategy and make it execute when the following condition is met: exception.causedBy(java.util.concurrent.TimeoutException)

To catch SOAP faults: exception.causedBy(org.mule.module.SoapFaultException) and exception.causedBy(org.apache.cxf.binding.soap.SoapFault)

That should get you started. Not sure about the second part as to why you can't always use the WS Consumer component.