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

0

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
11
Joined: Mar 9 2014 - 9:22pm
Last seen: 4 years 10 months ago

2 Answers:

1

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
4427
Joined: Sep 13 2011 - 8:04am
Last seen: 9 months 3 weeks ago

Updated the link... Now is working

marianol - 5 years 4 months ago
0

Thank you.

sas_jr's picture
11
Joined: Mar 9 2014 - 9:22pm
Last seen: 4 years 10 months ago
Feedback