private void bookingTaxiThanhCong() { Server_BookingTaxi_ThanhCong.TaxiOperation_ServicesSoapClient service = new Server_BookingTaxi_ThanhCong.TaxiOperation_ServicesSoapClient(); service.ClientCredentials.UserName.UserName = "******"; service.ClientCredentials.UserName.Password = "******"; FormTestServices.Server_BookingTaxi_ThanhCong.Authentication authen = new Server_BookingTaxi_ThanhCong.Authentication(); authen.UserName = "******"; authen.Password = "******"; string returnvalue = service.BookingTaxi( new Server_BookingTaxi_ThanhCong.Authentication() { UserName = "******", Password = "******" }, "phupn test chatbot", "0999000999", "Phú Bình Anh", "4", 1, DateTime.Now, "ghi chú", 4, 1, "thanhcongtaxi.vn" ); }
private void bookingTaxiThanhCong_V2() { //using (ServicesOnlineClient geo = new ServicesOnlineClient()) //{ // var auth = new AuthenticationHeader(); // auth.UserName = "******"; // auth.PassWord = "******"; // auth.Key = "BAGIS_20160126"; // string addressLocation = geo.GetAddressByGeo(auth, 105.86897277832F, 21.0328483581543F); //} Services_DatXe_ThanhCong_V2.TaxiOperation_ServicesSoapClient service = new Services_DatXe_ThanhCong_V2.TaxiOperation_ServicesSoapClient(); service.ClientCredentials.UserName.UserName = "******"; service.ClientCredentials.UserName.Password = "******"; FormTestServices.Server_BookingTaxi_ThanhCong.Authentication authen = new Server_BookingTaxi_ThanhCong.Authentication(); authen.UserName = "******"; authen.Password = "******"; string returnvalue = service.BookingTaxi_V2( new Services_DatXe_ThanhCong_V2.Authentication() { UserName = "******", Password = "******" }, "[Tue Phan]", "0972284850", "Phú Bình Anh 21.0328483581543, 105.86897277832", "3", 1, DateTime.Now, "ghi chú", 5, 1, "thanhcongtaxi.vn", "21.0328483581543", "105.86897277832", "1234", "", "" ); long id = 0; if (long.TryParse(returnvalue, out id)) { string cancelvalule = service.CancelBooking_V2( new Services_DatXe_ThanhCong_V2.Authentication() { UserName = "******", Password = "******" }, "thanhcongtaxi.vn", 1, returnvalue); } string a; }