示例#1
0
        public static XmlNode GetDataParameterSchema(string functionName)
        {
            NGPDemo.WebServiceProviderSoapClient service = new NGPDemo.WebServiceProviderSoapClient();
            NGPDemo.WebServiceProviderSOAPHeader header  = new NGPDemo.WebServiceProviderSOAPHeader();

            header.Username = username;
            header.Password = password;

            XmlNode serviceResult = service.GetDataParameterSchema(header, functionName);

            return(serviceResult);
        }
示例#2
0
        //This will timeout
        public static XmlNode GetCertificate()
        {
            NGPDemo.WebServiceProviderSoapClient service = new NGPDemo.WebServiceProviderSoapClient();
            NGPDemo.WebServiceProviderSOAPHeader header  = new NGPDemo.WebServiceProviderSOAPHeader();

            header.Username = username;
            header.Password = password;


            XmlDocument doc = new XmlDocument();

            string  name          = "GetNonGmoCertificates";
            XmlNode serviceResult = service.GetData(header, name, null);

            return(serviceResult);
        }
示例#3
0
        public static XmlNode GetNonGmoClientData(int userid)
        {
            NGPDemo.WebServiceProviderSoapClient service = new NGPDemo.WebServiceProviderSoapClient();
            NGPDemo.WebServiceProviderSOAPHeader header  = new NGPDemo.WebServiceProviderSOAPHeader();

            header.Username = username;
            header.Password = password;

            XmlDocument doc = new XmlDocument();
            XmlNode     id  = doc.CreateNode("element", "ngp_clientid", "");

            id.InnerText = Convert.ToString(userid);

            Console.WriteLine(id.OuterXml);

            string  name          = "GetNonGmoClientData";
            XmlNode serviceResult = service.GetData(header, name, id);

            service.Close();

            return(serviceResult);
        }