The class to look at is PROBABLY the 
org.apache.cxf.jaxb.io.DataWriterImpl
The code is a little different on trunk as I've been working on getting it 
able to use the jaxb implementation built into Java6, but it shouldn't be 
hard to follow.  

The "com.sun.xml.bind.defaultNamespaceRemap" property can also have some 
impact on this as well.

Dan


On Monday 10 November 2008 1:52:14 pm Benson Margulies wrote:
> If I recommended that you read our code in the vicinity of the class
> JAXBDataBinding, would you be annoyed? It sets up a whole series of
> JAXB options.
>
> On Mon, Nov 10, 2008 at 1:11 PM, Nick Heudecker <[EMAIL PROTECTED]> 
wrote:
> > I've noticed that when I call my services using CXF, it only outputs the
> > namespaces necessary for the output objects, which is the behavior I'm
> > looking for.  If I make the same type of call outside CXF with my own
> > configured JAXB instance, JAXB dumps out all of the namespaces it knows
> > about even thought they're not needed.  CXF does the right thing while
> > JAXB doesn't and I'd like to know how CXF does it.
> >
> > Any help is appreciated.
> >
> > -Nick



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://dankulp.com/blog

Reply via email to