Removing Exposed Methods from Modeled Web Services
There are three ways of removing methods from a web service. You can:
To deselect a method exposed as a web service:
-
Open the reentrant Create Web Service wizard by:
-
double-clicking the modeled web service on the diagram
-
right-clicking the modeled web service and choosing
Properties
-
double-clicking the web service container in the navigator
-
right-clicking the web service container in the navigator and
choosing Properties
-
In the Exposed Methods page, deselect the
method you no longer want to expose as a web service.
-
Click OK to regenerate the WSDL document.
The modeled web service will only show the methods that are implemented as web
services. In the underlying Java class, the method is removed although
the @webmethod
Javadoc comment will still appear.
To remove a method from a Java class:
-
Edit the Java class on which the web service is based and remove the
method.
-
Choose Regenerate Web Service from
the web service container's context menu.
The WSDL document is regenerated and the modeled web service no longer
shows this exposed method.
To remove a method from the modeled web service:
-
In the modeled web service on the class diagram, right-click the
method you want to remove, and choose D
elete from Model.
The WSDL document is regenerated and the modeled web service no longer
shows this exposed method.
Related topics
Updating a Modeled Web
Service
@webmethod Javadoc Comment
Copyright © 1997, 2004, Oracle.
All rights reserved.