How to simulate soap web services in Java
There are web applications that use soap web services
But I want a copy of it I want to perform unit tests on my application with some hard - coded responses In fact, in my project, there is an independent team to develop client - side web services and server - side web services I'm on the client So sometimes I can't execute my tests because the server-side development is incomplete
I want to develop an application that I can use to test my application, even if the web server is not ready Is there a simple way to set up some kind of fake Web service? Could this be a possible option?
Solution
You mentioned exactly what you want's soap UI It starts a small web server on the specified port and processes requests that match the given WSDL
You can use static, hard - coded responses and groovy to make simulated web services more dynamic It gets better: the soap UI can wrap the entire simulation in a single self - contained war, and you can deploy it on any servlet container