Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SOAP and REST tightly and loosely coupled

 
Rajesh Khan
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have implemented SOAP webservices using JAX-WS and REST webservices using JERSEY. But I fail to see how SOAP is tightly coupled and REST is loosely coupled ??

 
Tim Moores
Bartender
Posts: 2686
36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As there is no standard definition of "tightly/loosely coupled", it would be easy to argue that both are tightly coupled, and it would be easy to argue that both are loosely coupled. I'd say that SOAP is more tightly coupled than REST because it specifies the data types to be used, whereas REST does not. That makes it a bit harder (but by no means impossible) to change the implementation without also changing the interface.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic