Skip to main content

How to send very large size data using Web Service and Axis2?

1 reply [Last post]
redtincan
Offline
Joined: 2009-07-15
Points: 0

Hi,

I am currently an intern involved in a project dealing with Axis2 and Netbeans.

I must create Java Web Service that accepts request from a client and return a very large collection
of data from my database.

i am able to send my data over to my client by manually converting my ResultSet into a Java String in "XML" format.

But i'm afraid that there might be a problem when i have a very large ResultSet and Java String cannot hold all my data (E.g. a Blob or millions of records)in the ResultSet.

Can i check is there a possible way to send my very large collection of data from database (millions of records) to my client app using Java Web Service and Apache Axis2? instead of sending over as a Java String type?

Really need help on this.. i'm stuck for 3 days already..

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
oleksiys
Offline
Joined: 2006-01-25
Points: 0

Here is URL, how streaming could be implemented using JAX-WS RI [1].
Something similar may be supported in Axis2, but it's better to ask directly on axis forum.

WBR.

[1] https://jax-ws.dev.java.net/guide/Large_Attachments.html