客户给我一个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 '. '.
不知道是什么原因,请教各位了。
如果代理类无法生成,有没有别的办法进行调用阿?
我用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 '. '.
不知道是什么原因,请教各位了。
如果代理类无法生成,有没有别的办法进行调用阿?