I have a virtual service created with DevTest 8.1, which contains JSON responses. These responses are stored in XML and a JSON DPH was used to convert them to JSON format.
Now, with DevTest 10.1, JSON DPH stores response in JSON format. And my virtual service running under DevTest 10.1 responds with XML messages... when I am waiting some JSON...
What is the simplest way to make my virtual service running with DevTest 10.1 and responding with JSON messages ?
I have about 20 requests/responses and I'm afraid to do the conversion manually (bad manipulation, or to forget something...)
You can try any of the below:
. If you have the RR pairs, can you create them again in 10.1, so the responses will be in JSON.
. Manually edit the VSI responses.
. Use a Scriptable DPH on the Response side and write code to convert the response into JSON. Refer Joel's response DevTest 10.1 - JSON DPH not available on response side ? This will provide a sample code.
As a last resort, if you no longer have the RR pairs, you could use the recorder to capture the responses from the original services if you have the requests to exercise it.