Ejemplo n.º 1
0
        public async void CAll()
        {
            BusIndiaServices.BusWebServiceClient soapClient = new BusIndia_Universal.BusIndiaServices.BusWebServiceClient();
            soapClient.ClientCredentials.UserName.UserName = "******";
            soapClient.ClientCredentials.UserName.Password = "******";


            BusIndiaServices.registerUser insert = new BusIndiaServices.registerUser();
            BusIndiaServices.GetRegisterUserStatusResponse response = new BusIndiaServices.GetRegisterUserStatusResponse();

            insert.cityTown      = "Surat";
            insert.country       = "Surat";
            insert.dateOfBirth   = "20-11-2015";
            insert.emailId       = "*****@*****.**";
            insert.faxNumber     = "123456";
            insert.gender        = "M";
            insert.maritalStatus = "M";
            insert.faxNumber     = "123456";
            insert.mobileNumber  = "8787878787";
            insert.phoneNumber   = "0202020";
            insert.state         = "GJ";
            insert.streetAddress = "Parle";
            insert.userFullName  = "A B C";
            insert.userLoginId   = "qwerty123";
            insert.userPassword  = "******";
            insert.zipPostalCode = "454545";


            response = await soapClient.GetRegisterUserStatusAsync(insert);

            this.lblErrormsg.Text  = "Incident Number: " + response.GetRegisterUserStatus.statusCode + "\n";
            this.lblErrormsg.Text += "Sys_id: " + response.GetRegisterUserStatus.message;
        }
        public async void CAll()
        {

            BusIndiaServices.BusWebServiceClient soapClient = new BusIndia_Universal.BusIndiaServices.BusWebServiceClient();
            soapClient.ClientCredentials.UserName.UserName = "******";
            soapClient.ClientCredentials.UserName.Password = "******";


            BusIndiaServices.registerUser insert = new BusIndiaServices.registerUser();
            BusIndiaServices.GetRegisterUserStatusResponse response = new BusIndiaServices.GetRegisterUserStatusResponse();

            insert.cityTown = "Surat";
            insert.country = "Surat";
            insert.dateOfBirth = "20-11-2015";
            insert.emailId = "*****@*****.**";
            insert.faxNumber = "123456";
            insert.gender = "M";
            insert.maritalStatus = "M";
            insert.faxNumber = "123456";
            insert.mobileNumber = "8787878787";
            insert.phoneNumber = "0202020";
            insert.state = "GJ";
            insert.streetAddress = "Parle";
            insert.userFullName = "A B C";
            insert.userLoginId = "qwerty123";
            insert.userPassword = "******";
            insert.zipPostalCode = "454545";

         
            response = await soapClient.GetRegisterUserStatusAsync(insert);

            this.lblErrormsg.Text = "Incident Number: " + response.GetRegisterUserStatus.statusCode + "\n";
            this.lblErrormsg.Text += "Sys_id: " + response.GetRegisterUserStatus.message;
        }
