Mule 4 Exam QuestionsBrowse all questions from this exam

Mule 4 Exam - Question 81


Refer to the exhibits.

Exam Mule 4 Question 81

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?

Show Answer
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

7 comments
Sign in to comment
Aaish
Aaish
Sep 28, 2021

Correct answer is B

nilan84
nilan84
Nov 27, 2021

Correct answer is B

miguel_romero
miguel_romero
Jun 15, 2022

Correct answer is B

Maxroyo
MaxroyoOption: B
Feb 26, 2023

B is correct

[Removed]
[Removed]Option: B
Jul 22, 2024

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

[Removed]
[Removed]Option: B
Jul 25, 2024

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

Alandt
AlandtOption: B
Aug 5, 2024

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