Service Virtualization

  • 1.  Post request - arguments not recognized

    Posted Nov 27, 2017 05:08 AM

    Hello,

     

    I'm trying to virtualize, from rrpairs, a service with DevTest 10.1.

     

    The request is : 

    POST /d451/v1/livres HTTP/1.1

    liste=1&perListe=2&typeTri=ascendant&critereTri=nom

     

    In recorder, I've specified DPH "REST Data Protocol" and "Request Data Manager".

    On "Request Data Manager" screen, "liste, perliste, typeTri and critereTri are not recognized as parameters.

     

    With DevTest 8.1, it was working. What did I miss ? 

     

    Benoit



  • 2.  Re: Post request - arguments not recognized
    Best Answer

    Posted Nov 27, 2017 10:13 AM

    I believe the R/R pair may not be correct.  Try using the following format with the query string included before the HTTP/1.1 parameter:

     

    POST /d451/v1/livres?liste=1&perListe=2&typeTri=ascendant&critereTri=nom HTTP/1.1
    Content-Type: application/json
    Connection: keep-alive

    <leave a blank line here>

    You should be able to use the REST DPH to extract query string into arguments:



  • 3.  Re: Post request - arguments not recognized

    Posted Nov 27, 2017 11:06 AM

    Thanks, it works.