Forum Discussion

Knowledge's avatar
Knowledge
Contributor
8 years ago
Solved

Validation of an asynchronous request to mockservice

Hi,   I'm running the following configuration, and i would appreciate any help / ideas on how to do it correctly.   1. I'm sending a soap request from soapUI to my server. This request contains a...
  • rupert_anderson's avatar
    rupert_anderson
    8 years ago

    Hi, 

     

    Are you still working on this?

     

    It sounded like you have something like this:

     

    SoapUI TestStep -> Your service

    Your Service -> Mock (where you want to validate the payload)

     

    Is it that you want to validate the callback inside the mock? If so, rather than using a mock, had you considered a SOAP Mock Request TestStep? (these can use assertions)

     

    Regards,

    Rupert

  • rupert_anderson's avatar
    rupert_anderson
    8 years ago

    Ok, hopefully we can work through it.

     

    So, to configure it you need to supply a port and context to listen on. Then when the TestCase runs, the mock response test step will start to listen on localhost+port+path specified and wait until it receives the callback request. You set the path & port to match the call back url that is passed to your service in the original request. When a the mock response test step receives a request it will despatch a response (as specified in the mock response test steps editor on the right) - i dont think there's a way to prevent this response.

     

    Does that make more sense?

     

    Regards,

    Rup