添加WEB引用调用webservice,其中没有参数的函数正常调用,但有些函数要使用定义的一种MAP类参数,
请教下该如何在aspx.cs里赋值?代码Reference.cs:
............... [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.3082")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.SoapTypeAttribute(Namespace="http://xml.apache.org/xml-soap")]
public partial class Map {
private mapItem[] itemField;
/// <res/>
public mapItem[] item {
get {
return this.itemField;
}
set {
this.itemField = value;
}
}
}
/// <res/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.3082")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.SoapTypeAttribute(Namespace="http://xml.apache.org/xml-soap")]
public partial class mapItem {
private object keyField;
private object valueField;
/// <res/>
[System.Xml.Serialization.SoapElementAttribute(IsNullable=true)]
public object key {
get {
return this.keyField;
}
set {
this.keyField = value;
}
}
/// <res/>
[System.Xml.Serialization.SoapElementAttribute(IsNullable=true)]
public object value {
get {
return this.valueField;
}
set {
this.valueField = value;
}
}
}
...........
请教下该如何在aspx.cs里赋值?代码Reference.cs:
............... [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.3082")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.SoapTypeAttribute(Namespace="http://xml.apache.org/xml-soap")]
public partial class Map {
private mapItem[] itemField;
/// <res/>
public mapItem[] item {
get {
return this.itemField;
}
set {
this.itemField = value;
}
}
}
/// <res/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.3082")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.SoapTypeAttribute(Namespace="http://xml.apache.org/xml-soap")]
public partial class mapItem {
private object keyField;
private object valueField;
/// <res/>
[System.Xml.Serialization.SoapElementAttribute(IsNullable=true)]
public object key {
get {
return this.keyField;
}
set {
this.keyField = value;
}
}
/// <res/>
[System.Xml.Serialization.SoapElementAttribute(IsNullable=true)]
public object value {
get {
return this.valueField;
}
set {
this.valueField = value;
}
}
}
...........
而且向省公司提个提需求的渠道比较绕,所以想先试了看看情况。