ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

"Allow Duplicate specific transaction" in Config file to create Service using Invoke API is not working

book

Article ID: 226978

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

Trying find the option "Allow Duplicate specific transaction" when creating virtual service using Invoke API. For some reason , even though my API call has  "duptxns : true"  its still not created duplicate Transactions. 

curl -X POST "http://localhost:1505/lisa-virtualize-invoke/api/v3/vses/VSE/services" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "config={"virtualService":{"version":"2","name":"API_Test_22","description":"Invoke API V2","status":""},"transportProtocol":{"typeId":"HTTP","basePath":"/","useGateway":true,"duptxns":true,"hostHeaderPassThrough":false},"dataProtocol":{"forRequest":true,"typeId":"RESTDPH"}}" -F "deploy=true" -F "[email protected]_currencies-req.txt;type=text/plain" -F "[email protected]_currencies-rsp.txt;type=text/plain"

 

Cause

The response.txt file had "Content-Encoding:gzip" in the headers

Environment

Release : 10.6

Component : DevTest API

Resolution

 
 
The issue was response file, has “Content-Encoding:gzip”. Remove this header from Response.txt and then try to re-create from RR pairs, duplicate records will be created.