Example #1
0
        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);
        }
Example #2
0
 public SchoolServiceSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(SchoolServiceSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Example #3
0
 public SchoolServiceSoapClient(EndpointConfiguration endpointConfiguration) :
     base(SchoolServiceSoapClient.GetBindingForEndpoint(endpointConfiguration), SchoolServiceSoapClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }