I am looking at implementing some Web Services and am wondering how best to do this. The two options I have are running the Web Services on Axis2 which is running on Tomcat or running the Web Services directly on Tomcat. Running directly on Tomcat would provide a much easier way of doing this as I could use the built in features of NetBeans for interacting between web services (I have developed web services this way before). I am really wondering what the differences are between these two methods? Also, in the long run we are looking at implementing a SOA architecture to the system so whichever method would be work with that would be great.
What do you mean by "running the Web Services directly on Tomcat"? Tomcat has no built-in WS provisions, so whatever NetBeans does - it must be installing/using some SOAP toolkit as well (I'm guessing that it uses the JAX-WS reference implementation, but I'm not sure about that).
If you're set on using an IDE for this (personally, I've never seen the need for that), then I'm sure you can find plugins that work with Axis 2 as well; I know there's one for IntelliJ.
Joined: Jun 22, 2009
Sorry, when you create a web service in net beans it does indeed use JAX-WS and it generates a .war file that can then be deployed and ran directly on Tomcat. You can also use the plug-in functionality of NetBeans to create Axis2 Archives (.aar files) that can be deployed onto Axis2 (which I have running on Tomcat). The question is; what is the difference between these two approaches?
Joined: Mar 22, 2005
There are some things Axis does that the JAX-WS RI doesn't, and vice versa, but for most usage scenarios those differences don't matter.
I'd start by selecting one of the frameworks based on whatever criteria make sense in your situation (development, deployment, runtime, etc.), and then look for a convenient way to develop for it.
Joined: Jun 22, 2009
Thanks, I just really wanted to know if there were any performance differences between the two.
Thanks for that, will probably use JAX-WS as it makes the development in NetBeans so much easier