To make it easier to connect to the application server, a connection object, Progress.Open4GL.Proxy.Connection stores application server connection information to pass to the AppObject constructor when connecting to the application server.

Create a connection object using url, userid, password and application server information

This constructor specifies the application server connection information url, user ID, password and info required by the application server application at connection time:

public Connection(string url, string userid, string password, 
     string info)
url
Specifies the url to connect to the root ABL web application it would look like this http://host:portnumber/apsv. Alternatively you can specify a named ABL web application using this format http://host:portnumber/ABLwebapplication/apsv
Note: This is the preferred constructor because it allows you to customize the url. The combined length of the url, userid, password, and info fields must not exceed 30,000 non-Unicode characters when connecting to an application server.
userid

Specifies a user ID required to access the application server. Optional

password
Specifies a password required to access the applications server. Optional
Note: When Open Client is connecting to PAS for OpenEdge or Appserver Internet Adapter, the userid and password are used in the HTTP authentication header. When connecting to classic appserver, they get used as part of the connection packet instead.
info

Specifies information required by the application service at connection time.You can set a number of session and run-time properties to manage access to an application service. For more information on setting session properties see Access Proxy Properties.

Create a connection object using userId, password and application server information

This constructor specifies the user ID, password and information required by the application at connection time. It does not allow you to specify a url:

public Connection(string userid, string password, string info)
userid

Specifies a user ID required to access the application server. If security is not implemented, empty string are allowed.

password
Specifies a password required to access the applications server.If security is not implemented, empty string are allowed.
Note: When Open Client is connecting to PAS for OpenEdge or Appserver Internet Adapter, the userid and password are used in the HTTP authentication header. When connecting to classic appserver, they get used as part of the connection packet instead.
info

Specifies information required by the application service at connection time.You can set a number of session and run-time properties to manage access to an application service. For more information on setting session properties see Access Proxy Properties.

Note: This constructor is deprecated. It supports backwards compatibility to the classic AppServer and is not intended for use with PAS for OpenEdge. The default URL is
http://localhost:8810/apsv/, where apsv is the AppService Name setting specified in the General Settings of the ProxyGen > Generate Proxies dialog box.