QUESTION, ANSWER, EXPLANATION
This question has been asked by one of our members and a similar question could most likely be on the exam. All answers have been verified by MuleSoft certified FoMS experts.
Question
Refer to the exhibits! The web client sends a POST request to the ACME Order API with an XML payload. An error is returned. What should be changed in the request so that a success response code is returned to the web client?
Answer
A) Set a request header with the name Content-Type to a value of applicatron/octet-stream
B) Set a request header with the name Content-Type to a value of application/xml
C) Set a response header with the name Content-Type to a value of application/xml
D) Set a response header with the name Content-Type to a value of application/octet-stream
The correct answer to this question is B.
Explanation
It is noticeable in the RAML specification that, to make a call to the endpoint /order, it is necessary that the body's content type is set to application/xml. Therefore, the wrong data in the web client have to be modified, which leads us to answer B.
RELATED ARTICLES
OTHER ARTICLES
OLDER ARTICLES
LATEST FORUM UPDATES
APIAmeeth, Thursday, 1.9.2022 / 21:23
Jay-Catalyst, Tuesday, 2.11.2021 / 10:48
Matteo, Friday, 3.7.2020 / 16:30
Matteo, Friday, 3.7.2020 / 16:29
Matteo, Friday, 3.7.2020 / 16:28
Caio S Cavalcante, Friday, 22.5.2020 / 16:59
Edo Schatz, Thursday, 21.5.2020 / 13:50
Edo Schatz, Thursday, 21.5.2020 / 11:29
Edo Schatz, Wednesday, 20.5.2020 / 18:18
Edo Schatz, Monday, 18.5.2020 / 16:33
NEW ARTICLES
POPULAR ARTICLES