Web Services / Dev Ops Flashcards
What is the difference between SOAP and Rest?
- REST is a set of architectural principles.
- SOAP is an official protocol maintained by the World Wide Web Consortium (W3C).
- SOAP only works with XML formats whereas REST work with plain text, XML, HTML and JSON.
- SOAP uses service interfaces to expose its functionality to client applications while REST uses Uniform Service locators to access to the components on the hardware device
REST
Representational State Transfer; a set of architectural principles.
SOAP
Simple Object Access Protocol; it is an XML-based messaging protocol for exchanging information among computers. It allows processes to communicate throughout platforms, languages, and operating systems since protocols like HTTP are already installed on all platforms.
WSDL
Web Service Description Language; it is an XML based definition language used for describing the functionality of a SOAP-based service. Think of a WSDL file as a contract between the provider and the consumer of a service.
Contract-First
Where you create the WSDL and then create the implementation from this (WSDL is your contract, hence contract-first)
Contract-Last
Where the WSDL is created from the implementation so it will most likely be generated by a tool, rather than created by a developer
XML Namespace
eXtensible Markup Language; creates a qualified name for an XML element. This provides a unique identifier for the element or attribute to help avoid name conflicts.
Richardson Maturity Model
Web Services
A webservice is a software or app or API that you access via the internet to execute some tasks for you. There are 3 different types of web services:
IaaS – Infrastructure as a service
PaaS – Platforms as a service
SaaS – Software as a service
IaaS
Infrastructure as a service is an instant computing infrastructure that is managed over the internet.
IaaS allows businesses to purchase resources on-demand and as-needed instead of having to buy hardware outright.
IaaS works primarily with cloud-based and pay-as-you-go servicessuch as storage and networking.
Examples of IaaS:
Amazon Web Services(AWS)
Microsoft Azure
PaaS
Platform as a service is a cloud computing model where a third-party provider delivers hardware and software tools to users over the internet.
PaaS allows businesses to design and create applications that are built into thePaaS with special software components
PaaS focuses primarily on hardware and software tools available over the internet
Examples ofPaaS
AWS Elastic Beanstalk
ElephantSQL
Pega
SaaS
Software as a Service represents the most commonly utilized option for businesses in the cloud market
SaaS uses the internet to deliver applications, using third-party management, to its users.
Examples of SaaS:
Zoom
Google Workspace
HTTP
Hypertext Transfer Protocol; The internet is all about communication between web servers and web clients.
Clients are oftenweb browsers, but can be any type of program/device.
Servers are computers that run services to serve the needs of other computers (servers are computers in the cloud)
HTTP works as a request-response protocol between clients and servers
HTTP Status Codes
Status codes give a short description of success/failure of therequest
Status codes:
1xx(100) - these codes are purely informational
2xx(200) - these codes are success messages
3xx(300) - these codes are for redirection
4xx(400) - these codes are client-side errors
5xx(500) - these codes are for server-side errors
HTTP Request Structure
Start line
method that describes the action to be performed,
target which describes where to send the request
Header
Contains metadata such as the content type
Body
Contains the data you want the server to process