Siebel Web UI Dynamic Developer Kit Guide > Generating Java Artifacts >

Example of Generating Java Artifacts


This topic gives one example of generating Java artifacts using the Web UI DDK Wizard. You may use this feature differently, depending on your business model.

This example assumes that Siebel Tools, Siebel Web Client, and the Siebel Server are installed and running.

To Generate the Web UI DDK

  1. Open Siebel Tools and log in using the following user credentials:
    • Username: SADMIN
    • Password: SADMIN
  2. Create a new project called MyAccountProject and lock it.
  3. In the Tools Object Explorer, choose the View object type.
  4. Query for the All Account List View (SCW).
  5. In the Object List Editor, select the view, right click, and then choose Generate UI Kit.

    The first page of the Web UI Dynamic Developer Kit Wizard Opens. The Parent Applet field displays the applets that belong to the selected view:

    • Account List Applet (SCW)
    • Account Form Applet (SCW)
  6. On the Web UI Dynamic Developer Kit Wizard page, click Next.

    The Web Service Data Source page appears, displaying the selected view in the left window.

    You can expand the tree to display the applets on the view and any MVG or LOV fields on the applets. The window on the right displays Web services that can be used to expose the applets, MVG fields, or LOV fields. These could be predefined Web services that are shipped in the Siebel Repository (preconfigured Web services begin with the prefix WC_) or Web services that you have already created. If necessary, you can also create new Web services.

  7. Click Create New Web Service.

    The Integration Object Page of the Data Access Service Wizard opens. You can use preconfigured Integration objects or create a new one.

    NOTE:  Objects preconfigured for commonly used objects begin with the prefix WC_.

  8. In the Integration Object Page, select MyAccountProject, select Create New Web Service, and then click Next.

    The Integration Object Builder page appears.

  9. Enter the name of the integration object, such as TestAccountIO, and then click Next.

    NOTE:  The name of the integration object must not include spaces.

    The Integration Object Builder - Choose Integration Components page displays the available integration components for the selected integration object.

  10. Accept the default selections and then click Next.

    The business services page appears.

  11. Enter TestAccountBS for the business service name, accept the selection UI Data Service for the base service name, and then click Next.

    The UDS Methods page appears.

  12. On the UDS Methods page, be sure all methods are selected, and then click Next.

    All methods on the UDS Methods page must be selected for the DDK to compile.

    The Web Service Page appears.

  13. Change the URL displayed to reflect the details of your machine.

    For example:

    http://localhost/CustAppSvcs_enu/start.swe?SWEExtSource=CustomUI&SWEExtCmd=Execute&WSSOAP=1

  14. Click Next.

    The wizard creates the new integration object, writes any errors to a log file, and displays the name and location of the log file.

  15. On the Integration Object Builder page, click Finish.

    The Web UI DDK Wizard uses the TestAccountIO integration object and TestAccountBS UI Data Sync service to publish a Web service that can be used to expose the All Account List View. The new Web service, TestAccountBS, is now displayed in the Available Web Services list on the Web Services Data Source page.

  16. Select the TestAccountBS Web service, and then click Next.

    The Web UI DDK Options page appears, prompting you to define the location of the output Web UI DDK files and displaying details of the target platform, tag library, and proxy class generator.

  17. Enter a location for the Web UI DDK output files, such as c:\MyDDKFiles, and then click Finish.

    The Web UI DDK Wizard uses the integration object and Web service to generate the sample JSP pages, Java source code, and WSDL files that represent the All Account List (SCW) view. The output files are saved in the specified location and the wizard closes.

To Verify Results of Web UI DDK Wizard

  1. In Siebel Tools, select the Business Service object type in the Object Explorer.
  2. Navigate to the TestAccountBS Business Service and verify the object properties and Business Service Methods.
  3. Navigate to the TestAccountIO Integration Object and verify the object properties and child Integration Components.
  4. Compile the MyAccountProject project to the server SRF
  5. Start the Siebel Windows Services (Gateway Server and Siebel Server) by opening the Services control panel and starting Siebel Services.
  6. Once the server has started, open the Siebel Sales application in a browser that points to the Server started in the previous step, and then log in using the following user credentials:
    • Username: SADMIN
    • Password: SADMIN
  7. From the application-level menu, choose Navigate > Site Map, and Administration - Web Services > Inbound Web Services.
  8. In the Inbound Web Services applet, query for the TestAccountBS Web service to verify that it has been published.
  9. Open Windows Explorer, navigate to the DDK output directory you specified (c:\MyDDKFiles), and verify the output files appeared.

The DDK output files are ready to hand off to the Java developer to be deployed in a custom-built Web application. For deployment examples see the following:

Siebel Web UI Dynamic Developer Kit Guide