users@jaxb.java.net

How to get rid of the default namespace in SOAP response ?

From: joshua1970 <joshua1970j_at_libero.it>
Date: Mon, 30 Mar 2009 02:13:14 -0700 (PDT)

Hi all !
I have a Webservice which uses JAX-WS and JBoss AS. This webservice returns
a List of Objects to the
client. However I can see that after JAXB marshalling the SOAP message
returned contains namespace
information on every row:

<ns1:getAllViewsResponse xmlns:ns2="http://oneoffice/tasklist"
xmlns:ns1="http://oneoffice/filter"><return
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xsi:type="xs:string">view2</return><return
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xsi:type="xs:string">view1</return><return
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xsi:type="xs:string">item18</return><return
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xsi:type="xs:string">item1</return><return
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xsi:type="xs:string">item7</return><return
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xsi:type="xs:string">item3</return><return
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xsi:type="xs:string">ff</return><return
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xsi:type="xs:string">item3</return></ns1:getAllViewsResponse>

As you can see there's a lot of information in the xmlns and xsi elements
which bloat the SOAP package. How can I get rid of it so that I slim the
SOAP packet ?

I've tried with both @SOAPBinding(style = SOAPBinding.Style.RPC)
and @SOAPBinding(style = SOAPBinding.Style.DOCUMENT) but the SOAP packet
stays the same.....
any idea to reduce the size of the SOAP response ?
thanks a lot
john
-- 
View this message in context: http://www.nabble.com/How-to-get-rid-of-the-default-namespace-in-SOAP-response---tp22779053p22779053.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.