Connect to the application server with .NET Open Client APIs
- Last Updated: March 30, 2020
- 2 minute read
- OpenEdge
- Version 12.2
- Documentation
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
|
- connectObj
-
Specifies a
Progress.Open4GL.Proxy.Connectionobject, 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 formathttp://host:portnumber/ABLwebapplication/apsvNote: This is the preferred constructor because it allows you to customize the url. The combined length of theurl,userid,password, andinfofields 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.SessionModelto 1. For more information on setting this and other session properties see Access Proxy Properties.