From: Ben Johnson Date: 2007-02-28T07:08:32+09:00 Subject: Reading web service resposes in chunks? I am making a web service call and getting back very large responses (sometimes 5gb). When I get this response it eats all of my RAM. I need to read the response in chunks so I can store it in a file and I have no idea how to do this. Any help is greatly appreciated. Here is my code: require 'soap/wsdlDriver' soap = SOAP::WSDLDriverFactory.new("some url").create_rpc_driver soap.wiredump_file_base = "soapfile" response = soap.GetWhatever(:whatever => "whatever) Ironically, when reading the response it doesn't dump it into the file until it gets the entire response into memory, this is what's killing my server. Is there a more efficient way of doing this? Thanks for your help and time. -- Posted via http://www.ruby-forum.com/.