// Set service proxy endpoint. private void SetProxyEndPoint() { PrintDebugMessage("SetProxyEndPoint", "Begin", 11); if (ServiceEndPoint != null && ServiceEndPoint.Length > 0) { // For .NET discovery document. if (ServiceEndPoint.EndsWith("?DISCO") || ServiceEndPoint.EndsWith(".disco")) { SrvProxy.Url = ServiceEndPoint; SrvProxy.Discover(); } // Sepecification of a service endpoint. else { SrvProxy.Url = ServiceEndPoint; } } ServiceEndPoint = SrvProxy.Url; PrintDebugMessage("SetProxyEndPoint", "Service endpoint: " + SrvProxy.Url, 12); PrintDebugMessage("SetProxyEndPoint", "End", 11); }