When we use more flexible mode while creating virtual Service, VSM will include 2 extra steps Prepare Request and Prepare Response.
What is use of these steps?
'Prepare Request' and 'Prepare Response' are similar to Scriptable Data Protocol where we can modify our Request/Response based on the required format. Yes you are right if your request is of fixed format you need to write to convert it to xml and return the xml at the end of the code and set the 'Property Key' as 'lisa.vse.request'.
The more flexible virtual service model adds a "Prepare Request" and "Prepare Response" step to the model so that you can easily modify the request or response in XML.
Efficient takes the request as is and sends it through the model returning the expected response
Flexible takes the request, converts it to XML so that it can easily be modified and sends it through the model to return the expected response. Once you select Flexible, you will see additional options in the model steps that allow you to "convert to xml", "receive as xml" and "respond as xml".
Thanks for quick response. As you mentioned this will allow us to convert
to XML and respond to XML.If we take example of request coming in fixed
format and we neeed to convert it to XML for VSI. Do we need to write code
for conversion of fixed format to XML in Prepare steps?
I know we need to select copybook data protocols when we are having Cobol
Request. How can we utilize prepare request step for conversion.
On Thu, Aug 21, 2014 at 10:29 PM, Stefana_Muller <
Retrieving data ...