Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
1.00/5 (1 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
Updated 11-Oct-12 23:57pm
v3
Comments
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...
--SA

1 solution

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.
 
Share this answer
 
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900