Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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
ppk.007723
Edited 12-Oct-12 0:57am
v3
Comments
Sergey Alexandrovich Kryukov at 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...
--SA

1 solution

Rate this: bad
good
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.
  Permalink  
Comments
ppk.007 at 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
0 OriginalGriff 459
1 Maciej Los 325
2 Sergey Alexandrovich Kryukov 234
3 DamithSL 233
4 BillWoodruff 200
0 OriginalGriff 7,168
1 Sergey Alexandrovich Kryukov 6,377
2 DamithSL 5,461
3 Manas Bhardwaj 4,876
4 Maciej Los 4,450


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 15 Oct 2012
Copyright © CodeProject, 1999-2014
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