Are you explicitly setting the namespace attribute on the @XmlType
annotation of each of the classes to the reverse of the package name that
is on those classes. Usually as I recall this creates the type definition
and namespace in the XSDs....and subsequent ObjectFactory classes that get
generated from them.

Mark
On Apr 1, 2012 5:24 AM, "arikgold" <[email protected]> wrote:

> Hi,
>
> I generate wsdl&xsd from java using the java2ws.
>
> I have WebMethod that returns List<com.myOrg.pkg1.Employee>
> I have a derived class SpecialEmployee extends Employee that is defined in
> other package.
> I want to add SpecialEmployee to the xsd file.
> I can't add the XmlSeeAlso to the Employee class because it doesnt know
> SpecialEmployee (and shouldnt know all its derived classes)
>
> JAXB allows solving it using the jaxb.additionalContextClasses setting.
>
> Does java2ws supports it as well?
> If yes, how should I define it?
>
> Thanks
> Arik
>
>
>
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/does-java2ws-support-jaxb-additionalContextClasses-tp5610097p5610097.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

Reply via email to