AnsweredAssumed Answered

Use For-Loop in Response ???

Question asked by jeff.wallace on Mar 24, 2016
Latest reply on Mar 25, 2016 by Rick.Brown

Is it possible to use some kind of For-Loop logic to dynamically build Response data?

 

Requirement::

I have a Response where the payload needs to include 45 unique, Base64 encoded documents. 

 

Problem::

I built the response by copy/pasting a Base64 encoded doc, 45 times.

This ends up making my .vsi a little over 1Gb in size.

When I try to open the .vsi in the Workstation, the application runs out of memory.

Additionally, if I try to deploy the virtual service, the Workstation runs out of memory.

 

So, is there a more efficient way for me to build this type of Response by maybe using some kind of For-Loop logic, or possibly something else that I may not be aware of?

 

Thanks,

Jeff

Outcomes