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

"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 "inputFile1=@01_currencies-req.txt;type=text/plain" -F "inputFile2=@01_currencies-rsp.txt;type=text/plain"

 

Environment

Release : 10.7 or newer

Component : DevTest API

Cause

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

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.