mendix / RestServices

REST service module for Mendix. Supports consuming and publishing REST based services and real-time data synchronization. Supports JSON, form-encoded, multipart and binary data transport.
Apache License 2.0
31 stars 46 forks source link

Proper XML support #80

Open Aelion-MM opened 8 years ago

Aelion-MM commented 8 years ago

I would like to see proper XML support for:

Right now we can't parse this data because the REST services module expects JSON on all occasions. Simply using the SOAP functionality isn't an option since the web-service is a REST service and doesn't work with all the SOAP overhead in the XML messages.

For the short term solution, I implemented the org.JSON XML to JSON conversion option but this doesn't work really nice in all of the situations.

mweststrate commented 8 years ago

Hi @Aelion-MM

The rest module only offers support for json indeed. Not however that you can make custom requests from java and invoke existing XML mapping documents from Java as well, so in that way you should be able to combine the two concepts.

Nonetheless, I recommend filing a ticket at support.mendix.com for full XML based REST support.

ako commented 8 years ago

Hi,

Support for XML will be part of native REST. Please visit mendix world session on mappings to learn more about native rest, json and xml mappings.

Regards, Andrej

Aelion-MM commented 8 years ago

Hi @mweststrate and @ako,

Thank you for the responses, I would love to see the native REST support, and I'll make sure to join the sessions on topics related to it.

In the mean time my clients need a solution, so I implemented the org.json XML to JSON and JSON to XML converter options in the REST module. Is it possible to push these changes with some documentation so they could become part of the current module?

Regards, Mitchel