Generating application server proxy objects

To access an application server component, communicate through an application server proxy object in the client application.

Use the Application Server Proxy wizard on the Project page of the New dialog to create projects for building application server proxy objects. It allows you to connect to an application server and select the components you want to be able to access from the client. Once you have created the project, use the Project painter to modify your project settings and build the proxy library.

When you generate a proxy for an application server component that was not created in PowerBuilder, the names of any methods that use a PowerBuilder reserved word are changed. The proxy generator automatically adds an underscore (“_”) prefix to these methods. For example, if the component has a method named destroy, the method name in the proxy will be _destroy.

Many application server components throw exceptions that you can handle in your client application. To use the proxy you are generating with a client application that does not handle exceptions, or to not declare the exceptions in the client you are building, exclude exceptions from the generated proxy, either in the wizard or in the Project painter.