• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Readonly Web services

 
Ezio A. Ehlke Carrion
Greenhorn
Posts: 4
C++ Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Guys,

What is the technology which I can accomplish such feature, have a readonly webservice? JAXWS or JAXRS(RESTfull)?

I'm working on TeamDoctor assignment and I have a requirement to to just read from web services and I don't know how to design such solution, any idea?

Thank you!
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A WS is an API that works over HTTP - if you don't want the API to be able to change anything, then don't provide methods that do that.
 
ntumba lobo
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The choice between SOAP WS and RESTful WS depends on how strongly you want the contract between the consumer and producer to defined.

If your WS is intented for B2B exchanges and can be used potentially by other external companies I would go for SOAP which strongly
defined the contract via WSDL.
If your WS is intented for internal use only in your company and the interface is simple enough like in your case, there is no
need for the SOAP overhead and I would go for RESTful WS.

I discarded here the social type of B2B integration where for example the MSN website calls the Facebook RESTful API to display
you facebook status in MSN. That's a particular case.
 
ntumba lobo
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have just downloaded 10 min ago my assignment and it is teamdoctor as well !
I guess I'll be facing the same design issue as you
 
Devashish Bansal
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This might help:

http://www.ajaxonomy.com/2008/xml/web-services-part-1-soap-vs-rest

esp. see pros/cons part.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic