Application can't get list of orders with JSON REST Admin API

I’m using SAP BODS with REST API connection to Shopify’s store. It works through WADL configuration which requires XML+XSD schema declaration.

As Shopify no more supports XML requests directly, I wrote JSON schema converted it to XML and used it in WADL.

I have a problem, that JSON returned data without name of root element, while in XML it was.

For example following wadl with structure like it was with XML requests returns no data, probably because JSON returns Orders element without Order sub-element:


If I used Orders element as root it doesn’t allow to define maxOccurs parameter and returns 1 order only:


As I understand it requires both root and sub-element declaration in any way, but application doesn’t allow such kind of declaration and returns validation error:


Please assist how to define root element correctly?

Found solution by myself. Correct declaration is: