Generating Stubs for Modeled Web Services
You can generate a stub from your modeled web service to call the web
service's exposed methods in your application.
To generate a stub for a modeled web service:
-
On the diagram, click on the modeled web service to select it.
-
Right-click and choose Generate | S
tub/Skeleton. This launches the Web Service Stub/Skeleton
wizard. On the Select Web Service Description
page the path and filename of the WSDL document for this web service is
already selected. Click Next.
-
On the Select Stubs/Skeletons to Generate
page the exposed methods are listed. By default all the methods are
selected so that a stub will be generated for each. To deselect an
exposed method so that no stub is generated, click on the box to
remove the tick.
-
When you select an exposed method, the default
Package and Class Name
for the generated stub are displayed. You can enter new values for
these.
-
Click Finish. The stub is generated, the
source code is displayed in the Code Editor, and the Java class is
added to the navigator.
Related topics
Modeling Web Services
Web Service Stub/Skeleton wizard
Copyright © 1997, 2004, Oracle.
All rights reserved.