You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by M Stewart <zo...@gmail.com> on 2010/02/19 20:18:59 UTC

Re: Duplicated namespaces!



dkulp wrote:
> 
> The only way I know around it is to write your own 
> com.sun.xml.bind.marshaller.NamespacePrefixMapper
> and override the methods:
> String[] getPreDeclaredNamespaceUris()
> String[] getPreDeclaredNamespaceUris2()
> to just declare the ones you think are needed up front and then register
> that 
> with the CXF JAXB Databinding.
> 

You wouldn't happen to know of a page where this registration process is
documented would you? I'm having a hell of time figuring it out. My interest
is simply to have the prefixes declared by my WSDL honored in the JAXB
generated responses. 

-- 
View this message in context: http://old.nabble.com/Duplicated-namespaces%21-tp22157234p27659003.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Duplicated namespaces!

Posted by Daniel Kulp <dk...@apache.org>.
On Sat February 20 2010 8:40:19 am M Stewart wrote:
> dkulp wrote:
> > There are some docs at:
> > http://cxf.apache.org/docs/jaxb.html
> 
> Thanks for the quick reply. I did see that page but I should have mentioned
> that we're using the nice Spring integration facilities (annotations and
> cxf-servlet config as described at
> http://cxf.apache.org/docs/writing-a-service-with-spring.html) The <server>
> element seems like it would conflict with all that stuff, no?
> 
> Is it still possible to wire up the data binding with this setup?

The jaxws:endpoint has a dataBinding element just like the server tag does.   
It should work the same.


-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Re: Duplicated namespaces!

Posted by M Stewart <zo...@gmail.com>.

dkulp wrote:
> 
> There are some docs at:
> http://cxf.apache.org/docs/jaxb.html
> 

Thanks for the quick reply. I did see that page but I should have mentioned
that we're using the nice Spring integration facilities (annotations and
cxf-servlet config as described at
http://cxf.apache.org/docs/writing-a-service-with-spring.html) The <server>
element seems like it would conflict with all that stuff, no?

Is it still possible to wire up the data binding with this setup?
-- 
View this message in context: http://old.nabble.com/Duplicated-namespaces%21-tp22157234p27666483.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Duplicated namespaces!

Posted by Daniel Kulp <dk...@apache.org>.
On Fri February 19 2010 2:18:59 pm M Stewart wrote:
> dkulp wrote:
> > The only way I know around it is to write your own
> > com.sun.xml.bind.marshaller.NamespacePrefixMapper
> > and override the methods:
> > String[] getPreDeclaredNamespaceUris()
> > String[] getPreDeclaredNamespaceUris2()
> > to just declare the ones you think are needed up front and then register
> > that
> > with the CXF JAXB Databinding.
> 
> You wouldn't happen to know of a page where this registration process is
> documented would you? I'm having a hell of time figuring it out. My
> interest is simply to have the prefixes declared by my WSDL honored in the
> JAXB generated responses.

There are some docs at:
http://cxf.apache.org/docs/jaxb.html



-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog