I want to implement web service and its client generation in j2ee. I don't know which reference material I should follow because in every reference, they are using diff diff approach e.g. axis, wscompile and some are using all this things through IDE like eclipse/NetBeans and some are generating it through annotations. I want to know the basic approach without annotations and without any IDE (because what it will generate in background, I wont be able to understand until I know the basics).
Please suggest me which path I should follow. Which all technologies I should understand for creating J2ee web service.
If you want to use JavaEE to develop SOAP web services, then the standard way of developing web services is by using JAX-WS.
If you want to develop REST web services, then the corresponding standard is JAX-RS.
Both JAX-WS and JAX-RS uses annotations as the standard way of developing web services.
If you want to obtain basic knowledge without an IDE doing a lot of work for you, I would recommend using Eclipse and GlassFish v2 or v3.
GlassFish contains the Metro web service stack, which is the reference implementation of the JAX-WS standard, and the Jersey REST web service stack, which is the reference implementation of JAX-RS.
I have written a document, with quite some examples on how to develop SOAP web services using Eclipse and GlassFish v2, which you can find here:
On the other hand, if you are in a hurry to get something up and running, I would recommend using NetBeans, since it has good tooling for web service development; both SOAP and REST. For more information on this option, please refer to the web service tutorials section at www.netbeans.org
Thanks a lot for replying. You helped a lot in my confusion.
I am interested in JAX-WS style web services but without the annotations because first I want to learn the basics. Still I am confused about a lot of terms like .ws, wsdd etc. I want to implement the web service without annotation thru/without Eclipse/NetBeans. Also tell me, what technologies I should be comfortable for learning all these things.
Please guide me.
A book that gives a good introduction on web service basics is: J2EE Web Services by Richard Monson-Haefel.
It is a little old by now, so I recommend focusing on chapters 1-5 and 13-15. No need to read about JAX-RPC.
The two first chapters are on XML and XML schema and if you find no difficulties there, then you can without doubt go on to SOAP and WSDL.