如何处理FaultException?

Soap Web服务在出现错误的情况下向我返回此信息:

<SOAP:Envelope xmlns:50AP="http://schemas.xmlsoap.org/soap/enveloper> <SOAP:Body> <SOAP:Fault> <faultcode>SOAP: Server</faultcode> <faultstring>Server Error< /faultstring> <detail> <s:SystemError xmlns:s="http://sap.comixi/WebService/xi2.0"› <context>XIAdapter</context> <code>ADAPTER.JAVA EXCEPTION</code> <text>See log trace with id: n/a</text> </s: SystemError> </detail> </SOAP:Fault> </SOAP:Body> </SOAP:Envelope> 

我已经这样做了。

Catch fex As FaultException
    MsgBox(fex.Message.ToString())

但是它永远不会去这里,而是去

Catch ex As Exception
    MsgBox(ex.Message.ToString())

我该如何处理?

inuyasha0410 回答:如何处理FaultException?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3126439.html

大家都在问