Forum Discussion

MartinF's avatar
13 years ago

Groovy code: get source IP/host of the WsdlMockRequest

Hi!

Still quite a newbie with SoapUI... I'm trying to make a dynamic MockService response endpoint. Actually, the response from the MockService should be sent to the same location the WsdlMockRequest came from.
While testing, I'm sending the request to the MockService from SoapUI as well.

However I don't really know where to get the source IP/host information from the WsdlMockRequest object. I thought I'd find it under mockRequest.getContext(), but the result containts no elements at all (size() = 0).

Does anyone, please, have an idea, how to achieve this?


Thanks a lot
Martin
No RepliesBe the first to reply