ASSOCIATE-REACTIVE-DEVELOPER practice question 33 of 35

When consuming a REST API, we can consume a single REST method ...

Full set: 262 questions
Answer options
A: Provide the method's URL, fill the parameter values (if any), test it to get the JSON response, and copy the JSON response to the Body. Correct answer
B: Provide the WSDL (the endpoint URL or upload file), choose the binding (if there's more than one), and choose the method to consume.
Correct Answer:
A. Provide the method's URL, fill the parameter values (if any), test it to get the JSON response, and copy the JSON response to the Body.
Explanation

When consuming a single REST API method in Outsystems, the developer provides the specific method's URL and HTTP verb (e.g., GET, POST). To automatically generate the response data structure, Outsystems provides a testing feature. The developer enters sample values for any required parameters and executes the test. The resulting JSON response from the API endpoint is then used to infer and create the corresponding structure in Service Studio, streamlining the integration process. This matches the procedure described in the correct option.

Why Incorrect

B. This option describes the process for consuming a SOAP Web Service. SOAP relies on a WSDL (Web Services Description Language) file and bindings to define the service contract, which is distinct from the architecture of REST APIs.

References

1. Outsystems Official Documentation - "Consume REST APIs": Under the section "Consume one or several REST API methods", the steps for adding a single method are detailed. Step 4 is "In the Add new method to... screen, specify the HTTP Method and the Method URL." Steps 7 and 8 describe testing the method and using the JSON response: "Click Test. If the test is successful, copy the JSON from the Response Body field and paste it in the Response Body field of the Body tab. Or, click Copy to Response Body." This directly validates the process described in option A.

2. Outsystems Official Documentation - "Consume SOAP Web Services": This document outlines the procedure for SOAP consumption, stating in Step 3 of the "Consume a SOAP Web Service" section: "In the Consume SOAP Web Service screen, specify the location of the WSDL...". This confirms that WSDL is specific to SOAP integration, making option B incorrect for a REST API context.

3. Outsystems Training Material - "Integrating with a REST API": In the guided path "Becoming a Reactive Web Developer," the exercise on consuming REST APIs demonstrates this exact process. It instructs the user to add a single method, provide the URL, go to the "Test" tab, execute the request, and then use the "Copy to response body" button to automatically create the output structure from the returned JSON. This reinforces the steps in option A as the standard Outsystems practice.

Scroll to Top