To establish a connection to an application server using the .NET OpenAPI, you must instantiate a Progress.Open4GL.Proxy.OpenAppObject. You can create an OpenAppObject using one of the following constructors:

Syntax

public OpenAppObject(Connection connectObj, string appservice)

public OpenAppObject(string url, string userid, string password,
                     string info, string appservice)

public OpenAppObject(string userid, string password, 
                     string info, string appservice)

public OpenAppObject(string appservice)
connectObj

Specifies a Progress.Open4GL.Proxy.Connection object, which defines connection parameters to access the application server. For more information on this object, see Connect to the application server.

appservice

Specifies the name of the application service. This parameter is not used by PAS for OpenEdge. It is deprecated but remains for backwards compatibility to classic AppServer.

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

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 example, to access a session-free application server using the .NET OpenAPI, you must set the proxy property PROGRESS.Session.SessionModel to 1. For more information on setting this and other session properties see Access Proxy Properties.