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[][] row
至public object[] row
一切正常,我得到了结果,但是结果只包含一行 如果我不做这些更正,我会得到一个错误 “无法生成临时类(结果= 1)”
请帮助我,我应该在wsdl中更正什么?