javax.jws
Annotation Type WebMethod


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface WebMethod

Specifies that the given method is exposed as a Web Service operation, making it part of the Web Service’s public contract. A WebMethod annotation is required for each method that is published by the Web Service. The associated method must be public and its parameters return value, and exceptions must follow the rules defined in JAX-RPC 1.1, section 5. The method is not required to throw java.rmi.RemoteException.


Optional Element Summary
 String action
          The action for this operation.
 String operationName
          Name of the wsdl:operation matching this method.
 

operationName

public abstract String operationName
Name of the wsdl:operation matching this method. By default the WSDL operation name will be the same as the Java method name.

Default:
""

action

public abstract String action
The action for this operation. For SOAP bindings, this determines the value of the SOAPAction header.

Default:
""