Ejemplo n.º 3
0
        private void btninsert_Click(object sender, RoutedEventArgs e)
        {
            /*  SERVICE REFERENCE-SPECIFIC CODE  
           ServiceReference1.ServiceNowSoapClient soapClient = new ServiceReference1.ServiceNowSoapClient();
           soapClient.ClientCredentials.UserName.UserName ="******";
           soapClient.ClientCredentials.UserName.Password ="******"; 
            
           ServiceReference1.insert insert = new ExampleWebServiceForWiki.ServiceReference1.insert();
           ServiceReference1.insertResponse response = new ExampleWebServiceForWiki.ServiceReference1.insertResponse();
           //   END OF SERVICE REFERENCE CODE    */

            //   WEB REFERENCE-SPECIFIC CODE


           // BusIndiaServices.GetAvailableServices getcl = new GetAvailableServices();
           // getcl.arg0.
            BusIndiaServices.BusWebServiceClient soapClient = new BusIndia_Universal.BusIndiaServices.BusWebServiceClient();
           soapClient.ClientCredentials.UserName.UserName ="******";
           soapClient.ClientCredentials.UserName.Password ="******";

          
           BusIndiaServices.registerUser insert = new BusIndiaServices.registerUser();
           BusIndiaServices.GetRegisterUserStatusResponse response = new BusIndiaServices.GetRegisterUserStatusResponse();
            //   END OF WEB REFERENCE CODE

           //insert.arg0 = BusIndia_Universal.BusIndiaServices.GetRegisterUserStatus arg0;
           insert.cityTown = "Surat";
           insert.country = "Surat";
           insert.dateOfBirth = "20-11-2015";
           insert.emailId = "*****@*****.**";
           insert.faxNumber = "123456";
           insert.gender = "M";
           insert.maritalStatus = "M";
           insert.faxNumber = "123456";
           insert.mobileNumber = "8787878787";
           insert.phoneNumber = "0202020";
           insert.state = "GJ";
           insert.streetAddress = "Parle";
           insert.userFullName = "A B C";
           insert.userLoginId = "qwerty123";
           insert.userPassword = "******";
           insert.zipPostalCode = "454545";
          
           

            try
            {
                soapClient.GetRegisterUserStatusAsync(insert);
                this.lblErrormsg.Text = "Incident Number: " + response.GetRegisterUserStatus.statusCode + "\n";
                this.lblErrormsg.Text += "Sys_id: " + response.GetRegisterUserStatus.message;
            }
            catch (System.Exception error)
            {
                this.lblErrormsg.Text = error.Message;
            }          
        }
Ejemplo n.º 4
0
        private void btninsert_Click(object sender, RoutedEventArgs e)
        {
            /*  SERVICE REFERENCE-SPECIFIC CODE
             * ServiceReference1.ServiceNowSoapClient soapClient = new ServiceReference1.ServiceNowSoapClient();
             * soapClient.ClientCredentials.UserName.UserName ="******";
             * soapClient.ClientCredentials.UserName.Password ="******";
             *
             * ServiceReference1.insert insert = new ExampleWebServiceForWiki.ServiceReference1.insert();
             * ServiceReference1.insertResponse response = new ExampleWebServiceForWiki.ServiceReference1.insertResponse();
             * //   END OF SERVICE REFERENCE CODE    */

            //   WEB REFERENCE-SPECIFIC CODE


            // BusIndiaServices.GetAvailableServices getcl = new GetAvailableServices();
            // getcl.arg0.
            BusIndiaServices.BusWebServiceClient soapClient = new BusIndia_Universal.BusIndiaServices.BusWebServiceClient();
            soapClient.ClientCredentials.UserName.UserName = "******";
            soapClient.ClientCredentials.UserName.Password = "******";


            BusIndiaServices.registerUser insert = new BusIndiaServices.registerUser();
            BusIndiaServices.GetRegisterUserStatusResponse response = new BusIndiaServices.GetRegisterUserStatusResponse();
            //   END OF WEB REFERENCE CODE

            //insert.arg0 = BusIndia_Universal.BusIndiaServices.GetRegisterUserStatus arg0;
            insert.cityTown      = "Surat";
            insert.country       = "Surat";
            insert.dateOfBirth   = "20-11-2015";
            insert.emailId       = "*****@*****.**";
            insert.faxNumber     = "123456";
            insert.gender        = "M";
            insert.maritalStatus = "M";
            insert.faxNumber     = "123456";
            insert.mobileNumber  = "8787878787";
            insert.phoneNumber   = "0202020";
            insert.state         = "GJ";
            insert.streetAddress = "Parle";
            insert.userFullName  = "A B C";
            insert.userLoginId   = "qwerty123";
            insert.userPassword  = "******";
            insert.zipPostalCode = "454545";



            try
            {
                soapClient.GetRegisterUserStatusAsync(insert);
                this.lblErrormsg.Text  = "Incident Number: " + response.GetRegisterUserStatus.statusCode + "\n";
                this.lblErrormsg.Text += "Sys_id: " + response.GetRegisterUserStatus.message;
            }
            catch (System.Exception error)
            {
                this.lblErrormsg.Text = error.Message;
            }
        }