@WebService- This annotation can be used with a Java class as well as with interface. In our case we used it with both interface as well as the POJO. This annotation declares the POJO as a WebService. @WebService annotation is utilized in generating the WSDL file.
serviceName is same as the WSDL element service
name is same as the WSDL element
endpointInterface suggests the user defined name for the Service Endpoint Interface (SEI).
portName is the element portName
targetNamespace is the XML namespace of the WSDL and some of the XML elements generated from the WebService
@WebMethod- This annotation is applied to a method to expose it as a WebService method. In case you have multiple methods you can use this annotation to selectively expose methods as WebService method. If you donot use this annotation all the public methods will be exposed as WebService.
@WebParam- This annotation is used along with @WebMethod annotation to define the WebService. It is used to customize parameter used in the message part of the WSDL.