I have to mock quite complicated java web service and I'm searching for the right solution. One way to do it would be to use Soap UI, but I need something that would be able to modify server state ie. one request would affect future requests.
In this particular case it could be done quickly by saving serialized objects to disk and sometimes spawning asynchronouse responses to the originating client webservice.
Those two requirements are preventing me from using SoapUI - the groovy logic would become quite complicated and probably hard to mantain.
My questions:
1) Are there any other SoapUI advantages in this context (eg. easy migration to new version of wsdl) over custom java mock implementation?
2) What would be most appropriate way to generate the webservice from wsdl and still be able too hook up with some custom functionality, ie. by attaching some hooks that would be editable in seperate files (to facilitate further ws code regeneration from updated wsdl)?