我的网络服务连接有问题。它说,
Possible SOAP version mismatch: Envelope namespace http://schemas.xmlsoap.org/wsdl/ was unexpected. Expecting http://schemas.xmlsoap.org/soap/envelope/.
当我调用webservice的方法时。你知道我的问题吗?
最佳答案
看起来您在创建 SOAP 信封时提供了错误的命名空间 - 它应该类似于以下内容:
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
在您的情况下,第三个可能是错误的。
关于asp.net - 可能的 SOAP 版本不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5580769/