Which two statements are true about RESTful web services?

Which two statements are true about RESTful web services?

Which two statements are true about RESTful web services?

A.
They can be both stateful and stateless.

B.
They support the use of AJAX in web applications.

C.
They are often similar than their Simple Object Access protocol (SOAP) equivalents.

D.
They are independent of the transport protocol.

E.
They support Remote Procedure Call (RPC) and message-Oriented Middleware (MOM)
integration styles.



Leave a Reply 12

Your email address will not be published. Required fields are marked *


DonkeyNuts

DonkeyNuts

Wrong – C is definitely true. Anyone that has ever written a web service would know this. I dont think D is right, there seems to be differing views on this. I would have replaced D with C

DonkeyNuts

DonkeyNuts

Actually ive changed my mind, i think D is right. But then B might be wrong 😉

DonkeyNuts

DonkeyNuts

Ive changed my mind again i would say B and C. Rest is independent of transport protocol but RestFul services is an implementation of Rest over HTTP, so D is not true

Pesho

Pesho

Restful is independent of HTTP. D is correct.

Radek

Radek

From wikipedia:
“RESTful systems typically, but not always, communicate over Hypertext Transfer Protocol (HTTP)…”
so it looks like D is correct

Jacobo

Jacobo

A – is stateless
B – right
C – If we change ‘similar’ to ‘simplier’ the answer would be correct. RESTfull WS is simplier to build, deploy and call. Wrong.
D – REST works over HTTP, every resource represented by an URI that you call using http. Wrong.
E – Wrong, this is for SOAP.

I think that B is the only right question. If C has a typo, it would be correct.

Stephen Ubogu

Stephen Ubogu

BC. REST depends on http

Ashishkumar

Ashishkumar

BD

Ashishkumar

Ashishkumar

Please ignore above answer.

Correct Answer : BC (C if simpler instead of similar)

SOAP is a protocol specification for exchanging structured information in the implementation of Web Services. It uses XML for the message format. It is independent of the transport protocol (could be HTTP, FTP, TCP, UDP, or named pipes). SOAP based services strictly define the format of messages passed back and forth. A SOAP message contains the data, the action to perform on it, the headers, and the error details in case of failure. Security is provided by WS-Security standards and is end-to-end. It supports identity through intermediaries, not just point to point (SSL).

Representational State Transfer (REST) is an architecture style for designing networked applications. REST recognises everything a resource (e.g. User, Course, etc.) and each resource implements a standard uniform interface (typically HTTP interface), resources have name and addresses (URIs), each resource has one or more representation (like JSON or XML) and resource representations move across the network usually over HTTP.