Handling large amounts of XML data with Web Service

I've developed a web service for accessing some information from an ERP database and returning the data in XML format. At the moment the return type of the public method is a String and I'm using axis on tomcat. This is all working as expected but I would like to know if this kind of configuration would handle a very large xml return or should I set a hard limit on the size and force the client to request the data in multiple sets?

[444 byte] By [xxMothxxa] at [2007-11-27 5:03:09]
# 1
If you are storing all the data in a String and not into a stream then yes you could run out of memory, aka this won't scale well.So you should so something to avoid that happening. Chunking or limiting data in some way seems a good way to do something.
cotton.ma at 2007-7-12 10:21:12 > top of Java-index,Java Essentials,Java Programming...