Exemplo n.º 1
0
 static void Main(string[] args)
 {
     try
     {
         using (CustomerInfoService client = new CustomerInfoService {
             Url = "http://localhost:49145/CustomerService.asmx"
         })
         {
             var request = new CustomerInfoRequestType
             {
                 FirstName = "Max",
                 Name      = "Mustermann",
                 Street    = "Teststraße",
                 ZipCode   = "12345"
             };
             Console.WriteLine("Starte Kundenabfrage");
             var result = client.CustomerInfo(request);
             Console.WriteLine("{0}: {1} {2} {3}", result.CustomerId, result.FirstName, result.Name, result.ReliabilityIndex);
         }
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
     Console.ReadLine();
 }
Exemplo n.º 2
0
        public CustomerInfoResponseType CustomerInfo(CustomerInfoRequestType request)
        {
            object[] results = this.Invoke("CustomerInfo", new object[] {
                request
            });

            return((CustomerInfoResponseType)(results[0]));
        }
Exemplo n.º 3
0
 /// <remarks/>
 public void CustomerInfoAsync(CustomerInfoRequestType request, object userState)
 {
     if ((this.CustomerInfoOperationCompleted == null))
     {
         this.CustomerInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCustomerInfoOperationCompleted);
     }
     this.InvokeAsync("CustomerInfo", new object[] {
         request
     }, this.CustomerInfoOperationCompleted, userState);
 }
Exemplo n.º 4
0
 /// <remarks/>
 public void CustomerInfoAsync(CustomerInfoRequestType request)
 {
     this.CustomerInfoAsync(request, null);
 }
Exemplo n.º 5
0
 /// <remarks/>
 public System.IAsyncResult BeginCustomerInfo(CustomerInfoRequestType request, System.AsyncCallback callback, object asyncState)
 {
     return(this.BeginInvoke("CustomerInfo", new object[] {
         request
     }, callback, asyncState));
 }