Modeling a New Web Service Based on a Java Class

You can model a web service from a Java class that is not modeled on the class diagram. The class must have at least one public method on which the web service will be based.

To model a new web service from a Java class:

  1. If necessary, create a new diagram.
  2. If necessary, choose Web Service from the Component Palette's list of palettes.
  3. Click the Java Web Service Java web service icon on the Component Palette, then click on the class diagram. The Create Web Service wizard is displayed.
  4. On the Class page of the wizard, enter the name of, select, or browse to the Java class you want to base the web service on.
  5. Complete the rest of the wizard, accepting the defaults. For detailed help about completing the wizard, press F1 or click Help from within the wizard.

By default, the Java class is not added to the diagram.

To add the class to the diagram:


Modeling a New Web Service

 

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