Differences between WSDL/SOAP and REST/JSON in Oracle Cloud Platform Application Integration 2020 Specialist Exam

WSDL/SOAP vs. REST/JSON: Key Differences

Question

Which four statements are correct regarding the differences between WSDL/SOAP and REST/JSON? (Choose four)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E. F.

ABDE.

WSDL (Web Services Description Language) and SOAP (Simple Object Access Protocol) are a set of standards for building web services, while REST (Representational State Transfer) and JSON (JavaScript Object Notation) are a style of building web services that use HTTP protocols.

A. WSDL is a tight contract; REST is a loose contract. This statement is correct. WSDL is a contract that defines the input and output formats of a web service, and it is considered a tight contract because it is specific and explicit. In contrast, REST is a loose contract because it does not define a specific format or schema for the data being exchanged. REST relies on the HTTP protocol and the data formats (such as JSON or XML) to describe the messages.

B. REST is more easily used in developing UIs than WSDL. REST is also gaining popularity in application development. This statement is correct. REST is more easily used in developing UIs because it relies on the HTTP protocol, which is already familiar to most developers. REST also has gained popularity because it is lightweight and simpler than WSDL and SOAP, which makes it easier to implement and maintain.

C. Modern API-first architectures prefer to use tried-and-true WSDL services over REST services because they are quicker and easier to implement. This statement is not correct. While WSDL services have been around for a longer time, modern API-first architectures tend to prefer REST services over WSDL because REST is more flexible and scalable, and it aligns better with the principles of modern web development.

D. WSDL is a request for a service; REST is a request for a resource. This statement is correct. WSDL defines a service interface that clients use to interact with a web service, while REST defines a set of resources (such as URLs) that clients can manipulate using HTTP verbs (such as GET, POST, PUT, DELETE).

E. Unlike WSDL, REST is typically invoked with HTTP verbs. This statement is correct. WSDL does not rely on the HTTP protocol, while REST uses HTTP verbs (such as GET, POST, PUT, DELETE) to manipulate resources.

F. WSDL is simpler; REST is richer. This statement is not entirely correct. While WSDL is simpler in terms of defining a strict contract, REST is richer in terms of flexibility and scalability. REST allows for a wider range of data formats and can be used with different protocols, while WSDL is limited to the SOAP protocol.