Creating a JAX-RPC Web Service in JDeveloper

Note: This section is applicable for JDeveloper 11g only. With JDeveloper 12c, development of JAX-RPC web services is not supported.

After you create and successfully compile a published business service, you can use JDeveloper 11g to create a JAX-RPC based web service. The following steps guide you through the process.

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

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

    The Project Properties window for the selected published business service 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 Services and JAX-RPC Web Logic Client.

  4. Move both JAX-RPC 11 Web Services and JAX-RPC Web Logic Client 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 published business service.

To create a JAX-RPC-based web service from a published business service:

  1. In JDeveloper, expand the appropriate published business service project folder.

  2. Right-click on the published business service Manager Java file and select Create Web Service.

    The Create Java Web Service window appears with the Generation Options page available.

  3. On Generation Options, verify the system entered values for the Web Service Name and the Port Name fields.

  4. Click Next to open the Service EndPoint Interface page.

  5. On the Service Endpoint Interface page, select the Autogenerate Service Endpoint Interface option, and verify the system entered value for this option.

  6. Click Next to open the Message Format page.

  7. On Message format, do the following:

    • Ensure the Generate Schema with Qualified elements option is selected.

    • Select Document/Literal from the SOAP Message Format drop-down list.

  8. Click Next to open the Mapping page, and accept the system entered values for the fields.

  9. Click Next to open the Methods page.

  10. On Methods, verify that all of the public methods that are defined for the published business service Manager Java file are listed and selected.

  11. Click Next to open the Choose Service State page.

  12. On Choose Service State, click Next to open the Additional Classes page.

  13. On Additional Classes, click Next to open the Select WLS policies page.

  14. On Select WLS policies, click Next to open the Provide Handler Details page.

  15. On Provide Handler Details, verify the system entered Port and click Next to open the Finish page.

  16. On Finish, click the Finish button to create the web service.