Forum Discussion

PriyankaP's avatar
PriyankaP
Contributor
6 years ago

How to send http POST Request from ServiceV PRO

Hi,

Have created response in servicev pro.once I fire the request request from client, the http post request for another service should come after a response. Please provide a solution (script) ASAP.

5 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    Can you describe your desired scenarion with more details step by step to make it more clear?

     

    > http post request for another service should come

    By definition, request is issued by the client to the server. Thus, request cannot be returned. Also note, that http is based on the 'request-response' scheme and they are in the one-to-one relation. I.e. only one response can and must be returned for the given request.

     

    • PriyankaP's avatar
      PriyankaP
      Contributor

      Hi Alex,

       

      Thanks for your reply,

      I need to send a http post request along with the url from SERVICEV PRO. I need groovy script for this requirement.

      • AlexKaras's avatar
        AlexKaras
        Champion Level 3

        HI,

         

        I am still not sure what you are looking for.

        ServiceV is a piece of software that makes it possible to intelligently emulate a web service (web API) and acts as a web server. Which means that it waits for the request from the client, dispatches obtained request according to the designed dispathing scheme and replies with the specified response. I.e. like the regular web server, ServiceV does not send requests but responds to the obtained ones.

        You may use any software that is capable to send appropriate requests as a client that sends requests to the service emulated using ServiceV. For example: SoapUI, regular web browser, Swagger Inspector (https://inspector.swagger.io/builder), etc.