2010-11-28 5 views
5

WebServiceクライアントプログラムで次のエラー/警告が表示されます。WebServiceクライアント例外:wsdl:bindingをインポートできません

私は、web.configからHTTP/GETやHTTP/POSTなどのプロトコルを削除した後に動作するはずだと言われました。しかし、私はWindowsフォームを使用しています。

Windowsフォームで同じ操作を行うにはどうすればよいですか?あなたはサービスプロキシを生成するためのsvcutilを使用したい場合は

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 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='countryHttpPost'] C:\Users\user\Documents\Visual Studio 2010\Projects\PublicWebService\PublicWebService\Service References\CountryInfoWebSrv\Reference.svcmap 1 1 PublicWebService 

Warning 4 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='countryHttpPost'] 
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.webserviceX.NET']/wsdl:service[@name='country']/wsdl:port[@name='countryHttpPost'] C:\Users\user\Documents\Visual Studio 2010\Projects\PublicWebService\PublicWebService\Service References\CountryInfoWebSrv\Reference.svcmap 1 1 PublicWebService 
+0

WSDL文書はどこで入手できましたか?どのようなタイプのサービスWSDLドキュメントで記述されていますか? WSDLはSOAPサービスにのみ使用されます。 WCFは、HTTP GETを使用しないSOAP 1.1およびSOAP 1.2サービスをサポートします。 –

+0

これは、私がhttp://www.webservicex.net/country.asmxを使用しているWebサービスのリンクです –

答えて

0

あなたは、httpとして前置されhttp://schemas.xmlsoap.org/wsdl/http名前空間ウィッヒに関連するすべてのものを削除する必要があります。したがって、2つのバインディングとWebサービスポートを削除する必要があります。その場合、2つのポートタイプと複数のメッセージタイプは必要ありません。

関連する問題