Web Services Flashcards
(44 cards)
API
Application Programming Interface
- Set of clearly defined methods of communication between various components.
- Is also used to refer to a published document that defines how these methods of communication can be used.
API
- Refers to the actual implementation of an interface that other app/programs can call on.
- It is also used informally to refer to the document that describes the usage of this interface.
API
True or False
Airline websites offer an API/Web Service for other apps (like CheapFlights) to access their data.
True
Web Services vs API
Web Services involve network communication.
APIs can use any means of communication.
True or False
Web Services are APIs designed to support interoperable machine-to-machine interaction over a network.
True
True or False
WS expose services to clients over a network, using a uniform interface.
True
True or False
Many systems inherently interoperate well, thus APIs/web services are uncommonly used.
False
Many systems do not inherently interoperate well, thus the need for APIs/web services.
2 types of Web Service Implementations
- Simple Object Access Protocol (SOAP)
- Representational State Transfer (REST)
- ________ Web Services usage revolves around the exchange of XML messages.
- Is transport agnostic.
- Messages can be exchanged using SMTP, FTP, HTTP, or any network protocol.
SOAP
True or False
In designing web services, the format of the request/response messages is defined by the developer, and usually published somewhere.
True
In SOAP web services, these formats are formally defined in ________________ files.
Web Service Definition (WSD)
These WSD files function similarly to the DTD in HTML files.
- ____ are written in Web Service Definition Language (WSDL), which has an XML-like structure.
- ____ define the structure of the SOAP Request and Response messages.
- It is the API, or interface definition for SOAP.
WSDs
__________ use the Universal Description, Discovery, and Integration (UDDI) framework for sharing and finding WSDs.
Discovery services
REST stands for
Representational State Transfer
- Introduced and defined by Roy Fielding in 2000 for his PhD dissertation.
- Is a software architectural style.
REST
Design Principles
Transport, Data Formats, Stateless
REST uses the HTTP/HTTPS protocol for message __________
transport
- Request/response payloads for RESTful web services can use any __________
- Text, XML, JSON, CSV, etc.
data format
RESTful web services are __________. Each exchange between service and client is self-contained.
stateless
True or False
The design of RESTful web services are guided by 7 constraints, which limit the ways the server can process and respond to requests.
False
- RESTful WS use _____, and thus use _____ urls.
- These urls are usually designed in a self-descriptive, directory-like pattern.
Same Answer
HTTP
By sticking to these constraints, the system will more easily be able achieve desired performance, scalability, and other architectural goals. What are the constraints?
- Client-Server
- Stateless
- Cache
- Uniform Contract
- Layered System
- Code-on-Demand* (optional)
True or False
These constraints produce an architecture similar to that of the Web.
Architectures that don’t conform to these are not considered RESTful architectures.
True