protected void btnTestGetRentalCarAgencies_Click(object sender, EventArgs e)
        {
            CarServiceRef.Agency agency = new CarServiceRef.Agency();

            CarServiceRef.CarService pxy = new CarServiceRef.CarService();
            DataSet myDS = pxy.GetRentalCarAgencies("Philadelphia", "PA");
            gvDisplayResults.DataSource = myDS;
            gvDisplayResults.DataBind();
        }
        protected void btnTestGetCars_Click(object sender, EventArgs e)
        {
            CarServiceRef.Agency agency = new CarServiceRef.Agency();
            agency.agencyID = 1;
            agency.name = "Hertz";
            agency.phone = "";
            agency.email = "";
            agency.city = "";
            agency.state = "";

            CarServiceRef.CarService pxy = new CarServiceRef.CarService();
            DataSet myDS = pxy.GetCars(agency, "Philadelphia", "PA");
            gvDisplayResults.DataSource = myDS;
            gvDisplayResults.DataBind();
        }
Exemplo n.º 3
0
 public System.Data.DataSet GetCars(Agency agency, string city, string state) {
     object[] results = this.Invoke("GetCars", new object[] {
                 agency,
                 city,
                 state});
     return ((System.Data.DataSet)(results[0]));
 }
Exemplo n.º 4
0
 /// <remarks/>
 public void GetCarsAsync(Agency agency, string city, string state, object userState) {
     if ((this.GetCarsOperationCompleted == null)) {
         this.GetCarsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCarsOperationCompleted);
     }
     this.InvokeAsync("GetCars", new object[] {
                 agency,
                 city,
                 state}, this.GetCarsOperationCompleted, userState);
 }
Exemplo n.º 5
0
 /// <remarks/>
 public void GetCarsAsync(Agency agency, string city, string state) {
     this.GetCarsAsync(agency, city, state, null);
 }