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 22:31pm
ppk.007709
Edited 11-Oct-12 23:57pm
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 mhegazy94 460
1 Sergey Alexandrovich Kryukov 405
2 Kornfeld Eliyahu Peter 285
3 Gihan Liyanage 167
4 Sibeesh KV 150
0 Sergey Alexandrovich Kryukov 6,805
1 OriginalGriff 6,696
2 CPallini 5,350
3 George Jonsson 3,609
4 Gihan Liyanage 2,792


Advertise | Privacy | Mobile
Web03 | 2.8.140922.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