serviceV Pro with responses saved in (DB2) database
Hi!
A perhaps simple question (then you please simply point me to a suitable article...). We're running a serviceV project to provide mock responses for loadtesting. The responses (soap XML) will be saved in a database for 30 services.
Right now I have a Database defined and resusing that in the DataSource defined in the service. The service has a value property, and a prepared property for ssn (key). The SQL Query uses the prepared property. All seems to work fine.
The dispatch style is script and my idea (perhaps wrongly) is that in the script I will extract the key from the request, set that as the prepared property, and then "execute" the Datasource and get the response.
In this a good strategy, or is there any other better way?
a) How do a set the prepared property ("ssn", in my DataSource GETPERSON) from groovy??
b) How do I execute and get the property "value" from my Datasource GETPERSON)