Web Services Flashcards
1
Q
website
A
- a set of globally accessible, interconnected web pages that has a single domain name
- one-way informational feeds, which means their main goal is to present information to the visitors
- e.g. blogs and news
2
Q
web applications
A
- they allow user to interact with them and connect to a database to make the content dynamic
- they are capable of performing a wide range of functions
- e.g. Twitter and Amazon
3
Q
web service
A
- a software system communicates between two different sets of devices or application
- it’s not for general users and very unlikely to have any user interfaces
- a service offered by an electronic device to another electronic device, communicating with each other via the internet (World Wide Web)
- a server running on a computer device, listening for requests at a particular port over the network, serving web documents (HTML, JSON, XML, images)
- it can be categorized into two types: REST and SOAP
4
Q
REST
A
- Representational State Transfer
- an architecture for creating web services
5
Q
REST API
A
- an application programming interfaces implemented according to REST architecture
6
Q
REST’s Architectural Constraints
A
- client-server: REST application is expected to have a server to manage data and a client to handle user interactions
- stateless: servers don’t maintain any client state. Each request sent to the server is independent
- cacheable: possible responses should be cached to avoid unnecessary processing
- uniform interface
- layered system
7
Q
constraints
A
the rules that enforce data integrity on the RDBMS automatically
8
Q
SOAP
A
- Simple Object Access Protocol
- it was designed by Microsoft in 1998
- it’s an XML-based messaging protocol for transferring information between applications or computers
9
Q
SOAP message
A
an XML document containing:
- envelope that identifies the XML document as a SOAP message
- header that stores header information (optional)
- body that stores call and response informatioin
- fault that stores information about errors if any errors occurred during the process (optional)
10
Q
SOAP vs REST
A
- SOAP is a protocol while REST is an architectural style
- SOAP has an official standard while REST has not.
- REST APIs are lightweight and requires less bandwidth
- SOAP uses XML while REST can use several data format like HTML, XML, JSON etc.
- SOAP is language, platform, and transport-independent
- SOAP doesn’t require HTTP while REST does