The requirement for a new Virtual Service using the following format:
Transport Protocol:HTTP/S
Request Body : gzip format
Response Body : gzip format
And there is an existing old Virtual Service (vsm and vsi files) with this format:
Transport Protocol:HTTP/S
Request Body : text
Response Body : text
which works fine.
Is it possible to create a new Virtual Service by using the old Virtual Service files and without programming and scripting?
Release: Service Virtualization all versions
Component: VSE, Workstation
Yes, it is possible.
Please do the following steps:
| Key | Value |
| Content-Encoding | gzip |
| Accept-Encoding | gzip |
| Key | Value |
| WasGzip | true |
| Content-Encoding | gzip |
In this newly created virtual service, if you send a request with gzip format body, then you will receive a response with gzip format body, and if you send a request with text body then you will receive a response with gzip format body.