cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-1213) On the wire (SOAP)XML representations should have all the namespaces declared at the top level element
Date Thu, 15 Nov 2007 15:55:43 GMT
On the wire (SOAP)XML representations should have all the namespaces declared at the top level
element
------------------------------------------------------------------------------------------------------

                 Key: CXF-1213
                 URL: https://issues.apache.org/jira/browse/CXF-1213
             Project: CXF
          Issue Type: Improvement
    Affects Versions: 2.0.3
            Reporter: Sergey Beryozkin
            Priority: Minor


On the wire (SOAP)XML representations should have all the namespaces declared at the top level
element.

For ex, rather than

<soap:envelope>
<soap:Header>
<MessageID
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">
urn:uuid:8504dd78-06aa-4c6b-b589-ad703ae19bbe
</MessageID>
<To xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">
http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
</To>
<RelatesTo
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"
RelationshipType="reply">
urn:uuid:b33fc856-dbae-4034-ac6f-e2d53b593722
</RelatesTo>
<Action
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">
http://www.daon.com/ws/de/IdentityManagement/CreateIdentity
</Action>
</soap:Header>
<soap:Body/>
</sop:envelope>

it should be 

<soap:envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
<soap:Header>
<wsa:MessageID>
urn:uuid:8504dd78-06aa-4c6b-b589-ad703ae19bbe
</MessageID>
<wsa:To>
http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
</To>
<wsa:RelatesTo RelationshipType="reply">
urn:uuid:b33fc856-dbae-4034-ac6f-e2d53b593722
</RelatesTo>
<wsa:Action>
http://www.daon.com/ws/de/IdentityManagement/CreateIdentity
</Action>
</soap:Header>
<soap:Body/>
</sop:envelope>

At marshalling one can keep two buffers, one for soap:envelope, one for the rest of the message.
All new namespaces go into the 1st buffer. Once th emessage is complete, two bufferes are
concatenated and an envelope is closed. This can be optimised.
Overall, the performance shopuld not suffer but rather improve overall. Still, once can have
a config option so that users can decide




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message