Jump to content
We've recently updated our Privacy Statement, available here ×

How to handle work with Webservices


fenix4life

Recommended Posts

Hi,

I managed to find back a reponse from 2007 concerning the use of webservice within JasperReports.

Is the answer below still applicable? If this is the case. Wouldn't this be bit in contradiction with eg the use of the filevirtualizer? The reading of the large xml file would have a negative impact of the JVM. Are there possibilities to handle webservices which creates a large set of data  (maybe streaming webservices?)

 

Kind Regards

 

2. Working with Webservices is not as easy as getting XML from an URL. If it would be that easy, you could just pass the URL to the JRXmlDataSource constructor that has only one String parameter. But my guess is that you are talking about a real WS to which you connect posting parameters and then interpret the result and all. So it is your client application that needs to deal with all that protocol and once you have the XML, you pass it to the reporting engine like shown at point #1 above.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

JR doesn't have any dedicated data source implementation for web services.  And the XML data source is DOM-based, so it's not streamable.

This is not in contradiction with virtualizers, since the data source is outside the scope of the virtualizer.

So you'll have to implement your own data source if you need to process large XML data.

Regards,

Lucian

Link to comment
Share on other sites

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...