Exemple #1
0
        ///<summary>
        ///Default constructor, opens the connection.  Checks to see if the class is
        ///initialized, and initializes it first if not.
        ///</summary>
        public SqlWebService()
        {
            Type T = this.GetType();

            if (ConnectionString == null)
            {
                GetConnectionInfo(T.Name);
            }
            InitializeComponent();
            ClosableModule.SetHandler(this);
        }
Exemple #2
0
        /// <summary>
        /// Constructor gets the Service name and credentials from the config file.
        /// </summary>
        public SoapHttpClientProtocol() : base()
        {
            ClosableModule.SetHandler(this);
            Type T = this.GetType();

            if (UrlCache[T.Name] == null)
            {
                GetUrlInfo(T);
            }
            Initialize();
        }