In v7.9.0 REST API doc for JRXML is quite confusing and misleading.
it mentions the jrxml should be POST by following format:
<reportUnit>
{commonAttributes}
......
<jrxml>
<jrxmlFile>
<label>Sample</label>
<type>jrxml</type>
<content>Base64JRXML</content>
</jrxmlFile>
</jrxml>
</reportUnit>
But seems it does not work. After remote debug I found that I need to use following format (No <jrxml> tag):
<reportUnit>
{commonAttributes}
......
<jrxmlFile>
<label>Sample</label>
<type>jrxml</type>
<content>Base64JRXML</content>
</jrxmlFile>
</reportUnit>
Seems a few people meet similar issue. It is good if the official API doc would be updated.
Components | RestAPI |