Generating a Web Service Class for an Application Module

You can automatically generate a web service class from the application module to publish the exported methods of an ADF Business Components application module as a web service.

To generate a web service class for your application module:

  1. Open the Application Module Editor by either:
  2. In the Application Module Editor, select Remote to open the Remote page.
  3. Select Remotable Application Module, then shuttle J2EE Web Service to the selected list.
  4. With J2EE Web Service selected, enter an appropriate name and namespace for the web service .
    Note: When you create a web service from ADF Business Components, you should create the web service in a different to the one containing the business components, otherwise it is possible that one or more of the automatically generated files may overwrite existing files.
  5. Click Apply, then click OK. The class <application_module>Server.java is added to the structure window view of the application module.

Note: since the web service class is generated code, if you modify the set of methods on your application module, you need to regenerate the web service class.

Once you have generated the web service you can deploy the web service, however you should first edit the the WebServices.deploy deployment profile. See Before Deploying a Web Service from an Application Module.


Creating Web Services from ADF Business Components Using Generated Web Service Classes
Before Deploying a Web Service from an ADF Business Components Application Module
Optimizing the ADF Business Components Application Module Pool for Web Services

 

Copyright © 1997, 2004, Oracle. All rights reserved.