How to pass xmldata to jasperserver using restful PUT or POST method?

How to pass xmldata to jasperserver using restful PUT or POST method?

I'm newbie to this jasper server. And I have some question here.

- Is it possible to post xmlData Parameter for jasperserver to build report from those specify data without generating xml file into jasper's repository.

Like I POST these to http://aloha.server:8080/jasperserver/rest_v2/reports/reports/samplereport

<sample>
    <entry>
        <id>01</id>
        <name>mickymouse</name>
    </entry>
    <entry>
        <id>02</id>
        <name>groofy</name>
    </entry>
    <entry>
        <id>02</id>
        <name>dduck</name>
    </entry>
</sample>

And jasper would response me with report which show records same as above.

Thanks in advance :D

sas_jr's picture
157
Joined: Mar 9 2014 - 9:22pm
Last seen: 8 years 3 months ago

2 Answers:

If I understand this correctly the XML you want to "POST" is the one you want to use as a datasource. So what you are looking for is not to POST and XML to Jasperserver but how can a report use a remote XML datasource, if that is the case check this sample http://community.jaspersoft.com/wiki/remote-xml-datasource

 

marianol's picture
13880
Joined: Sep 13 2011 - 8:04am
Last seen: 4 years 1 month ago

Updated the link... Now is working

marianol - 8 years 8 months ago

Thank you.

sas_jr's picture
157
Joined: Mar 9 2014 - 9:22pm
Last seen: 8 years 3 months ago
Feedback