1/40
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What is HTTP?
HyperText Transfer Protocol.
the fundamental protocol used for communication on the web.
Used to transmit web traffic, including REST and (often) SOAP web services
What is the only required header in an HTTP request?
Host
– identifies the domain being accessed.
What does an HTTP response start with?
A line like HTTP/1.0 200 OK
, indicating protocol version and status code.
What status codes start with 1?
Informational – e.g., 101
(WebSocket handshake).
What does a status code beginning with 2 mean?
Success – e.g., 200
(OK), 201
(Created), 204
(No Content).
What does a status code beginning with 4 mean?
Client error – e.g., 404
(Not Found), 401
(Unauthorized).
What does a status code beginning with 5 mean?
Server error – e.g., 502
(Bad Gateway).
What do HTTP headers do?
Provide metadata or instructions (e.g., content type, accepted formats).
Can you define custom headers in HTTP?
Yes, it's often used for sending parameters or metadata.
What are name-value pairs used for in HTTP?
A way to pass form data or parameters, e.g. username=alice&password=123
.
Where are name-value pairs included in requests?
In the query string (GET) or body (POST).
What does SOAP use to encode data and messages?
XML – a text-based markup language used to encode method calls and responses.
What transport protocols can SOAP use?
Typically HTTP, but also FTP, SFTP, or even hypothetical ones like carrier pigeons.
Why was SOAP developed?
To replace RMI/CORBA with something that worked better with network security and firewalls, using standard protocols.
What is XML-RPC?
A simple XML-based protocol for making remote procedure calls – SOAP evolved from it.
What's the difference between a remote procedure call and a method call?
A procedure uses only parameters passed in;
a method may also use internal object state.
Why does SOAP avoid communication issues?
Because it sends standard XML traffic over standard protocols (like HTTP), which networks already accept.
Why is SOAP considered more secure than RMI?
It does not send executable code, avoiding risks from running unknown or malicious stubs.
How does SOAP support version tolerance?
Unlike RMI, it is less sensitive to software version mismatches, since it relies on structured data, not compiled code.
What are the main drawbacks of SOAP?
Less efficient – XML is large and computationally expensive
Limited flexibility – can't send executable code
One-way communication – servers can’t initiate contact with clients
Why is SOAP considered "less clever" than RMI?
Because it can’t perform dynamic code execution – but this also makes it simpler and safer.
What was the big shift that SOAP represented?
Moving from code-based object invocation (like RMI) to data-based communication using XML and HTTP.
What is REST?
Representational State Transfer.
simpler more modern alternative to soap.
What does REST always use as a transport protocol?
HTTP – unlike SOAP, which can use HTTP, FTP, etc.
What is a RESTful Web Service?
A service where the operation and parameters are encoded directly into the HTTP request.
What response formats can REST return?
Almost anything – usually plain text, XML, or JSON (machine-readable).
What is JSON?
JavaScript Object Notation – a lightweight, readable format for structured data.
What does HATEOAS stand for?
Hypermedia As The Engine Of Application State
What did original REST (with HATEOAS) require?
That clients navigate the service using hypermedia links returned in HTML responses, with no prior knowledge of endpoints.
Do most modern "REST" APIs follow strict HATEOAS rules?
No – most modern REST APIs use a more relaxed definition (URLs + JSON/XML responses).
Why don't most REST APIs use strict HATEOAS?
It's hard to implement, and JSON didn’t exist when REST was first defined.
Can SOAP use transport protocols other than HTTP?
Yes – SOAP can also use FTP, SFTP, or others.
Where are method calls and parameters encoded in REST?
In the URL itself, not in a separate message body.
Can REST separate headers from requests?
No – in REST, the header is the request.
What format is most common in this module for REST responses?
JSON – for structured data.
What’s the main structural difference between SOAP and REST requests?
SOAP: Method + parameters in an XML body (separate from header)
REST: Method + parameters in the URL and HTTP method
Can SOAP work if firewalls block non-standard traffic?
Yes, but it may require configuration. REST has fewer issues as it uses standard HTTP.
Which is more lightweight – SOAP or REST?
REST – fewer headers, simpler format, smaller messages.
In SOAP, what does the Content-Type header usually say?
text/xml
or application/soap+xml
Which is better for simple web APIs – SOAP or REST?
REST, due to its simplicity, standard usage, and lightweight design.
What is the only thing passed between machines in both SOAP and REST?
Data – including method names, parameters, and results.
(No code is transferred.)