Sun Worklist Manager Service Engine User's Guide

ProcedureTo Configure the Web Application

Before You Begin

This task requires that you have already created and built the Worklist Module project that defines the tasks.

  1. Create a web application project in the NetBeans IDE that defines the Worklist Manager Console.

  2. Copy the TaskCommon.wsdl file from the Worklist Module project build directory into the web application project.

    This file is located in the Worklist Module project home directory under the /build folder.

  3. From the web application project, open the newly copied TaskCommon.wsdl file in the WSDL Editor.

  4. In WSDL view, right-click Bindings and select Add Binding to add any necessary bindings and services to the file.

    Figure shows the Create New Binding dialog box.
    Note –

    When you add the bindings from the WSDL view, the binding operations are created automatically.


  5. Do the following to create a Web Service Client in the web application that invokes TaskCommonService in TaskCommon.wsdl.

    1. Right-click the web application project, point to New, and then select Web Service Client.

    2. On the New Web Service Client Wizard, select Local File and then browse to and select the TaskCommon.wsdl file.

      Figure shows the New Web Service Client Wizard.
    3. Click Finish.

  6. You can specify the package name for the Web Service Client rather than using a wrapper. To specify the package name, do the following:

    1. Expand Web Service Reference, right-click TaskCommon, and then select Edit Web Service Attributes.

      The attribute editor appears.

    2. Click the WSDL Customization tab, and then expand Global Customization.

    3. Deselect the Use Default check box, and enter the following class as the package name:

      com.sun.workflow.client

      Figure shows the Web Service Attributes dialog
box.
    4. Click OK, and then click OK on the information dialog box.

  7. Clean and build the web application project.

    This generates the client stub classes in the build/generated folder.

  8. Define you custom Worklist Manager Console web pages. Use the generated classes in your web application to invoke operations from TaskCommon.wsdl.

    For a reference of the client API, see WLM Client WSDL API.