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:
-
If necessary, create a new
diagram.
-
If necessary, choose Web Service from the
Component Palette's list of palettes.
-
Click the Java Web Service
icon on the Component Palette, then click on the class diagram. The Create Web
Service wizard is displayed.
-
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.
-
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:
-
Select the modeled web service, right-click and choose
Show | Implementation Files. The class is modeled on the
diagram and the dependency between the web service and the Java class
is displayed, and the files to implement the web service are added to
the navigator.
For more information about the generated files,
see Generated Web Services Files.
Related topics
Modeling a New Web Service
Copyright © 1997, 2004, Oracle.
All rights reserved.