Step 2: Transform the Java class in a web service
To transform the previous java class in a Web Service, simply add
a WebService annotation:
@WebService(targetNamespace = http://www.mycompany.com/barcode ",
name="Barcode",
serviceName="BarcodeService")
public class BarcodeService{
...
}
This defines all public and non static methods of the class as operations of the BarcodeService Web Service.