You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by neoman <ha...@gmail.com> on 2011/01/23 03:48:11 UTC
CXF uses all the namespaces in the WSDL
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
--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-uses-all-the-namespaces-in-the-WSDL-tp3353351p3353351.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: CXF uses all the namespaces in the WSDL
Posted by Daniel Kulp <dk...@apache.org>.
On Friday 11 February 2011 1:39:36 pm neoman wrote:
> Any one ?. Your help is appreciated.
> Thanks
The only suggestion I can make is to write an interceptor that would wrapper
the XMLStreamWriter with on that would block calls to the writeNamespace call
that you don't want written out.
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Re: CXF uses all the namespaces in the WSDL
Posted by neoman <ha...@gmail.com>.
Any one ?. Your help is appreciated.
Thanks
--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-uses-all-the-namespaces-in-the-WSDL-tp3353351p3381789.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: CXF uses all the namespaces in the WSDL
Posted by neoman <ha...@gmail.com>.
Thanks Daniel for your reply. Your reply is very helpful.
Does anyone know to overcome this using any custom code ? .
--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-uses-all-the-namespaces-in-the-WSDL-tp3353351p3357351.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: CXF uses all the namespaces in the WSDL
Posted by Daniel Kulp <dk...@apache.org>.
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
dkulp@apache.org
http://dankulp.com/blog
Re: CXF uses all the namespaces in the WSDL
Posted by neoman <ha...@gmail.com>.
Hi All,
Anyone, can you please help?
Thanks
--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-uses-all-the-namespaces-in-the-WSDL-tp3353351p3354812.html
Sent from the cxf-user mailing list archive at Nabble.com.