当前位置: 代码迷 >> Web Service >> 关于WEBSERVICE调参数的有关问题
  详细解决方案

关于WEBSERVICE调参数的有关问题

热度:143   发布时间:2016-05-02 02:18:24.0
关于WEBSERVICE调参数的问题
我加入了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);
  相关解决方案