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?
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?
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.
Correct answer is B
Correct answer is B
Easy, you are sending a request, so you must change the request header to XML type.
B. Set a request header with the name Content-Type to a value of application/xml
To send xml format we need to add application/xml content-type, so server to know what type is receiving.
B is correct
Correct answer is B