we prepopulate some input fields via a rest service. Our Orbeon version is 2016.1.
This all works just fine when the media type is 'application/json'.
The problem is that we have to incorporate some service where the media type is custom.
I worked around this problem by developing a proxy service that alters the header and changes the media type to 'application/json'.
I know a lot is possible when you jump into the generated xforms source code. But are there any plans to allow the possibility to specify a custom media type in the form builder? In the end, it is all json. :-)
In 2016.1 we added the support for all the media types of the form `application/*+json`, like `application/csvm+json`. But I imagine that your custom media type is different, since you're using 2016.1, correct? Would it make sense for you to change it to something of the form `application/*+json`, by any chance? (If not, there is no "XForms magic" ;) right now that allows you tell an XForms submission that the result must be interpreted as JSON, irrelevant of the media type.