cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple responses to single request

Occasional Contributor

Multiple responses to single request

Hi,

I’m wondering if someone can help with the below query.

I’m using SOAP UI to send a request to an application. The application first responds with a successful acknowledgement back to SOAP UI (this bit works fine). The application then responds a second time with the response body.

Is it possible to intercept the second response in SOAP UI?

I have tried creating a Mock Response to intercept the second response, however it doesn’t seem to ever ‘receive’ the second response (I have set the mock response to listen on the port and path to which the second message is delivered).

Could someone please advise if what I am trying to do is possible? I’m not sure if I am confusing what the Mock Response is able to do.

Many thanks in advance.

Peter

1 REPLY 1
Super Contributor

Re: Multiple responses to single request

You can go through this link:-

 

https://www.soapui.org/scripting-properties/tips-tricks.html#6-Changing-response-before-it-gets-vali...

 

RequestFilter.afterRequest should solve your problem.

New Here?
Join us and watch the welcome video:
Top Kudoed Authors