C# 将WSDL文件添加为服务引用Visual Studio 2010时出错

C# 将WSDL文件添加为服务引用Visual Studio 2010时出错,c#,visual-studio-2010,wsdl,C#,Visual Studio 2010,Wsdl,我继续从。我从我们的供应商那里得到了一个WSDL文件。我在VisualStudio2010中添加了“作为服务引用”。获取以下2个错误 Warning 1 Custom tool warning: Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializ

我继续从。我从我们的供应商那里得到了一个WSDL文件。我在VisualStudio2010中添加了“作为服务引用”。获取以下2个错误

    Warning    1    Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter
Error: Choice is not supported with encoded SOAP. Please change definition of schema type 'MessageData' from namespace 'http://somethinghere': use all or sequence (not choice) for fields/parameters.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://somethinghere']/wsdl:portType[@name='SoSPortType']     C:\ \Reference.svcmap 1    1    Decoder_CLI

    Warning    2    Custom tool warning: Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='http://somethinghere']/wsdl:portType[@name='SoSPortType']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://somethinghere']/wsdl:binding[@name='SoSSoapBinding']     C:\\Reference.svcmap 1    1    Decoder_CLI
有许多这样的帖子可用于此类警告,但我的具体错误

Error: Choice is not supported with encoded SOAP
我找不到任何解决办法。欢迎任何帮助。顺便说一句,我已经尝试过作为Web引用,取消检查“引用程序集中的重用类型”等,以及internet上已经提供的所有其他解决方案

更新


忘了提了。我还尝试将此WSDL添加为SoapUI客户端上的SOAP项目,并且在没有任何错误的情况下能够使用它。

您能在此处发布整个WSDL吗?您已经很久没有问过这个问题了,您找到解决方案了吗?我正在研究一个类似的问题。