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
- Open Siebel Tools and log in using the following user credentials:
- Username: SADMIN
- Password: SADMIN
- Create a new project called MyAccountProject and lock it.
- In the Tools Object Explorer, choose the View object type.
- Query for the All Account List View (SCW).
- 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)
- 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.
- 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_.
- On the Integration Object Page, select MyAccountProject, select Create new Integration Object, and then click Next.
The Integration Object Builder page appears.
- Enter a name for the new 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.
- Accept the default selections, and then click Next.
The Business Service page appears.
- Enter TestAccountBS for the business service name, accept the selected UI Data Service for the base service name, and then click Next.
The UDS Methods page appears.
- On the UDS Methods page, make sure all methods are selected, and then click Next.
NOTE: All methods on the UDS Methods page must be selected for the DDK to compile.
The Web Service page appears.
- Change the URL displayed to reflect the details of your machine.
- 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.
- 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 (SCW) view. The new Web Service, TestAccountBS, is now displayed in the Available Web Services list on the Web Services Data Source page.
- 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.
- 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
- In Siebel Tools, select the Business Service object type in the Object Explorer.
- Navigate to the TestAccountBS business service and verify the object properties and Business Service Methods.
- Navigate to the TestAccountIO integration object and verify the object properties and child integration components.
- Compile the MyAccountProject project to the server SRF.
- Start the Siebel Windows Services (Gateway Server and Siebel Server) by opening the Services control panel and starting Siebel Services.
- After the server starts, 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
- Navigate to the Administration - Web Services screen, then the Inbound Web Services view.
- In the Inbound Web Services applet, query for the TestAccountBS Web Service to verify that it was published.
- 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 deploy in a custom-built Web application. For deployment examples, see the following: