public void getCustomer(string search)
        {
            // Create an instance of the WebService

               // Make an Asynchronous Call by calling
               // the Begin method of the proxy class
            object mlock = new object();
            lock (mlock)
            {
                this.root = new rootCustomer();
                customersLock = true;
                try
                {
                    _Service.GetCustomers(search, ref this.root);
                    customers = (root.Customer);
                }
                catch (Exception er)
                {

                    throw er;
                }
                customersLock = false;
            }
               // Do some process while the web
               // service is processing the request
        }
示例#2
0
 public void GetCustomers(string search, ref rootCustomer customerPort)
 {
     object[] results = this.Invoke("GetCustomers", new object[] {
         search,
         customerPort
     });
     customerPort = ((rootCustomer)(results[0]));
 }
示例#3
0
 /// <remarks/>
 public void GetCustomersAsync(string search, rootCustomer customerPort, object userState)
 {
     if ((this.GetCustomersOperationCompleted == null))
     {
         this.GetCustomersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCustomersOperationCompleted);
     }
     this.InvokeAsync("GetCustomers", new object[] {
         search,
         customerPort
     }, this.GetCustomersOperationCompleted, userState);
 }
 /// <remarks/>
 public void GetCustomersAsync(string search, rootCustomer customerPort, object userState) {
     if ((this.GetCustomersOperationCompleted == null)) {
         this.GetCustomersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCustomersOperationCompleted);
     }
     this.InvokeAsync("GetCustomers", new object[] {
                 search,
                 customerPort}, this.GetCustomersOperationCompleted, userState);
 }
 /// <remarks/>
 public void GetCustomersAsync(string search, rootCustomer customerPort) {
     this.GetCustomersAsync(search, customerPort, null);
 }
 public void GetCustomers(string search, ref rootCustomer customerPort) {
     object[] results = this.Invoke("GetCustomers", new object[] {
                 search,
                 customerPort});
     customerPort = ((rootCustomer)(results[0]));
 }
示例#7
0
 /// <remarks/>
 public void GetCustomersAsync(string search, rootCustomer customerPort)
 {
     this.GetCustomersAsync(search, customerPort, null);
 }