Skip to content

Instantly share code, notes, and snippets.

@kranthilakum
Last active February 27, 2018 11:40
Show Gist options
  • Save kranthilakum/1cb35847495aeaab661e5376f00b2774 to your computer and use it in GitHub Desktop.
Save kranthilakum/1cb35847495aeaab661e5376f00b2774 to your computer and use it in GitHub Desktop.
Web Services

Web Service

  • a method of communication between two devices over network
  • a collection of standards or protocols for exchanging information between two devices or application

SOAP

  • Simple Object Access protocol
  • W3C recommendation for communication between two applications
  • XML based messaging protocol
  • Platform and programming language independent
    • SOAP web services can be written in any programming language and executed in any platform
  • fundamentally a stateless, one-way message exchange paradigm
    • used for simple one-way messaging but is also useful for performing RPC-style request-response dialogues
  • SOAP message
    • SOAP Envelope
      • SOAP Header (optional)
      • SOAP Body (mandatory element)
    • what data is placed in a header block and what goes in the SOAP body are decisions made at the time of application design
    • outbound SOAP messages can be altered by SOAP intermediaries
    • there’re several message exchange mechanisms and underlying protocols for message transfer
  • uses service interfaces to expose business logic
  • defines WS Security
  • uses WSDL (Web Services Description Language)
    • XML document with information about web services
    • part of UDDI (Universal Description, Discovery and Integration)

REST

  • architectural style
  • REpresentational State Transfer
  • can you SOAP web service
  • uses URI to expose business logic

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment