Custom tool error: Unable to import WebService/Schema

leo_asp 2007-11-02 04:00:30
客户给我一个web service地址,http://my.newedgenetworks.com/webservice/myws.nen?wsdl
我用vs2003添加web引用,无法生成结构文件,错误如下:
c:\inetpub\wwwroot\NENWebService\Web References\com.newedgenetworks.my\Reference.map(1): Custom tool error: Unable to import WebService/Schema. Unable to import binding 'NENPartnerWebServicesBinding' from namespace 'urn:NENPartnerWebServices'. Unable to import operation 'diaPrequal'. Schema with targetNamespace='urn:NENPartnerWebServices' has invalid syntax. The 'ref' attribute is either invalid or missing.


然后我又试着用vs2005引用,还是报错:
he document at the url http://my.newedgenetworks.com/webservice/myws.nen?wsdl was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'DISCO Document' is 'Discovery document at the URL http://my.newedgenetworks.com/webservice/myws.nen?wsdl could not be found.'.
- The document format is not recognized.
- Report from 'WSDL Document' is 'There is an error in XML document (261, 8).'.
- The element was not expected in this context: <all xmlns='http://www.w3.org/2001/XMLSchema'>..</all>. Expected elements: http://www.w3.org/2001/XMLSchema:annotation.
- 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'.'.


不知道是什么原因,请教各位了。
...全文
248 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
cds27 2007-11-06
  • 打赏
  • 举报
回复
对方的namespace可能有问题,比较像一个本地namespace,远程估计用不了。
hejunbin 2007-11-04
  • 打赏
  • 举报
回复
- Report from 'WSDL Document ' is 'There is an error in XML document (261, 8). '.
- The element was not expected in this context: <all xmlns= 'http://www.w3.org/2001/XMLSchema '> .. </all> . Expected elements: http://www.w3.org/2001/XMLSchema:annotation.
- 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 '. '.

给你的那个应该是一个xml
但是这个xml不具备良好的格式
……

8,909

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