Click here to Skip to main content
11,923,046 members (62,479 online)
Rate this:
Please Sign up or sign in to vote.
See more: Java Mobile Android JSP WebService , +
I am Java Developer, i am confused when to use which web services, either i should use JAX-WS or JAX-RS or any other 3rd party & why?
Please help by an example like:
1.) if i am making Login form which web services is better or their is no need of web services at all ?
2.) if you try to make newsletter, subscriber, reminder which web service should be used ?

Please help me when i should decide that this type of application required web service and this type doesn't required web service ?

I googled and found web service help the performance, flexibility, etc of Application of Web. But if so which web service should be used and why ?

Please explain me with appropriated example ?
Posted 11-Oct-12 23:31pm
Edited 12-Oct-12 0:57am
Sergey Alexandrovich Kryukov 12-Oct-12 14:26pm
It all depends on your application. Is it a Web site? If so, you can have all facilities you need on the server-side of it. If you already have some Web service, it's another story...

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

It is a matter of choice which you select either JAX-Ws or JAX-RS. The difference is that JAX-RS is light weight and handles all requests in HTTP. On the other hand, JAX-WS is transport protocol independent, and you can use HTTP, SMTP, etc. JAX-WS is best to use if your application is heavy and requires a lot of security and all other WS-* for the services.

However, if your application is a website, I don't think it's necessary to have a webservice. Webservices are mostly used for Business-to-Business communication, where multiple systems are used and not just a normal user interacting with the system.
ppk.007 18-Oct-12 2:35am
Can you example your last para with an example. I am unable to understand it properly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151125.3 | Last Updated 15 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100