예제 #1
0
        public static bool TryCreate(ReportServerInfo reportServer, out IWsWrapper result, out Exception exception)
        {
            RS.ReportingService2005 proxy = new RS.ReportingService2005
            {
                Url         = reportServer.GetServiceUrl(SERVICE_NAME),
                Timeout     = reportServer.Timeout ?? -1,
                Credentials = reportServer.CreateCredentials(SERVICE_NAME)
            };

            try
            {
                proxy.ListSecureMethods();
                result    = new WsWrapper2005(proxy);
                exception = null;
                return(true);
            }
            catch (Exception e)
            {
                proxy.Dispose();
                result    = null;
                exception = e;
                return(false);
            }
        }
        public void Connect(string url)
        {
            this.m_service = new ReportingService2005();
            this.m_service.Credentials = this.Credentials;
            this.m_url = url;
            this.m_soapUrl = this.m_url + wsdl;

            this.m_service.Url = this.m_soapUrl;
        }
예제 #3
0
 public ReportManager2005(string url, string userName, string password)
 {
     ReportingService = new ReportingService2005();
     InitializeSSRS(url, userName, password);
 }
예제 #4
0
 // Methods
 /// <summary>
 /// Initializes a new instance of the <see cref="WsWrapper2005"/> class.
 /// </summary>
 /// <param name="proxy">The report server.</param>
 private WsWrapper2005(RS.ReportingService2005 proxy)
 {
     _proxy = proxy;
 }