Example #1
0
        /// <summary>
        /// Method to create a new SOAP Service object and set the URL.
        /// </summary>
        /// <returns>GenevaSOAPInterface.Service</returns>
        private GenevaSOAPInterface.Service getSOAPService()
        {
            // Initialize a new service object.
            GenevaSOAPInterface.Service soapService = new GenevaSOAPInterface.Service();

            // Set the URL for the SOAP Service.
            soapService.Url = _soapURL;

            return soapService;
        }
Example #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="soapURL">URL for the Geneva SOAP Interface, in the form http://server:port, where port is the dbaserver port number, as defined in dbaserver.ini.</param>
        /// <param name="host">Server name that is running your Geneva service manager.</param>
        /// <param name="port">Port where the Geneva service manager is running, defined in geneva.ini.</param>
        /// <param name="username">Geneva username to login and run your report.</param>
        /// <param name="password">Password for the Geneva user.</param>
        /// <param name="sharedConnection">True if this is a shared connection, false if you want to use a persistent connection.</param>
        public GenevaSOAPSession(string soapURL, string host, int port, string username, string password, bool sharedConnection)
        {
            _soapURL = soapURL;
            _host = host;
            _port = port;
            _username = username;
            _password = password;
            _sharedConnection = sharedConnection;

            _soapService = getSOAPService();
        }