Visit the website to download this code.
Website: http://javabrains.koushik.org/2013/07/writing-web-service-code-and-deploy.html


We'll now convert the simple Java class in the previous tutorial into a web service, deploy it to Glassfish, and test it by submitting a SOAP request to get a SOAP response.