我加入了WEB的引用。调函数时不知怎样传参数
原型是这样的
[System.CodeDom.Compiler.GeneratedCodeAttribute("WebServiceStudio", "0.0.0.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:cnaf:wsDiasp")]
public partial class GetCustomer_ttTableRow {
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
public string addr;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
public string cmNAME;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
public string cmSORT;
}
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="urn:cnaf:wsDiasp", ResponseNamespace="urn:cnaf:wsDiasp", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("result", IsNullable=true)]
public string GetCust([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string domain, [System.Xml.Serialization.XmlArrayAttribute(IsNullable=true)] [System.Xml.Serialization.XmlArrayItemAttribute("ttTableRow", IsNullable=false)] out GetCust_ttTableRow[] ttTable) {
object[] results = this.Invoke("GetCust", new object[] {
domain});
ttTable = ((GetCust_ttTableRow[])(results[1]));
return ((string)(results[0]));
}
在工程中实列化了对象后调这个函数
对象.GetCust("domain",xxx)
后面的参数我不知该怎样传
请大侠帮忙,先谢谢了.分不够了
------解决思路----------------------
GetCust_ttTableRow[] rows = new GetCust_ttTableRow[];
对象.GetCust("domain", out rows);