Jump to content
Changes to the Jaspersoft community edition download ×

Passing datasource as a parameter through SOAP interface?


joshabts

Recommended Posts

Hi,

I am looking for a way to be able to pass which datasource I want to use as a parameter when I call runReport from the SOAP interface.  I have two databases, one is for my development and one is for production and I have a config file where I would specify what datasource to use (ideally, the URI of it).

I have tried doing it as a REPORT_DATA_SOURCE parameter but then I get an error saying I can't cast a String to a JRDataSource.

Is there a straightforward way of doing this that I am just missing or does anyone have any suggestions on how to handle this?  I did see a note about using a remote xml file as a datasource, which I could possibly do, but I was just hoping to keep everything internal to JasperReports Server and use the repository it provides.

Thanks for any help in advance,

Josh

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...