http://202.22.250.221/servlet/Services/FaxService?wsdl
这是一个Fax的webService我在网页中可以打开且是xml文件,但是在VS2010中添加Web引用报错
URI http://202.22.250.221/servlet/Services/FaxService?wsdl 处的文档未被识别为已知的文档类型。
来自各已知类型的错误信息可能有助于修复该问题:
- 来自“XML 架构”的报告是“W3C XML 架构的根元素应为 <schema>,命名空间应为“http://www.w3.org/2001/XMLSchema”。”。
- 来自“DISCO 文档”的报告是“在 URL http://202.22.250.221/servlet/Services/FaxService?wsdl 处找不到发现文档。”。
- 无法识别此文档格式。
- 来自
问什么,难道是商家的接口有问题,还是我的调用有问题?
------解决方案--------------------
wsdl有问题。。。
The document at the url http://202.22.250.221/servlet/Services/FaxService?wsdl was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'XML Schema' is 'The root element of a W3C XML Schema should be <schema> and its namespace should be 'http://www.w3.org/2001/XMLSchema'.'.
- Report from 'DISCO Document' is 'Discovery document at the URL http://202.22.250.221/servlet/Services/FaxService?wsdl could not be found.'.
- The document format is not recognized.
- Report from 'WSDL Document' is 'There is an error in XML document (233, 34).'.
- Namespace prefix 'ns0' is not defined.
Metadata contains a reference that cannot be resolved: 'http://202.22.250.221/servlet/Services/FaxService?wsdl'.
The remote server returned an unexpected response: (400) Bad Request.
The remote server returned an error: (400) Bad Request.
If the service is defined in the current solution, try building the solution and adding the service reference again.
------解决方案--------------------
估计是什么地方写错了吧.\