This is really just how JAXB works and not much we can do about it. JAXB writes all the namespaces out that it knows ahead of time to make sure there are prefixes assigned to everything. That allows it to not have to write out a lot of namespaces later on.
Again, it's a JAXB thing and really out of our control. Dan On Saturday 22 January 2011 9:48:11 pm neoman wrote: > Hello, > I have been using CXF for sometime. I have this problem that CXF returns > all the namespaces used in the WSDL in the SOAP response. > > For Example, > There are three operations in a WSDL. Each operation uses 3 namespaces for > messages and faults. but the SOAP XML request/response for operation1 also > includes the namespaces used by the other operations. > Is there a way to restrict the namespaces in the request/response only to > the particular operation? > > Your help is appreciated. > > Thanks -- Daniel Kulp [email protected] http://dankulp.com/blog
