To establish a connection to an application server, you must instantiate an AppObject. You can create an AppObject using one of the available constructors.

Establish a connection with a connection object

This constructor establishes an application connection, with the application server information specified in the Connection object (connectObj):

public AppObject(Progress.Open4GL.Proxy.Connection connectObj)
AppObject

Specifies the name of the AppObject as defined in ProxyGen.

connectObj

Specifies a Progress.Open4GL.Proxy.Connection object, which defines connection parameters to access the application server.

Note: This is the recommended constructor for developers who customize the connection class to specify the url for their application server.

Establish a connection with a URL, username, password and application server information

This constructor establishes an application server connection, with the specified application server connection information (url), user ID, password, and information required by the application server application at connection time:

public AppObject(string url, string userid, string password, 
     string info)
AppObject

Specifies the name of the AppObject as defined in ProxyGen.

url

Specifies the name of the AppObject as defined in ProxyGen.

connectObj
Specifies the PAS for OpenEdge ABL web application. The root ABL web application is http://host:portnumber/apsv/. Alternatively, a named ABL web application is http://host:portnumber/ablwebapplication/apsv
Note: For an HTTPS connection, you must specify the Internet host name in the url parameter exactly as it appears in the CN field of the application server certificate.

useridSpecifies 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 application server. If security is not implemented, empty string are allowed.

infoSpecifies 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 is the recommended constructor for developers who want the ability to customize the connection URL, username and password without using a connection object.

Establish a connection with a default url, userID, password and application server information

This constructor establishes an application server connection, with the specified user ID, password, and information required by the application server application at connection time:

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

AppObject is the name of the AppObject as defined in ProxyGen.

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 application server. If security is not implemented, empty string are allowed.

infoSpecifies 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.

The constructor above uses a default application connection. This constructor defaults the URL to http://localhost:8810/apsv/, where apsv is the AppService Name setting specified in the general settings of the ProxyGen Generate Proxies dialog box.
Note: This constructor is deprecated it supports backwards compatibility to the classic AppServer and is not intended for use with PAS for OpenEdge because it uses a URL associated with classic AppServer.

Establish a connection with default details

The following constructor establishes an application server connection, with no specified application server information:

public AppObject(string appservice)

AppObject Specifies the name of the AppObject as defined in ProxyGen.

appservice Specifies the name of the application service.

Note: This constructor constructor is deprecated and supports backwards compatibility to the classic AppServer and is not intended for use with PAS for OpenEdge because it uses a URL associated with classic AppServer and the appservice is not used by PAS for OpenEdge.