Search code examples
javaweb-servicessoapwsdl

How to stub wsdl service endpoints?


I want to run some integration tests on a WSDL client application. Therefore I'd like to have the WSDL server (which is not in control of me) to response with the same xml response always.

How could I achieve this? Is there any tool out that offers a wsdl endpoint an can always return the same xml (which I then could take from my live logs)?


Solution

  • SOAPUI offers this functionality. I've used it before with ease.

    Alternatively if you do not want to go through the hassle of converting the WSDL request to a meaningful response, take a look at services like mocky which simply echo back a payload.