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())
我该如何处理?