views:

2051

answers:

4

Some time ago (~4-5months ago) I attented a lecture about JEE and at some point the lecturer started talking about webservices and how hard it is to create a good one because all the IDEs make them in a bit different way (or something like that) and that in general it's better to use Netbeans to create them as Eclipse has some issues, the thing is he didn't really say why Eclipse is bad. Now I'm wondering is what he said true and why, is it really better to use Netbeans for webservices and why?

+3  A: 

We have an enterprise application that uses webservice (WS), and most of our colleagues use eclipse (I use Intellij, but that has nothing to do with WS).

Anyways, we have no problems, and the reason is we don't use IDE for anything that is specific to WS. We use tools like JBossWS, SOAP-UI etc. to handle what could be thought of WS specific tasks.

I believe THIS is an altogether better approach; To use whatever third party tools that is good, and to not depend too much of Eclipse/Netbeans specific functions.

We also use maven for dependency management instead of the eclipse's build-in one, and it was a very good idea. We don't need eclipse to build stuff, we can integrate the project without hassle into a CI (Continuous Integration) server, and I get to use my favorite IDE Intellij.

If we want to out-source something, this is very handy because we don't have to care what plugins they are using. Just say that it is a maven project, give them the source, and they are good to go.

To summarize, my advice is to make it so that you get to choose whatever IDE you want to use.

Enno Shioji
+2  A: 

Well, if you want to generate a client based on the totally outdated Axis stack or to use the not so much better Axis 2, Eclipse helps a bit. But if you want to use JAX-WS and advanced standards from WSIT for Reliable Messaging, Security, Policy, etc, there is just no competition. NetBeans has very good support (understand must have wizards), lots of tutorials, documentation, samples, etc while Eclipse has nothing.

The problem is that Eclipse is supporting and promoting Axis for too long (mostly for badpolitical reasons IMO). Things may change in the future with the support of Apache CXF in Eclipse but for now, NetBeans is better for web services development.

Don't misinterpret me, I like Eclipse, but when it comes to JAX-WS web services development, NetBeans is the right tool for now.

Pascal Thivent
+1  A: 

It bears repeating that the term "web services" need not be synonymous with SOAP and WSDL. You always have REST available to you, if you're willing to pass on the tools that the WS-* group is peddling. IDEs and tools and wizards mean a lot less if you take that approach.

I think it's part of the reason why the WS-* approach has gone as far as it has, in spite of the bloat: tool vendors love it.

duffymo
+1  A: 

I write web services at work and have used Axis2/jaxws and Apache CXF(our defacto now) with eclipse. I don't use plugins or any thing like that. Everything is driven through ANT, and soon to be Maven. Have absolutely no problems, and also don't have to deal with all the bloat that is Netbeans.

Casey
That's the easy part for which you don't need special things apart from wsimport and / or wsgen. But, as I wrote, once you start to play with things like WS-Security, you really need tooling which NetBeans does offer (and your comment about the "bloat" that NB is is odd, do you have any experience with recent versions?).
Pascal Thivent