Introduction to Web Services

class. 3. Adding in Web Services Annotations: Java 6 includes annotations so that the compiler will know that the program code is a Web service. A partial list of available annotations is as follows: • javax.jws.WebService • javax.jws.WebMethod • javax.jws.WebParam • javax.jws.WebResult • javax.jws.HandlerChain • javax.jws.soap.SOAPBinding Figure 9 illustrates an example of a Java service which has been annotated. Note that in the example the @WebService and @WebMethod are the annotations. The complier will recognize these tags and create the WSDL document.