@WebMethod Annotation



@WebMethod
By default, all the public methods of a SOAP web service are exposed in the WSDL and use all the default mapping rules. 

To customize some elements of this mapping, you can apply the @javax.jws.WebMethod annotation on methods. 
The API of this annotation is quite simple as it allows the renaming of a method or exclusion of it from the WSDL.

@WebService
public class @WebService
public class ATMCardValidator {
@WebMethod(operationName = "ValidateATMCard")
public boolean validate(ATMCard atmCard) {
// Business logic
}
@WebMethod(operationName = "ValidateATMCardNumber")
public void validate(String atmCardNumber) {
// Business logic
}
@WebMethod(exclude = true)
public void validate(Long atmCardNumber) {
// Business logic
}




Ref : Beginning of JavaEE 7