Yes, sorry, my advice is applicable to a Java First approach, where I add the package-info.java manually I don't use cxf-xjc-plugin but I write JaxB annotated Java and generate XML Schemas and WSDL from it...
"- The generated XML contains a "ew:" behind each element and I need to have it only on the root element." maybe this depend on the elementFormDefault: if it is QUALIFIED, every element will use the prefix, try with UNQUALIFIED 2014-05-21 14:15 GMT+02:00 gquintana <[email protected]>: > Thanks for you advice, I tried this solution but: > - I can not make the cxf-xjc-plugin Maven plugin generate the appropriate > package-info.java > - The generated XML contains a "ew:" behind each element and I need to have > it only on the root element. > > I recognize the endpoint I am compelled to access sucks. > > I tried to marshal un JAXBElement with QName speciying the prefix, but it > doesn't help. > > My only option left, is doing search/replace on the generated String > message. This solutions is abominable as well. > > > > > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/Custom-namespace-prefix-in-JAXB-tp5720382p5720385.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. >
