Exam MCD - Level 1 All QuestionsBrowse all questions from this exam
Question 81

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?

    Correct Answer: B

    The error indicates 'Unsupported media type', which means the server does not recognize the content type of the request body being sent. Since the API expects an XML payload as indicated in the RAML definition, the request header 'Content-Type' should be set to 'application/xml' to inform the server of the correct media type being sent. This will allow the server to correctly process the XML payload and return a successful response code.

Discussion
AaishOption: B

Correct answer is B

nilan84Option: B

Correct answer is B

AlandtOption: B

Easy, you are sending a request, so you must change the request header to XML type.

ExamDevOption: B

B. Set a request header with the name Content-Type to a value of application/xml

ExamDevOption: B

To send xml format we need to add application/xml content-type, so server to know what type is receiving.

MaxroyoOption: B

B is correct

miguel_romeroOption: B

Correct answer is B