[
https://issues.apache.org/jira/browse/AXIS2-3760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654847#action_12654847
]
Philippe Mouawad commented on AXIS2-3760:
-----------------------------------------
Hello,
I got an answer on issue:
https://issues.apache.org/jira/browse/WSCOMMONS-327
I submit a patch that changes the way serialization occurs in the generated
Stubs/Skeleton.
Patch is on AXIS2 XMLBeans module:
\modules\xmlbeans\src\org\apache\axis2\xmlbeans\template\XmlbeansDatabindingTemplate.xsl
The patch requires an upgrade to XMLBeans 2.4.0 otherwise an exception will
occur (java.lang.IllegalArgumentException: Local name may not be null or empty)
due to a Bug in XMLBeans:
http://forum.springframework.org/showthread.php?t=43958
Using this patch you will notice that namespaces are written at the beginning
and that prefixes are used in all the document, I chose to set the following
options on XMLBeans to reduce at max the message size:
xmlOptions.setSaveNoXmlDecl();
xmlOptions.setSaveAggressiveNamespaces();
xmlOptions.setSaveNamespacesFirst();
Hope you can take this patch into account soon because it is rather critical in
terms of network traffic.
Philippe
www.ubik-ingenierie.com
> CLONE -XMLBeans DataBinding generates too many namespaces PERFORMANCE ISSUE
> ---------------------------------------------------------------------------
>
> Key: AXIS2-3760
> URL: https://issues.apache.org/jira/browse/AXIS2-3760
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: databinding
> Affects Versions: 1.4, 1.3, nightly
> Environment: ALL
> Reporter: Philippe Mouawad
> Assignee: Amila Chinthaka Suriarachchi
> Priority: Critical
> Attachments: axiom-api-fix.jar, NamespaceBug.zip
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> When using XMLBeans as databinding layer.
> XML Requests and responses are very verbose due to same Namespaces being
> declared and redeclared.
> Example:
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><v1:getLocatedProducts
>
> xmlns:v1="http://v1.product.ws.store.kingfisher.com"><v1:param0><xsd:callType
> xmlns:xsd="http://data.v1.product.ws.store.kingfisher.com/xsd">1</xsd:callType><xsd:familyCode
>
> xmlns:xsd="http://data.v1.product.ws.store.kingfisher.com/xsd">1</xsd:familyCode><xsd:moduleCode
>
> xmlns:xsd="http://data.v1.product.ws.store.kingfisher.com/xsd">1</xsd:moduleCode><xsd:subFamilyCode
>
> xmlns:xsd="http://data.v1.product.ws.store.kingfisher.com/xsd">1</xsd:subFamilyCode></v1:param0></v1:getLocatedProducts></soapenv:Body></soapenv:Envelope>
> You see that http://data.v1.product.ws.store.kingfisher.com/xsd is declared 4
> times instead of one.
> Philippe Mouawad
> www.ubik-ingenierie.com
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.