2012-03-22 10 views
1
C: \ Program Files \ Microsoft Visual Studio 10.0 \ VC> svcutil wsdl.wsdl/out: Proxy. 
Microsoft (R) Service Model Metadata Tool 
[Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.2152] 
Copyright (c) Microsoft Corporation. All rights reserved. 

Error: Can not import wsdl: portType 
Details: Generated an exception at run time extension of import WSDL: 
System.ServiceModel.Description.DataContractSerializerMessageContractImporter 
Error: element complexType "http://api-new.begun.ru/index.php:Region" is already a Listing 
flax. 
XPath to Error Source:// wsdl: definitions [@ targetNamespace = 'http://api-new.be 
gun.ru/index.php ']/wsdl: portType [@ name =' AdvertiserServicePortType '] 


Error: Can not import wsdl: binding 
Details: Failed to import wsdl: portType, on which the wsdl: binding. 
XPath to wsdl: portType:// wsdl: definitions [@ targetNamespace = 'http://api-new.begun 
.ru/index.php ']/wsdl: portType [@ name =' AdvertiserServicePortType '] 
XPath to Error Source:// wsdl: definitions [@ targetNamespace = 'http://api-new.be 
gun.ru/index.php ']/wsdl: binding [@ name =' AdvertiserServiceBinding '] 


Error: Can not import wsdl: port 
Details: Failed to import wsdl: binding, which depends on the wsdl: port. 
XPath to wsdl: binding:// wsdl: definitions [@ targetNamespace = 'http://api-new.begun. 
ru/index.php ']/wsdl: binding [@ name =' AdvertiserServiceBinding '] 
XPath to Error Source:// wsdl: definitions [@ targetNamespace = 'http://api-new.be 
gun.ru/index.php ']/wsdl: service [@ name =' AdvertiserService ']/wsdl: port [@ name =' Adve 
rtiserServicePort '] 


Generating files ... 
Warning: No code was generated. 
If you were trying to generate a client, this could be because the metadata docu 
ments did not contain any valid contracts or services 
or because all contracts/services were discovered to exist in/reference assembl 
ies. Verify that you passed all the metadata documents to the tool. 

Warning: If you would like to generate data contracts from schemas make sure to 
use the/dataContractOnly option. 

どのように修正するのですか?私はC#でプロキシクラスが必要wsdlからプロキシクラスを作成するにはどうすればよいですか?

更新:

http://www.2shared.com/file/JAoRmgXI/wsdl.html

+2

私はあなたの質問を理解できません。エラーメッセージがロシア語(?)であるため...その他の関連情報:.NETバージョンは使用していますか? itseflも多くの助けになるでしょう! – Yahia

+0

私の投稿を更新します – Mediator

+0

更新が本当に役に立たない...使用している.NETのバージョンを投稿できますか?エラーメッセージは英語でお願いしますか? – Yahia

答えて

3

私はWSDL参照を推測すると同じディレクトリにないいくつかの他のファイル(.XSD?)。

更新:リージョンについてまずエラー地域が(ライン253および274)を2回定義されているので、そこにあります。
更新2:RegionArrayも2回宣言されています。クライアントプロキシの生成は、2回の2回の宣言を削除し、wsdl.exewsdl.exe wsdl.wsdl /out:Proxy.csを使用して動作します。

+0

xsdファイルがありません – Mediator

+0

**クライアント側**プロキシを生成しますか? – brgerner

関連する問題