c#wsdl无法生成临时类(结果= 1)

时间:2018-08-16 07:11:56

标签: c# wsdl

wsdl中的一段代码:

<xs:complexType name="ValueTable">
    <xs:sequence>
        <xs:element name="column" type="tns:ValueTableColumn" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element name="index" type="tns:ValueTableIndex" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element name="row" type="tns:ValueTableRow" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
</xs:complexType>

生成了Visual Studio

private object[][] rowField;

[System.Xml.Serialization.XmlArrayItemAttribute("Value", typeof(object))]
    public object[][] row {
        get {
            return this.rowField;
        }
        set {
            this.rowField = value;
        }
    }

如果我更改

private object[][] rowField;private object[] rowField;

public object[][] rowpublic object[] row

一切正常,我得到了结果,但是结果只包含一行 如果我不做这些更正,我会得到一个错误 “无法生成临时类(结果= 1)”

请帮助我,我应该在wsdl中更正什么?

0 个答案:

没有答案