In the response we recieve from our web service, the declaration of the 
namespace (xmlns:ns1="http://our.website/services/types";) is repeated in every 
element even though only one declaration would do in the top element 
(ns1:myMethodResponse). Is there a way we can tell JBoss not to generate a 
namespace declaration if the parent element already belongs to the same 
namespace ?

We use JBoss 4.0.4.GA

Below is the response :

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";>
        <env:Header/>
        <env:Body>
                <ns1:myMethodResponse 
xmlns:ns1="http://our.website/services/types"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
                        <ns1:header>
                                <ns1:version 
xmlns:ns1="http://our.website/services/types";>1.0</ns1:version>
                                <ns1:senderTime 
xmlns:ns1="http://our.website/services/types";>2006-07-17T13:06:48.867Z</ns1:senderTime>
                                <ns1:senderId 
xmlns:ns1="http://our.website/services/types";>CommonBank</ns1:senderId>
                                <ns1:language 
xmlns:ns1="http://our.website/services/types";>NL</ns1:language>
                                <ns1:systemSoftwareVersion 
xmlns:ns1="http://our.website/services/types";>4.00.00.0033</ns1:systemSoftwareVersion>
                        </ns1:header>
                        <ns1:myMethodResponse 
xsi:type="ns1:myMethodResponseV1DTO">
                                <ns1:checkedAccountNumbers 
xmlns:ns1="http://our.website/services/types";>
                                        <ns1:checkedAccountNumber 
xmlns:ns1="http://our.website/services/types";>
                                                <ns1:accountNumber 
xmlns:ns1="http://our.website/services/types";>BE06792503601622</ns1:accountNumber>
                                                
<ns1:timestampLastAvailableDocument 
xmlns:ns1="http://our.website/services/types";>2006-05-05T00:00:00.000Z</ns1:timestampLastAvailableDocument>
                                        </ns1:checkedAccountNumber>
                                        ...
                                </ns1:checkedAccountNumbers>
                        </ns1:myMethodResponse>
                </ns1:myMethodResponse>
        </env:Body>
</env:Envelope>


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958460#3958460

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958460
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to