Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Xml json request type in Virtualize

sidhu
sidhu Posts: 36

Hi i am new to Virtualise , how to handle request type as either xml or json using one message responder in Parasoft Virtualise . what should i set so that message responder can recognise request type as xml or json both kind of request types in single responder

Comments

  • williammccusker
    williammccusker Posts: 672 ✭✭✭

    Hi,
    Normally different responders are used for the different message types. It would help to understand your use case a bit more. Is the responder always the same? For example if the request is xml or json would the response always be json?

  • sidhu
    sidhu Posts: 36

    Hi the responder has to send json response if request type is json or xml response if request type is xml , was trying to find out if its possible to have both request type in one responder in parasost Virtualize

  • williammccusker
    williammccusker Posts: 672 ✭✭✭

    Hi,
    You should use two different responders. You have to configure the response you want, in the format you want per responder. There is no response type that can be serialized to either json or xml.