Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.2.1
-
Fix Version/s: 1.2.6
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
The size of the SOAP responses returned can increase to the point where it can affect performance. This is due to namespaces being declared multiple times when it is not necessary sometimes. For example, this is a portion of a response containing a long array of KeyValue from a service published using Glue:
<n3:KeyValue xsi:type="n3:KeyValue">
<key xsi:type="xsd:string">AC</key>
<value xsi:type="xsd:string">Antigua and Barbuda</value>
</n3:KeyValue>
<n3:KeyValue xsi:type="n3:KeyValue">
<key xsi:type="xsd:string">AE</key>
<value xsi:type="xsd:string">United Arab Emirates</value>
</n3:KeyValue>
The same service published with xfire would return:
<ns2:KeyValue xmlns:ns2="http://www.arcwebservices.com/v2006_1/com.esri.aws.dto/">
<key xmlns="http://www.arcwebservices.com/v2006_1/com.esri.aws.dto/">AC</key>
<value xmlns="http://www.arcwebservices.com/v2006_1/com.esri.aws.dto/">Antigua and Barbuda</value>
</ns2:KeyValue>
<ns2:KeyValue xmlns:ns2="http://www.arcwebservices.com/v2006_1/com.esri.aws.dto/">
<key xmlns="http://www.arcwebservices.com/v2006_1/com.esri.aws.dto/">AE</key>
<value xmlns="http://www.arcwebservices.com/v2006_1/com.esri.aws.dto/">United Arab Emirates</value>
</ns2:KeyValue>
Here's a forum post containing more information on this issue:
http://www.nabble.com/SOAP-response-contains-redundant-namespaces-t3084484.html
We're noticing the redundant namespaces when using Aegis bindings with the latest versions of XFire, Stax API, and Woodstox, on top of Java 1.4.2 in Sun AppServer 7.
Our company is using XFire for web services that receive over a million hits a day, so the bandwidth used by the redundant namespaces in SOAP responses is very significant. We appreciate any help you can give on the issue, Dan.