Am Mittwoch, den 26.12.2007, 14:48 -0500 schrieb Silberman, Nathan:

> When using wsdl2java, I had been specifying the destination packages for
> several services to be the same package: com.foobar lets say. This is
> not problematic for all classes except one: ObjectFactory. The methods
> in objectFactory are only those of the last wsdl to be generated to java
> code. The consequence of this is that objectFactory is missing most of
> the element helper methods.
>  
> Has anybody else run into this issue? If so, is there another solution
> other than having each wsdl2java output be sent to a different package?
> (The consequence of multiple output packages is that you end up with
> duplicate classes for wsdls that share types)
>  

ObjectFactory has always struck me as just a "training wheel"-type
helper class for newbies.  (IIRC GlassFish Metro's wsimport doesn't even
generate it.)  I would argue to keep your code JAX-WS portable and
avoid using it in your work.

Glen


> Nathan

Reply via email to