A web service can be implemented either as a POJO or as an EJB. Also note that WAR files and EJB JAR files may be part of an EAR.
Thus, a web service can be deployed in a WAR, in an EJB JAR or in an EAR.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com