|
************** 异常文本 **************
System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.Xml.XmlException: 根级别上的数据无效。 行 1,位置 1。
在 System.Xml.XmlTextReaderImpl.Throw(Exception e)
正确的返回:
HTTP/1.1 200 OK..Date: Tue, 28 Apr 2020 01:39:33 GMT..Server: Apache/2.4.27 (Win64) PHP/5.6.31..X-Powered-By: PHP/5.6.31..Content-Length: 344..Keep-Alive: timeout=5, max=100..Connection: Keep-Alive..Content-Type: text/xml; charset=utf-8....<?xml version="1.0" encoding="UTF-8"?>.<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://tempuri.org/"><SOAP-ENV:Body><ns1:Save2NextStationResponse><ns1:Save2NextStationResult>PASS</ns1:Save2NextStationResult><ns1:Msg>OK</ns1:Msg></ns1:Save2NextStationResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>.
错误的返回:
HTTP/1.1 200 OK..Date: Tue, 28 Apr 2020 01:39:33 GMT..Server: Apache/2.4.27 (Win64) PHP/5.6.31..X-Powered-By: PHP/5.6.31..Content-Length: 345..Content-Type: text/xml; charset=utf-8....锘??xml version="1.0" encoding="UTF-8"?>.<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://tempuri.org/"><SOAP-ENV:Body><ns1:CheckRouteResponse><ns1:CheckRouteResult>FAIL</ns1:CheckRouteResult><ns1:Msg>鏉$爜鍖洪棿涓嶅瓨鍦?aa</ns1:Msg></ns1:CheckRouteResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>.
还是utf8的前置串导致的
用我们的tools处理一下mes.php即可解决!
|
|