It is not possible to repackage individual files via WSDL2Java. This is actually a bad idea. If all of these files are generated from WSDL types that are all in the same namespace, they should all reside in the same package; otherwise you lose the one-to-one package-to-namespace/namespace-to-package mapping.

The most you can do with WSDL2Java is to redirect the root directory to something other than the current directory.

If you can change your WSDL, you can change the namespaces for your portType, binding, and service so that they're in unique packages. That will almost give you what you want. All the portType stuff (testServer) would be in one package, all the binding stuff (testServerSoapBindingStub, testServerSoapBindingSkeleton, testServerSoapBindingImpl) would be in another, and all the service stuff (testServerServiceLocator, testServerService) would be in a third.

Russell Butek
[EMAIL PROTECTED]

Please respond to [EMAIL PROTECTED]

To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject: generated classes directory



Hi,

is there a way to tell the WSDL2Java tools where to put the generated classes? I actaully want the tools for example  to put the classes testServerServiceLocator, testServerService and the testServerSoapBindingStub In the test.soap.client directory and the classes testServer, testServerSoapBindingSkeleton and the testServerSoapBindingImpl In the test.soap.server directory and the holder classes In the test.holder directory. Is this possible?

thanks

Mohammed

Reply via email to