Service Virtualization

Expand all | Collapse all

VS Image from rrpairs, how to change default base path ?

  • 1.  VS Image from rrpairs, how to change default base path ?

    Posted 03-30-2017 08:58 AM

    Hello everybody

     

    I'm trying to create a VS image from rrpairs with the following files.

    req.xml : 

    PUT /d431-bibliotheque/v1/livre/2753800189 HTTP/1.1
    Content-Type: application/x-www-form-urlencoded
    Content-Lenght: 9

     

    version=f

     

    rsp.xml : 

    HTTP/1.1 200 OK

    {
    "isbn": "2753800189",
    "titre": "La Jangada",
    "auteur": "Jules Verne",
    "version": "f",
    }

     

    After creating VS image, in vsm file, "base path" (step "virtual https listener") is set to default "/". Is there a way to change it while creating a new VS Image ? 

     

    Regards,

     

    Benoit



  • 2.  Re: VS Image from rrpairs, how to change default base path ?

    Posted 07-25-2018 09:12 AM

    Hi,

     

    As per the request you mentioned above:

     

    PUT /d431-bibliotheque/v1/livre/2753800189 HTTP/1.1

     

    When you create a virtual service using RR pairs, select transport protocol and while configuring provide target host and select Gateway. In this case whatever you will provide in the request will appear in "base path" of step "virtual https listener".

     

    For Ex. - If you provide PUT /d431-bibliotheque/v1/livre/2753800189 HTTP/1.1 in request

    The Basepath will be looks like - /d431-bibliotheque/v1/livre/2753800189

     

    --

    Kailash