http://xfire.codehaus.org/Client+and+Server+Stub+Generation+from+WSDL I am following the above doc to generate client stubs for web services with Ant. Everything works fine if I only have to access only one service, but a problem arises if I have to generate multiple clients for multiple services. I have following package structure on the server side: com.mydomain.model: POJO domain classes: MyClass1 and MyClass2 com.mydomain.service: service interfaces: Service1 and Service2
The problem is two extra files ObjectFactory.java and package-info.java are generated in each folder which are specific to each Service. Now, when I generate the clients, I will have to place the model/service interfaces in the same folder, but these files (ObjectFactory.java and package-info.java ) generated for Service2 will overwrite the files generated for Service1. How do I overcome this situation or is it possible to create clients for multiple services at once? Thanks.
