I have got a request message with me.When I invoke it for the first time,I should get response-1 back and when I invoke the same request second time,I should get response-2.How can it be achieved?
I believe you need to enable the "allow duplicate specific transactions" during recording and playback.
Transactions Tab for Stateless Transactions - DevTest Solutions - 10.0 - CA Technologies Documentation
Some other resources that might help you on this:
How to respond with Response 2 of 2 in VSE
Two responses for one request
You can also do this by creating a stateful conversation in your service image. Pick a field in the request, and use the Request Data Manager to copy that field to "lisa.session.key" I've used that technique in the past in "retry" situations where the first call fails and the second call succeeds.
Retrieving data ...