To replace the Web service, you need to have a Java class with exactly the same interface as the Web service; this will require development of a Java class based on the WSDL (Web Services Description ...
I've found various tools that can generate them using a command line tool. But I need a way to do it programatically as my classes are generated dynamically at runtime.