小编Dhr*_*hah的帖子

WebService客户端异常:无法导入wsdl:binding

我在WebService客户端程序中收到以下错误/警告.

有人告诉我,如果我从web.config中删除协议,如HTTP/GET和HTTP/POST,它应该可以工作.但我正在使用Windows窗体.

如何在Windows窗体中执行相同操作?

Warning 1 Custom tool warning: Cannot import wsdl:binding
Detail: The required WSDL extension element 'binding' from namespace 'http://schemas.xmlsoap.org/wsdl/http/' was not handled.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.webserviceX.NET']/wsdl:binding[@name='countryHttpGet'] C:\Users\user\Documents\Visual Studio 2010\Projects\PublicWebService\PublicWebService\Service References\CountryInfoWebSrv\Reference.svcmap 1 1 PublicWebService

Warning 2 Custom tool warning: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://www.webserviceX.NET']/wsdl:binding[@name='countryHttpGet']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.webserviceX.NET']/wsdl:service[@name='country']/wsdl:port[@name='countryHttpGet'] C:\Users\user\Documents\Visual Studio 2010\Projects\PublicWebService\PublicWebService\Service References\CountryInfoWebSrv\Reference.svcmap 1 1 PublicWebService

Warning 3 Custom tool warning: Cannot …
Run Code Online (Sandbox Code Playgroud)

.net c# wcf web-services compiler-errors

5
推荐指数
1
解决办法
7934
查看次数

标签 统计

.net ×1

c# ×1

compiler-errors ×1

wcf ×1

web-services ×1