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(); }
public CustomerInfoResponseType CustomerInfo(CustomerInfoRequestType request) { object[] results = this.Invoke("CustomerInfo", new object[] { request }); return((CustomerInfoResponseType)(results[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); }
/// <remarks/> public void CustomerInfoAsync(CustomerInfoRequestType request) { this.CustomerInfoAsync(request, null); }
/// <remarks/> public System.IAsyncResult BeginCustomerInfo(CustomerInfoRequestType request, System.AsyncCallback callback, object asyncState) { return(this.BeginInvoke("CustomerInfo", new object[] { request }, callback, asyncState)); }