FYI not sure when or where to mention it, but when it comes to result formatting there is another format called "expanded" that mostly just adds the schemas to the result.

Proxy: http://localhost:8002/WsEcl/submit/query/roxie/icecream_query
XML: http://localhost:8002/WsEcl/submit/query/roxie/icecream_query/xml
Expanded: http://localhost:8002/WsEcl/submit/query/roxie/icecream_query/expanded
JSON: Proxy: http://localhost:8002/WsEcl/submit/query/roxie/icecream_query/json