Siebel Web UI Dynamic Developer Kit Guide > Using Native Web Service Technology Stacks >

Generating Java Client Proxies


You can use native Web technology stacks from IBM WebSphere or Oracle WebLogic to generate Java client proxies from the WSDL files generated by the Web UI DDK Wizard.

To generate Java client proxies in IBM WebSphere

  1. Create a new Dynamic Web Project.
  2. Import custom Java classes for handling authentication and session management SOAP headers.

    For example Java classes, see Examples of Setting and Getting SOAP Headers Using IBM WebSphere.

  3. Import the WSDL file(s) from the Web UI DDK output folder into the Dynamic Web Project created in step 1.
  4. Generate the Java client proxies, by right-clicking on the WSDL file, and then navigating to Web Services, then Generate Client.
  5. Select Java Proxy for the Client Proxy Type and then select the Test the Generated Proxy checkbox.

    Proxy files (.java files) are generated into Java Resources of the project and sample JSP files are generated and saved in WebContent, Sample, and then the WSDL named directory.

    NOTE:  The proxy files are generated with setEndPoint() and get Endpoint() methods that let the same proxy interact with different implementations.

  6. Build the project by right-clicking on the project and then selecting Build Project.
  7. To test the Web project, right-click on the WebContent/Sample/{Service}/TestClient.jsp, and then select Run On Server.

    For example: http://localhost:9080/Sample/EAILOVPortProxy/TestClient.jsp

  8. Once the server has started, Method Names become available in the left frame.

To generate Java client proxies in Oracle WebLogic

  1. In Oracle Workshop for WebLogic, create a new application.
  2. Import custom Java classes for handling Siebel session management and authentication SOAP headers.

    For example Java classes, see Example of Setting and Getting SOAP Headers Using Oracle WebLogic.

  3. Create a new directory in the Application Web folder.
  4. Import the WSDL file(s) to the directory you created in step 3.
  5. Right-click on the WSDL file and then choose Generate Service Control.

    The client proxy (for example EAILOVWS.JCX) is generated.

  6. Right-click on the .JCX file and then select Generate Test JWS file (Stateless)

    A Java Web Service file (.JWS) is created.

  7. To test the Web project, double click the <BusinessServiceName>.JCX file, start the WebLogic Server, and then click the Menu Play button or press CTRL+F5.

    A test browser opens that allows you to use the Test XML or Test Form feature.

Siebel Web UI Dynamic Developer Kit Guide Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices.