Consume rest service response - JSON string response mapping?

1
I am working on a vehicle look up service and its response is in response body in json string format. I tried following the Mendix documentation on consuming web service I wasn't able to view anything in return value in front end. I can see in console (trace log levels) that value is showing up however nothing is refreshing or getting stored from return value. Here is the vehicle api doc I am working on: http://api.vehicleis.uk/docs/Vehicleis%20API%20Documentation%20Oct%202015.pdf Here is is my domain model View post on imgur.com<script async="" src="//s.imgur.com/min/embed.js" charset="utf-8"></script> Here is the get microflow I am using. <iframe width="100%" height="491px" frameborder="0" src="https://modelshare.mendix.com/models/902efd58-a196-4a0c-96a6-ae2683bb4590/vehicle-lookup?embed=true" allowfullscreen=""></iframe> I am aware there is a way to do string to xml mapping in java but would be great if I can get a example of the java file along with some pointers on how to implement that I saw a previous article relating to similar issue here. Also hoping Mendix has a simpler solution than editing java code. Thanks in advance! Savan
asked
1 answers
2

That JSON has way more relations than your domain model. Note that the name of your association must match the object or array name in the JSON. Please read the REST module documentation thoroughly to get the proper mapping.

https://github.com/mendix/RestServices

answered