Statelessness means that the server should not keep a client state on the server, every request should be as it it’s for the first time.

SOAP – Simple Object Access Protocol

Properties

  • Exposes operations wich represent logic
  • Always XML
  • Supports asyncronous messaging
  • Strongly typed
  • Uses only generally HTTP POST
  • Emphasis on loosely coupled distributed messaging

Advantages

  • platoform independant
  • standardised
  • built in error handling
  • Not just http

REST – Representative State Transfer

Generally returning data in JSON

Properties

  • Exposes resources which represent data
  • Uses http verbs
  • Supports multiple data formats
  • Emphasises stateless communication

Advantages

  • no expensive ools
  • smaller learning curve
  • canuse smaller message formats
  • fast
Advertisements