Service Virtualization

 View Only
  • 1.  Receive the request URL via lisa_vse_request

    Posted Aug 06, 2020 01:39 PM
    Hello everyone.
    Is there a way to receive the request URL via lisa_vse_request?
    Thank you all.

    ------------------------------
    Matheus Souza
    Capgemini-BR
    ------------------------------


  • 2.  RE: Receive the request URL via lisa_vse_request
    Best Answer

    Posted Aug 07, 2020 01:49 AM
    Hi Matheus,

    You can see the attributes of URL in lisa.vse.request.

    Assuming url is something like :  http://host:port/testing/vaibhav/v1

    then the values in request will be as below:

    attributes=HTTP-Segment-Attr-0=testing&HTTP-Segment-Attr-1=vaibhav&HTTP-Segment-Attr-2=v1

    Thanks

    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------



  • 3.  RE: Receive the request URL via lisa_vse_request

    Posted Aug 07, 2020 08:41 AM
    Hello Vaibhav, thanks for the reply!
    I'm having trouble with syntax, is there any documentation that shows how to call the method?
    I'm looking for this solution because I want to customize the response of the virtual service according to a value contained in the URL. Is there a better way to do this?


  • 4.  RE: Receive the request URL via lisa_vse_request

    Posted Aug 07, 2020 08:58 AM
    Is this for a REST based service, if so you can use REST data protocol for the same.

    Thanks

    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------



  • 5.  RE: Receive the request URL via lisa_vse_request

    Posted Aug 07, 2020 02:36 PM
    Thank you! This solved my problem.