Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/270.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# wsdl中有一个complexType,如何在WCF中创建等效的datacontract?_C#_Wcf_Complextype - Fatal编程技术网

C# wsdl中有一个complexType,如何在WCF中创建等效的datacontract?

C# wsdl中有一个complexType,如何在WCF中创建等效的datacontract?,c#,wcf,complextype,C#,Wcf,Complextype,这就是wsdl的样子: <wsdl:types> <s:schema targetNamespace="http://mfisoft.ru/voip/service/soap"> <s:complexType name="column"> <s:all> <s:element name="name" type="s:string"/>

这就是wsdl的样子:

<wsdl:types>
        <s:schema targetNamespace="http://mfisoft.ru/voip/service/soap">
        <s:complexType name="column">
            <s:all>
                <s:element name="name" type="s:string"/>
                <s:element name="value" type="s:string"/>
            </s:all>
        </s:complexType>

        <s:complexType name="row">
            <s:complexContent>
                <s:restriction base="ns:Array">
                    <s:sequence>
                        <s:element name="item" type="ns3:column" maxOccurs="unbounded"/>
                    </s:sequence>
                    <s:attribute ref="ns:arrayType" arrayType="ns3:column[]" />
                </s:restriction>
            </s:complexContent>
        </s:complexType>

        </s:schema>
</wsdl:types>
那“吵架”呢

谢谢,等待您的回答,任何帮助都将不胜感激

尝试使用

它将生成接口和数据合同等

    [DataContract]
    public class column
    {
        [DataMember]
        public string name;

        [DataMember]
        public string value;
    }
svcutil your.wsdl