Scope: Method
Multiplicity
(0..1): You can use this tag
zero or one time in any Java™ source
file that implements a Web service.
Purpose
The WebSphere®.WebMethod
tag flags a method for inclusion in the Service Endpoint Interface.
The method must be public and the tag comment must directly precede
the associated method declaration.
- Only one @WebSphere.WebMethod tag can be specified per method.
- If there is a @WebSphere.WebService tag, but no @WebSphere.WebMethod
tags, all public methods are included in the service endpoint interface
(SEI).
- If there are any @WebSphere.WebMethod tags, only those methods
so tagged are included in the service endpoint interface (SEI).
- It is an error to specify @WebSphere.WebMethod without @WebSphere.WebService
tag.
- There are no parameters to the @WebSphere.WebMethod tag.