사용자 고유의 바인딩 및 엔드 포인트 주소를 작성하고이를 사용하여 클라이언트를 초기화합니까? (타임 아웃 옵션 포함) 간단한 예 : 웹 서비스의의 app.config를 definited 바인딩으로
BasicHttpBinding binding = new BasicHttpBinding();
binding.OpenTimeout = new TimeSpan(0, 0, 10);
binding.CloseTimeout = new TimeSpan(0, 0, 10);
binding.SendTimeout = new TimeSpan(0, 0, 30);
// more attributes for the binding
EndpointAddress endpointAddress = new EndpointAddress("https://mywcfserver.com/WCFService.svc");
ClientProxy client = new ClientProxy(binding, endpointAddress);
그냥 참고로, 당신은 코드에서 정의하는 바인딩은 동일해야합니다.