File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Needed Web Service help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Needed Web Service help" Watch "Needed Web Service help" New topic
Author

Needed Web Service help

shai ban
Ranch Hand

Joined: Jan 05, 2010
Posts: 177
Hi all,
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.

Regards.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
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:
http://www.slideshare.net/krizsan/scdjws-5-study-notes-3085287

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
Best wishes!
shai ban
Ranch Hand

Joined: Jan 05, 2010
Posts: 177
HI Ivan,
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.

Regards.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Using annotations IS the basic way with JAX-WS, as I said before.
I would suggest reading a book, perhaps Java Web Services Up and Running.

Good knowledge of XML is a good foundation for using/learning both SOAP and REST web services.
After that you may want to take a look at SOAP and WSDL.
Best wishes!
shai ban
Ranch Hand

Joined: Jan 05, 2010
Posts: 177
So without Annotations, webservice development is not possible with JAX-WS?
I am not a beginner in xml but I will take your advice and build my foundation more strong.
Which book you will suggest?
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
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.
Best wishes!
shai ban
Ranch Hand

Joined: Jan 05, 2010
Posts: 177
Hi,
I am not able to download the Axis2 tools from the below urls...

[url]
http://www.apache.org/dyn/mirrors/mirrors.cgi/ws/axis2/tools/1_4/axis2-eclipse-service-archiver-wizard-1.4.zip
http://www.apache.org/dyn/mirrors/mirrors.cgi/ws/axis2/tools/1_4/axis2-eclipse-codegen-wizard-1.4.zip
[/url]

No link is working on these pages. Can anybody give me the working links?

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Needed Web Service help