Creating a Web Service Proxy Using JDeveloper11g with a JAX-RPC Client

You can create a proxy that consumes a web service that is deployed in the WebLogic server. This section explains how to create the proxy in the development environment.

To select JAX-RPC as the standard for a business service consumer project:

  1. In JDeveloper, right-click on the appropriate business service consumer project and select Project Properties.

    The Project Properties window for the selected business service consumer project appears.

  2. In the left-hand side tree structure, select Libraries and Classpath.

    The Libraries and Classpath page appears on the right-hand side of the window.

  3. In the Classpath Entries area, select JAX-RPC Web Logic Client and JAX-RPC 11 Web Services.

  4. Move the JAX-RPC Web Logic Client and JAX-RPC 11 Web Services entries to the top of the page by clicking the Move Up button

    Clicking the Move Up button moves the entry one level at a time; you may need to click the Move Up button multiple times to move the entries to the top of the page.

  5. Click OK.

  6. On JDeveloper, save the changes that you made to the Libraries and Classpath property of the selected business service consumer project.

To create a web service proxy:

  1. From OMW, open JDeveloper 11g.

  2. Under the BSSV package (created for the proxy project), create a subfolder named Proxy.

    For example, Oracle uses the following package structure for reference implementations:

    oracle.e1.bssv.JRH90I33.proxy

  3. Select the OMW project and then open the project properties.

  4. Add the proxy path that corresponds to the package structure in the java source path.

    For example, the following structure might be added to the java source path:

    c:\e812\DV812\Java\source\oracle\e1\bssv\ JRH90I33\proxy

  5. Select the BSSV package for which you want to create a proxy, and then click File, and then click New.

  6. On New Gallery, select All Technologies from the drop-down menu.

  7. Expand the Business Tier category, and then select Web Services.

  8. In the Items pane, select Web Services Proxy, and then click OK.

    The Create Web Service Proxy wizard opens.

  9. On the Welcome page, click Next.

  10. If you receive a prompt to select a web service option, select JAX-RPC, and then click OK.

  11. Enter the web service URL address.

  12. On the Specify Default Mapping Option page, enter the package name or select the name using the Browse button.

    For example, to use the JRH90I33 reference implementation, select oracle.e1.bssv. JRH90I33.proxy.

  13. Click Next.

  14. Select the name of the service that you want to call, and then click Next.

  15. Verify that the default options are selected on the remaining pages, and then click Finish.

  16. Select the newly created proxy folder.

    This folder is the destination folder for the files that are created.

    The proxy files are created.