Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Web Services


Published on

Review of Web Services in .NET, outlining some of the differences between SOAP and REST

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Web Services

  1. 1. Or “How I learned to stop worrying and love HTTP”
  2. 2. A service that is accessed using web- standard methods HTTP Consumers of a web service don’t need to know anything about the platform, object model, or programming language used to implement the service, they just need to know how to HTTP
  3. 3.  Remote Procedure Call • Basically calling the methods of an object located on a server instead of in memory • uses Simple Object Access Protocol (SOAP)  Standard used to represent method calls and return values  Uses Web Service Definition Language (WSDL) to communicate what is expected for input and output
  4. 4. • Soap is kind of complicated• Proxy class generators were created • see: Add (Service) Reference
  5. 5.  Relies on event-driven message passing for communication Other fancy words include “enterprise service bus”, “event driven architecture” Almost all solutions are vendor-specific or home-brewed, terribly expensive and complicated I will not be showing an example of this today :P
  6. 6. A service that doesn’t require any of the SOAP stuff Data usually returned in XML or JSON format Structured so that multiple web services can be combined into single applications “aka mashups” Resource focused as opposed to action focused (nouns over verbs)
  7. 7.  aka REST Uses HTTP Verbs to perform actions with resources • Create = PUT, Read = GET, Update = POST (or PATCH), Delete = DELETE Focus on stateless resources and clean URLs • i.e. instead of
  8. 8.  HATEOAS Restafarianism OData