Пример #1
0
        private SsrsDiscovery.ReportingService2010 CreateSsrsClient(GeneralViewNode node)
        {
            //Get the underlying connection
            var cm   = ConnectionService.GetConnections().GetConnection(node.HttpConnection);
            var conn = new HttpClientConnection(cm.AcquireConnection(null));

            var proxy = new SsrsDiscovery.ReportingService2010()
            {
                Url         = Path.Combine(cm.ConnectionString, "ReportService2010.asmx").Replace('\\', '/'),
                Credentials = conn.CreateCredentials()
            };

            return(proxy);
        }