jQuery in Action, 2nd edition*
The moose likes Web Services and the fly likes New to WebServices, need to choose which implementation to use for project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "New to WebServices, need to choose which implementation to use for project" Watch "New to WebServices, need to choose which implementation to use for project" New topic
Author

New to WebServices, need to choose which implementation to use for project

Jim Huff
Greenhorn

Joined: Feb 11, 2011
Posts: 3

Hi all,

I'm just finishing up my BSIS degree this semester and am working on my senior project. It isn't a requirement to implement any webservices, but I've been wanting to learn something about them for a long while now and figured it's a good opportunity to learn something I wanted to know while getting my project done. I already work in software QA and work with J2EE web applications and I'd consider myself an intermediate with standard Java.

I'd just like to know what the easiest webservice implementation would be to use for my project; and by easy I really mean that I need something I can learn the basics of in a matter of hours (like maybe one day), because I have several components to my project and the webservice piece is only one of them that I have to develop.

I've read about JAX-WS and AXIS, and both seem pretty straight forward. Anyone have any suggestions on which to use, or on any other things to check out? Also any links to good tutorials or examples would be appreciated.

Just to give some background on the project, it will be a simple labor management application for the construction industry, where employees can clock in and out using a Swing client that invokes web methods to pass the data to a server (probably an endpoint running on Tomcat, unless anyone knows of something easier), where some light processing takes place and info is inserted into an Oracle DB. There's also an administration piece on the server side but that will connect directly to the DB so no help needed there.


I've been to the following two links and found them very helpful - but would like to ask the professionals for suggestions as well...

JAX-WS
http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/2.0/tutorial/doc/

AXIS
http://javaboutique.internet.com/tutorials/Axis/axis2.html


Thanks in advance!
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3838

Welcome to the CodeRanch!

I've read about JAX-WS and AXIS, and both seem pretty straight forward. Anyone have any suggestions on which to use

JAX-WS is actually the specification for web services. Axis2 implements it, you can read more about it here.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12809
    
    5
Much easier to use a RESTful style architecture if you don't need any of the WS-* security/encryption/etc functions of SOAP.

Wikipedia has good summaries.

Bill
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Do you expect any integrations with external systems in your project?
If not, then web services, both SOAP and RESTful/RESTlike, are probably not the most appropriate technology to use.
If you still want to use web services, I would personally recommend Jersey (JAX-RS) or Metro (JAX-WS), being the reference implementations. If you need both SOAP and REST, take a look at Apache CXF which supports both JAX-WS and JAX-RS.

Do you expect distribution of components/services of your system to, for instance meet nonfunctional-requirements?
If so, technology like a lightweight ESB (for example Mule) or Service Component Architecture may be of interest, allowing you to distribute components as required without having to modify the code of your components.
Please do not hesitate if there are further questions.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: New to WebServices, need to choose which implementation to use for project