Creating a New Application View Control

This topic describes how to create a new Application View control.

To learn about Application View controls, see Application View Control: Accessing an Enterprise Application from a Web Service.

To learn about WebLogic Workshop controls, see Controls: Using Resources from a Web Service.

To Create a New Application View Control

1. If you are not in Design View, click the Design View tab.

2. From the Add Control drop-down list in the upper-right corner of Design View, select Add Application View Control. The Add Application View Control dialog opens, as shown here:

3. In the Variable name for this control field, type the variable name used to access the new Application View control instance from your web service. The name you enter must be a valid Java identifier.

4. In the Step 2 pane, choose the Create a new Application View control to use with this service radio button.

5. In the New CTRL name field, type the name of your new CTRL file. The word "Control" is automatically appended to the name you enter, as is the ".ctrl" filename extension.

6. Decide whether you want to make this a control factory and select or clear the Make this a control factory that can create multiple instances at runtime check box. For more information about control factories, see Control Factories: Managing Collections of Controls.

7. In the Step 3 pane, click Browse... The Application Views Browser dialog opens, displaying Application Views that are deployed in the current domain.

8. Select the deployed Application View you want this Application View control to represent, then select OK.

9. In the Add Application View Control dialog, click Create.

To learn more about the Add Application View Control Dialog, see Add Application View Control Dialog.

# Customizing an Application View Control

You can customize an Application View control in several ways. You may modify the properties of the control itself, the properties of the control's methods, or the XML maps on the control's methods. Each of these modifications is described in more detail in the sections that follow.

## Control Properties

The Application View control exposes the av-identity property with the name, user-id and password attributes. For a description of the av-identity property and its attributes, see @jws:av-identity Tag.

## Method Properties

Each method of an Application View control exposes the av-service property that binds the Application View method to a service of the Application View control. For a description of the av-service property and it's attributes, see @jws:av-service Tag.

## XML Maps

Each method of an Application View control may have associated parameter-xml and return-xml maps, and each callback may have an associated parameter-xml map. You can edit these maps by double-clicking on the map icon associated with the method or callback in Design View.

Related Topics

Controls: Using Resources from a Web Service

Using an Application View Control