• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Needed Web Service help

 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic