Service Virtualization

  • 1.  How to change JSON response to XML response

    Posted Feb 08, 2017 04:38 AM

    Hello,

     

    When recording JSON response, a Respond Data Protocols is automatically set by DevTest workstation.

    In the VSI file, the response is XML formatted.

     

    Using “learning mode” for virtual services, a new VSI file is generated and added responses are JSON formatted.

    Is-it possible to change JSON response to XML response ? And how ?

     

    DevTest 8.1.0. used.

     

    Thanks.



  • 2.  Re: How to change JSON response to XML response
    Best Answer

    Posted Feb 08, 2017 09:03 AM

    It sounds like the response data protocol handler not getting applied in learning mode and this might be a bug in Lisa 8  With Lisa 9 and above the JSON response data protocol handler is removed entirely from DevTest, So I would recommend not to use JSON response data protocol handler while recording and keep all the response as JSON responses.  

     

    Thanks,

    Vamsi Kurukuri | CA Tech



  • 3.  Re: How to change JSON response to XML response

    Posted Feb 09, 2017 03:01 AM

    Hello,

     

    Tested with DevTest 10.0.0, when recording with workstation, response is saved as JSON. As when using learning mode. So no conversion needed.

     

    The "format" option (as for xml) is now waited, as seen in REST JSON Formatted Response .

     

    Thanks for the answer.

     

    Benoit



  • 4.  Re: How to change JSON response to XML response

    Posted Feb 09, 2017 03:02 PM

    I would recommend you do not select any data protocol in response side. You will see response in proper JSON format.