10 - Web Services Flashcards
(52 cards)
what does API stand for?
application programming interface
set of clearly defined methods of communication between various components
API
a published document that defines how these methods of communication can be used
API
refers to the actual implementation of an interface
API
used informally to refer to the document that describes the usage of this interface
API
APIs that are designed to support interoperable machine-to-machine interaction over a network
web services
types of web service implementations (2)
- simple object access protocol (SOAP)
- representational state transfer (REST)
_____ usage revolves around the exchange of XML messages
SOAP Web Services
true/false
SOAP is transport specific meaning messages can only be exchanged using HTTP/HTTPS
false, SOAP is transport agnostic and messages can be exchanges using any network protocol
in SOAP web services, the format of the request/response messages are formally defined in the _____
Web Service Definition files
Web Service Definitions are written in Web Service Definition Language (WSDL) which has an _____ structure
XML-like
___ is the API/interface definition for SOAP
Web service definition
what is the relationship between discovery service, service consumer, and web service
web services publish WSDs to the discovery service which can be downloaded by service consumers from the discover service
service consumers can access services from web services
discovery services use the ____ framework for sharing and finding WSDs
universal description, discovery, and integration (UDDI)
what does REST stand for?
representational state transfer
REST was introduced and defined by _____ in ____ for their PhD dissertation
Roy Fielding, 2000
design principles (3)
- transport
- data formats
- stateless
REST uses ____ for message transport
HTTP/HTTPS
true/false
request/response payloads for RESTful web services can use any data format
true
RESTful web services are stateless, each exchange between service and client is _____
self-contained
RESTful web services use ___ and ___ urls
HTTP and HTTPS
RESTful web service urls are usually designed in a ____, ____ pattern
self-descriptive, directory-like
why should we stick to the REST API constraints?
the system will more easily be able to achieve desired performance, scalability, and other architectural goals
6 constraints of REST
- Client-Server
- Stateless
- Cache
- Uniform Contract
- Layered System
- Code-on-Demand (optional)