Store a zipped text file on the server that runs the Virtual Service.
search cancel

Store a zipped text file on the server that runs the Virtual Service.

book

Article ID: 381730

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

Requirement to save a JSON string in a zipped file on the VSE server that runs the Virtual Service. 

Environment

Service Virtualization all supported releases

Resolution

The "Save Property Value to File" filter and the "Execute External Command" step can be used.

There are different commands that can be used to zip a file.
On Windows, powershell can be used for example:
powershell -Command Compress-Archive -Path myjson.txt -DestinationPath myjson.zip -Force