Interesting. Do you have a small reproducible testcase for this - is it
reproducible also with recent jaxb? If so please file an issue and
attach the testcase. Thanks,
MartiNG
On 02/01/2012 09:25 AM, Stevo Slavić wrote:
> Hello JAXB community,
>
> With a contract first approach for two web services I've created a
> separate constract/wsdl and then using maven jaxb plugin Java code is
> generated from XSDs. Java is 1.6 update 30 so jaxb is 2.1
>
> One of the two web services has word "core" in the namespace e.g.
> http://www.foo.org/bar/core/v1
> Code generated for "non-core" web service has namespace in
> XmlRootAnnotation but not in XmlType annotation.
> Code generated for "core" web service is different - namespace is
> added to XmlType annotation but not to XmlRootElement annotations.
>
> After changing "core" to "corews" in the xsds/wsdl code generated
> would contain namespace in XmlRootAnnotation but not in XmlType
> annotation - just like for other "non-core" web service.
>
> I've tried several different maven plugins, and wsimport on command
> line with same Java and outcome was same as well.
>
> Is "core" in namespace some reserved word?
> Can anyone please explain different behavior?
>
> Kind regards,
> Stevo.
--
Martin Grebac, Metro/JAXWS/JAXB RI Lead
Oracle Czech, Prague
http://blogs.oracle.com/mgrebac
ICQ: 93478885