Closed guneraykut closed 4 years ago
I am afraid we support XML in responses only, LoopBack/strong-remoting is not able to parse XML bodies.
I think your solution of adding express-xml-bodyparser
should work, unfortunately we don't have bandwidth to investigate this ourselves. If you happen to find the source of the problem and can open a pull request to fix it, then I am happy to help you to get the changes landed.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS
file at the top-level of this repository.
I want to accept and save XML data through the model REST api. When I select "Parameter content type" and "Response Content Type" "application/xml" or "text/xml", I got following validation error.
And my post data is
It works when selecting Parameter content type" and "Response Content Type" as JSON.
I set remoting.rest.xml to true under config.json file. Responses are okay with XML but post and put payload does not excepted due to validation error. I also added
to middleware.json file but no luck.
Thanks