I have two independent virtual servives (two VSMs and VSIs).
I need to capture the value of an incoming argument from one virtual service and be able to use this as a value for one of the tags in the response in another virtual service.
How can I achieve this?
Deleted User
Hi,
To be more elaborate,
VSM1:
Filter out the Argument value and set property (Ex: SourceCityProp)
Put this below script in Execute Script:
import com.itko.lisa.vse.SharedModelMap;
import com.itko.lisa.VSE;
SharedModelMap.clear("Namespace");
SharedModelMap.put("Namespace","SourceCityProp", SourceCityProp);
*******************************************************************************************
VSM2:
Put this below script in Execute Script:
import com.itko.lisa.vse.SharedModelMap;
import com.itko.lisa.VSE;
testExec.setStateValue("destination", SharedModelMap.get("Namespace","SourceCityProp"));
Hope it will work!!!