public static async void GetAllStudents() { SchoolServiceSoapClient proxy = new SchoolServiceSoapClient(EndpointConfiguration.SchoolServiceSoap); AddResponse add = await proxy.AddAsync(10, "Vitor"); GetStudentsResponse get = await proxy.GetStudentsAsync(); Console.WriteLine(get.Body.GetStudentsResult); }
public SchoolServiceSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(SchoolServiceSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public SchoolServiceSoapClient(EndpointConfiguration endpointConfiguration) : base(SchoolServiceSoapClient.GetBindingForEndpoint(endpointConfiguration), SchoolServiceSoapClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }