Service Virtualization

 View Only
  • 1.  Test asynchronous REST request-response

    Posted May 31, 2017 06:34 PM

    How do I create a step that can handle asynchronous rest calls? I have a rest service that initially sends a request acknowledgement response and later sends the actual response back in a callback URL. Is there a way I can configure something like a listener through a test step that will capture the response once it is available?

     

    Any suggestion will be helpful.

    Thanks in advance!



  • 2.  Re: Test asynchronous REST request-response

    Posted May 31, 2017 07:40 PM

    is it rest service call alone or rest call in MQ(Message Queue )? 



  • 3.  Re: Test asynchronous REST request-response
    Best Answer

    Posted May 31, 2017 08:00 PM

    For HTTP callbacks, this thread might help you see a pattern.  

    Read through the entire thread to get an idea as the OP wanted to send 'n' number of responses:

    https://communities.ca.com/message/241967712-re-requirement-to-create-a-vs-with-one-request-response-two-or-more-respons… 

     

    This one might also help for 1 request - 2 responses where the second response goes to a callback URL:

    Requirement to create a VS with one Sync resposne and one Async Response