I have generated a Java web service provider by importing a WSDL file. The generated code includes several packages/classes derived from the WSDL, in addition to the Service and Message packages. I would like to move the derived classes into a separate script library, so that I can use them elsewhere, as well as in the provider code.
I can successfully export the classes, and import them into a separate script library. I can also import the script library into the web service provider (leaving the original class code in the web service provider in place - apparently creating duplicate definitions in the provider). This does not identity any compilation errors - which I would expect the duplication to cause - and I can save the provider in this state.
I then tried to remove the original classes from provider code (to remove the duplication), and again this did not generate a compilation error. However, when I tried to save the changes I got a “The requested operation failed” error. I have tried this several different ways, but always get the same error.
Does anybody know a way to get this to work, so that I can remove the classes from the web service provider?
Thanks
Tim