You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2007/11/15 16:55:43 UTC
[jira] Created: (CXF-1213) On the wire (SOAP)XML representations
should have all the namespaces declared at the top level element
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.
[jira] Resolved: (CXF-1213) On the wire (SOAP)XML representations
should have all the namespaces declared at the top level element
Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benson Margulies resolved CXF-1213.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.1
You can control this by making your own namespace prefix assignments at the level of the JAXB marshaller. We have added support so that you can provide your own JAXB namespace prefix mapper. See the namespacePrefixMapper property of the JAXBDataBinding.
> 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
> Fix For: 2.1
>
>
> 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.