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.007701
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
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 530
1 OriginalGriff 379
2 Manas Bhardwaj 350
3 Abhinav S 295
4 Sampath Lokuge 255
0 Sergey Alexandrovich Kryukov 7,647
1 OriginalGriff 4,287
2 Peter Leow 3,681
3 Maciej Los 3,515
4 Er. Puneet Goel 3,107


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