private async void btnSearch_Click(object sender, RoutedEventArgs e) { webService.WebService1SoapClient serviceWebService = new webService.WebService1SoapClient(); webService.GetProductDetailsResponse WebService1Response = await serviceWebService.GetProductDetailsAsync(txtProductCode.Text); lblProductCode.Text = "Product Code: " + WebService1Response.Body.GetProductDetailsResult.ProductCode; lblProuctName.Text = "Product Name: " + WebService1Response.Body.GetProductDetailsResult.Title; lblDescription.Text = "Description: " + WebService1Response.Body.GetProductDetailsResult.Description; lblPrice.Text = "Price: " + WebService1Response.Body.GetProductDetailsResult.Price; }
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(WebService1SoapClient.GetEndpointAddress(EndpointConfiguration.WebService1Soap)); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(WebService1SoapClient.GetBindingForEndpoint(EndpointConfiguration.WebService1Soap)); }
public WebService1SoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(WebService1SoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public WebService1SoapClient(EndpointConfiguration endpointConfiguration) : base(WebService1SoapClient.GetBindingForEndpoint(endpointConfiguration), WebService1SoapClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public WebService1SoapClient() : base(WebService1SoapClient.GetDefaultBinding(), WebService1SoapClient.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.WebService1Soap.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }