View Single Post
  #3 (permalink)  
Old December 10th, 2003, 04:23 AM
hueduongit hueduongit is offline
Authorized User
 
Join Date: Nov 2003
Location: Ha Noi, , Vietnam.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much
    The method mentioned aboved does not belong to the ws but to a class in that ws. It is here

    File DataType.asmx.cs
    //...
    public class DataType : System.Web.Services.WebService
    {
        //
        public class clsName
        {
            public string m_ID = "";
            public string m_Comment = "";
            private string m_Hide = "";

            public string methodTry() // It has not in proxy class
            {
                return (m_Hide);
            }
        }

        //...
        public clsName GetClass(string strId, strComment)
        {
            clsName cl = new clsName();
            cl.m_ID = strId;
            cl.m_Comment = strComment;
            cl.m_Hide = "hide";
            return (cl);
        }
        //...
    }
    //...

    File proxy class DataType.cs
    //...
        public class DataType : System.Web.Services.Protocols.SoapHttpClientProtoc ol
    {
                /// <remarks/>
                public DataType()
        {
                        this.Url = "http://localhost/Ws/DataType.asmx";
                }
        //...
        }

        /// <remarks/>
        [System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://tempuri.org/")]
    public class clsName
    {
                /// <remarks/>
                public string m_ID;

                /// <remarks/>
                public string m_Comment;

        //??? Hope something at here
    }

Reply With Quote