Release 10.1A: OpenEdge Development:
.NET Open Clients

> ## Connecting to the AppServer

> To establish a connection to an AppServer 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 appserver-info, string appservice)
>     public OpenAppObject (string userid, string password,
>          string appserver-info, string appservice)
>     public OpenAppObject (string appservice)

> ``connectObj``

> Specifies a `Progress.Open4GL.Proxy.Connection` object, which defines connection parameters to access the AppServer. For more information on this object, Chapter 3, " Connecting to an AppServer."

> ``appservice``

> Specifies the name of the application service.

> ``url``

> Specifies the URL to connect to an Appserver URL. Defaults to `AppServer://localhost:5162/appService`. For more information on forming this URL, see the sections on connecting to the AppServer using a URL in OpenEdge Application Server: Developing AppServer Applications .

> Note: For an HTTPS connection using the AppServer Internet Adapter (AIA) with the Web server running on the .NET Open Client machine, you must specify the Internet host name (not `"localhost"`) in the URL exactly as it appears in the CN field of the Web server certificate.

> ``userid``

> Specifies a user ID required to access the AppServer.

> ``password``

> Specifies a password required to access the AppServer.

> ``appserver-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 AppServer 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 Chapter 5, " Accessing Proxy Properties.".

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095