Service Virtualization

Expand all | Collapse all

What is the end point we need to use when we virtualize a service using r/r pairs?

  • 1.  What is the end point we need to use when we virtualize a service using r/r pairs?

    Posted Sep 29, 2016 02:45 AM

    I am using the url I am getting after creation of the service. like http://DEVTEST:2345 but getting an error in the response in soap UI as "404 not fount"  " The  DevTest VSE service could not match your request to a recorded request"

     

    I am using the same request which I used in R/R pair used for creating. Even though I am getting this error.



  • 2.  Re: What is the end point we need to use when we virtualize a service using r/r pairs?

    Posted Sep 29, 2016 03:14 AM

    Hi Nandini,

     

    If you have deployed the Virtual Service in Server then the endpoint can be given as -

     

    http://IPaddress(Server):port/basepath

     

    For example -

     

    http://100.89.90.10:8001/abc

    Here,

     

    IP address of server needs to be given in our above example is "100.89.90.10"

     

    Port number which is "8001"

     

    And base path if you have provided , in our case "abc"

     

    I think you have not provided correct endpoint while hitting the service.

     

    And also, go to VSI and make the meta response as operation instead of signature match and make the normal transaction as operation match instead of Exact match.

     

    Let me know if any issues.

     

    Thanks,

    Abhishek



  • 3.  Re: What is the end point we need to use when we virtualize a service using r/r pairs?

    Posted Oct 04, 2016 02:18 AM

    Thank you for your response but I am using Request and response pairs for Virtualization where there is no need for entering base URL.  After creating Virtual service using Request and Response pairs I am getting a URL like http://DEVTEST:2345which is not working in my case



  • 4.  Re: What is the end point we need to use when we virtualize a service using r/r pairs?

    Posted Oct 04, 2016 01:17 PM

    The endpoint can be set after the virtual service model (.vsm) has been generated (from the request response pairs). The first step (typically HTTP/S Listen step) can be edited to indicate the port and base path for the virtual endpoint.



  • 5.  Re: What is the end point we need to use when we virtualize a service using r/r pairs?

    Posted Oct 05, 2016 01:05 AM

    Hi William, 

    I am using DevTest Portal where for creating the virtual service there no need to give port and base path. By just giving Name,server,protocol and R/R pairs I am able to create the virtual service, then I am getting an URL like  http://DEVTEST:2345.



  • 6.  Re: What is the end point we need to use when we virtualize a service using r/r pairs?

    Posted Oct 05, 2016 08:42 AM

    Hi Nandini,

     

    Please give the Ip address of the machine where VSE is running,

     

    for example -

     

    Instead of http://DEVTEST:2345

     

    give it as http://10.12.311.13:2345

     

    here "10.12.311.13"(an example) is nothing but the IP address of the server where your virtual service is deployed and try to trigger to the endpoint.

     

    Let me know how it goes.

     

    Thanks,

    Abhishek



  • 7.  Re: What is the end point we need to use when we virtualize a service using r/r pairs?

    Posted Oct 06, 2016 01:54 AM

    Hi Abhi,

     

    I tried the same and getting the response as below:

    <html>

    <head><title>404 Not Fount </title></head>

    <body>

    <h1>Not Fount</h1>

    <p>The requested URL was not found on this server. </p>

    <hr/>

    <p><i>The DevTest VSE service could not match your request to a recorded request.   Consider expanding your service image. </i></p>

    <br/><font size="-2"> Produced by a DevTest virtualized web server.</font>

    </body>

    </html>

     

    I am able get the responses when I tried with recording mode, But this is the issue when I used request and response method.. I tried below ways

     

    gave the endpoint something like as http://10.12.311.13:2345 (my server ip used in my case)

    http://10.12.311.13:4512/path of original service except base path

     

    http://10.12.311.13:4512/OperationName in the request

     

     

    Thanks,

    Nandini M



  • 8.  Re: What is the end point we need to use when we virtualize a service using r/r pairs?

    Posted Oct 06, 2016 05:36 AM

    Hi Nandini,

     

    Please change the Match style of your VSE from Signature/Exact to Operation Match of both META and as well as Normal Transactions and let us know how it goes.

     

    Thanks,

    Abhishek



  • 9.  Re: What is the end point we need to use when we virtualize a service using r/r pairs?

    Posted Oct 05, 2016 08:53 AM

    Hey Nandini,

     

    you can check and make sure of base path by opening vsm file . Please find attached screenshot.

     

     

     



  • 10.  Re: What is the end point we need to use when we virtualize a service using r/r pairs?

    Posted Oct 06, 2016 01:56 AM

    HI Ankush,

    I am using DevTest Portal not using work station and while doing with r/r pairs no need of giving base path



  • 11.  Re: What is the end point we need to use when we virtualize a service using r/r pairs?

    Posted Oct 05, 2016 09:29 AM

    Hi Nandini_Munnangi,

     

    Steps to to do:

    1) Create Virtual Service using RR pair files.

    2) Save the Virtual Service.

    3)  The virtual service directly deployed into VSE dashboard and it's status is Running

    4) Verify that the your virtual service is listed with randomly assigned port#

    5) Now,Just go and update your endpoint URL with IP address and port as mentioned by IamAbhi

     

    For ex,

    your endpoint URL like,

    http://caservices.com/DynamicsGPWebServices

    http://IP:port/DynamicsGPWebServices

     

    6) Now run the scenario, definitely you will get response from virtual service.

     

    Friends correct me if i am wrong.



  • 12.  Re: What is the end point we need to use when we virtualize a service using r/r pairs?

    Posted Oct 06, 2016 01:57 AM

    Hi Alagupandy,

    I Tried the same As replied to Abhi,

     

    I tried the same and getting the response as below:

    <html>

    <head><title>404 Not Fount </title></head>

    <body>

    <h1>Not Fount</h1>

    <p>The requested URL was not found on this server. </p>

    <hr/>

    <p><i>The DevTest VSE service could not match your request to a recorded request.   Consider expanding your service image. </i></p>

    <br/><font size="-2"> Produced by a DevTest virtualized web server.</font>

    </body>

    </html>

     

    I am able get the responses when I tried with recording mode, But this is the issue when I used request and response method.. I tried below ways

     

    gave the endpoint something like as http://10.12.311.13:2345 (my server ip used in my case)

    http://10.12.311.13:4512/path of original service except base path

     

    http://10.12.311.13:4512/OperationName in the request

     

     

    Thanks,

    Nandini M



  • 13.  Re: What is the end point we need to use when we virtualize a service using r/r pairs?
    Best Answer

    Posted Oct 06, 2016 12:20 PM

    You indicate that the message is as follows:

    <html><head><title>404 Not Fount </title></head><body>

    <h1>Not Fount</h1><p>The requested URL was not found on this server. </p><hr/>

    <p><i>The DevTest VSE service could not match your request to a recorded request.   Consider expanding your service image. ....

    This response indicates that your service accepted the request and has passed the incoming request to the VSI.  If the issue were related to the port or base path, it is more likely the response would be a connection refused response on port 2345.

     

    The message above indicates that the VSI does not contain any transactions that it can use to match against the incoming request. I would ensure that the proper DPHs have been used to parse the R/R pair data into the correct Operation and Arguments.

     

    One quick way to verify this is to access Portal -> Monitor -> VSE and look at the transaction count on your VS.  If the txn count is > 0, then RIGHT click and open inspection view to examine the incoming request operation and arguments.