VSE recorder using Kafka Transport protocol not recognizing Json DPH
search cancel

VSE recorder using Kafka Transport protocol not recognizing Json DPH

book

Article ID: 398249

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

When trying to record a VS in Workstation using RR pairs and  Apache Kafka Transport Protocol selected,  the parser does not select JSON DPH.  

The payload is JSON. 

 Workstation logs show the following error message:

ERROR com.itko.lisa.asset.spec.SpecPayload - Error getting value for field Unknown Response Operation: Value for Unknown Response Operation was null
com.itko.lisa.test.LisaException: Value for Unknown Response Operation was null
    at com.itko.lisa.asset.spec.SpecPayload.getValueInstance(SpecPayload.java:393) ~[lisa-core-10.8.1.jar:?]
    at com.itko.lisa.asset.spec.SpecPayload.getValueInstance(SpecPayload.java:378) ~[lisa-core-10.8.1.jar:?]

 

Environment

All supported DevTest environments

Cause

The request file had JSON header with Operation name and this is not needed for Kafka payload.

POST /KAFKAUPDATE HTTP/1.1
Content-Type: application/json

Resolution

Kafka request file only needs the JSON payload and does not need to include any HTTP URI's  ( POST , GET, PUT .. etc) 

see example: 

 

"addresses": {
       "streetName": "Street 11",
       "buildingNumber": "1101",
       "postalCode": "28262",
       "city": "Charlotte",
       "country": "US",
       "stateProvince": "North Carolina"
     }