Forum Discussion

ccdssv1's avatar
ccdssv1
Contributor
13 years ago

Rest call - download large files

Hi all,

I'm a SoapUI user for 4 years now and I really like this tool! Unfortunately from time to time we all encounter difficulty in our work and I will like to address here in order to help me with my issue.
The scope of the current SoapUI project is to perform an http call, which will return a json response with multiple items, each item contain an url link that point to a file, I need to take each url perform that an new http call with that url and save that file.
The problem that I encounter is that the files have various sizes from 100k to 4GB and I don't know how to make the soapUi to write the response directly on disk instead of putting it in the java heap memory fist.

I tried a to use the dump file option and set the max size property to 0 as is was suggested in this old topic (viewtopic.php?f=2&t=3249&p=11588&hilit=stream#p11588) but is not working, the dump file is created only after the entire response is received, so the response is going to the heap memory. Also "0" value for the max size property don't act like write noting as Ole suggests, is act like write everything.

Another issue that I noticed with dump file option is that, when the request is fallow an redirect no dump will created of the final response;

I don't know if the mentioned behaviors are the expected one or are some bugs in soapUI (note that I tested this and is reproducible in the fallowing builds 4.5.1.1 - Build [internal], Build Date 2013/01/08 11:22 and 4.5.1 - Build [internal], Build Date 2012/06/27 13:56) but if anyone have an solution for this please let me know.

Thank you,
Ovidiu
  • Can someone from SmartBear Support confirm the issues (1. dump file set with max size=0 still go to heap memory 2. dump file don't save the response of a redirect call) and a resolution if there is any for them please?

    Thanks!
    Ovidiu
  • Sorry for Bump this thread but I need to know if there is an solution for my issues. I know that I'm not a pro user to ask for this in the pro section where the Support need to answerer to the customer issues, but I think we should get some attention to, or should I aks a pro user to post the same issue there to get the an answer ?

    Thanks,
    Ovidiu