-
Bug
-
Resolution: Cannot Reproduce
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
3351
Using toaster RPC as an example, POST XML to the REST endpoint fails while the equivalent POST using JSON succeeds.
XML input:
Endpoint: http://localhost:8181/restconf/operations/toaster:make-toast
Content-Type: application/xml
Body:
<input>
<toasterDoneness>1</toasterDoneness>
<toasterToastType>wheat-bread</toasterToastType>
<foo>fooValue</foo>
</input>
Status: 400 Bad Request
{"errors":{"error":[
]}}
When I try using JSON:
Endpoint: http://localhost:8181/restconf/operations/toaster:make-toast
Content-Type: application/xml
Body:
{
"input" :
}
Status: 200 OK