Esempio n. 1
0
 public Synchronize()
 {
     Uri serviceUri = new Uri(Config.SoapAddress);
     EndpointAddress endpointAddress = new EndpointAddress(serviceUri);
     BasicHttpBinding binding = new BasicHttpBinding();
     binding.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly;
     binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
     binding.UseDefaultWebProxy = true;
     synSrv = new SynService.SynServiceSoapClient(binding, endpointAddress);
 }
Esempio n. 2
0
        public Synchronize()
        {
            Uri              serviceUri      = new Uri(Config.SoapAddress);
            EndpointAddress  endpointAddress = new EndpointAddress(serviceUri);
            BasicHttpBinding binding         = new BasicHttpBinding();

            binding.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly;
            binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
            binding.UseDefaultWebProxy = true;
            synSrv = new SynService.SynServiceSoapClient(binding, endpointAddress);
        }