"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 to find the option "Allow Duplicate specific transaction" when creating virtual service using Invoke API. For some reason , even though the API call has  "duptxns : true"  its still not creating 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

All supported DevTest releases.

Cause

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

Resolution

Removing the header “Content-Encoding:gzip” from response.txt and then try to recreate from RR pairs, duplicate records are created.