System.Web.Services.Protocols.SoapException: 服务器无法处理请求。
在postman调用webservice时提示这个,但是用网页可以调用。
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<soap:Code>
<soap:Value>soap:Receiver</soap:Value>
</soap:Code>
<soap:Reason>
<soap:Text xml:lang="zh-CHS">System.Web.Services.Protocols.SoapException: 服务器无法处理请求。 ---> System.Xml.XmlException: 根级别上的数据无效。 第 1 行,位置 1。
在 System.Xml.XmlTextReaderImpl.Throw(Exception e)
在 System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
在 System.Xml.XmlTextReaderImpl.ParseDocumentContent()
在 System.Web.Services.Protocols.SoapServerProtocol.SoapEnvelopeReader.Read()
在 System.Xml.XmlReader.MoveToContent()
在 System.Web.Services.Protocols.SoapServerProtocolHelper.GetRequestElement()
在 System.Web.Services.Protocols.Soap12ServerProtocolHelper.RouteRequest()
在 System.Web.Services.Protocols.SoapServerProtocol.Initialize()
在 System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
--- 内部异常堆栈跟踪的结尾 ---</soap:Text>
</soap:Reason>
<soap:Detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>

【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步