V3 APIs - Virtual Service
search cancel

V3 APIs - Virtual Service

book

Article ID: 215282

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

We are facing lisa api issues while adding response header named "Date". 


We are using create virtual service v3 api to create stubs. We followed below steps to create it.
1. Created a stub with RR pair1. We added a response header like below inside the response file.
2.  Now when i test the created stub, i'm getting the current Date always, not the stubbed date. It is responded with the current date.

Environment

All supported DevTest releases.

Cause

N/A

Resolution

  By default, date values in meta will be converted to {{=httpNow()}} while creating virtual service using RRPair or through recording. This is the same even with API call.

    To replace this value with hardcoded value, import the mar file in workstation and edit the meta data information for this transaction.