"http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP

来源:互联网 发布:邓玉娇刺官案 知乎 编辑:程序博客网 时间:2024/05/19 10:41

webservice接口调用,地址重定向时出现此问题:

"http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP version.

解决步骤:

1. 首先,不选择重定向时,接口调用是没有问题的。所以,排除服务端问题;

2. 接着,在网上查找,有说在set地址时,把wsdl地址后面的 '?wsdl'删除即可,尝试之后,问题依然存在,没有解决。很不解..

3. 后来通过查找文档发现,重定向时设置的是webservice服务的地址,瞬间觉得,去除 ‘?wsdl’没起作用,可能是因为:webservice服务实际地址

    并不等同于webservice web描述文件wsdl地址去除后缀 ‘?wsdl’,所以不成功;

4. 通过查找,发现,wsdl地址去除后缀的确不是实际的webservice地址,更改set,设置实际webservice地址。问题解决。。



0 0