You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Kinichiro Inoguchi <in...@yahoo.com> on 2006/12/23 04:00:31 UTC
minimize response from RPCMessageReceiver
Hi,
I created JIRA as http://issues.apache.org/jira/browse/AXIS2-1598.
For a better performance, reducing XML payload size will be important
factor.
==========================================================
Is there any way to minimize SOAP response
from RPCMessageReceiver ?
With my sample aar, I can receive this response.
Each element has namespace definition.
<ns:sayHelloResponse xmlns:ns="http://ws.aaa.bbb/types">
<ns:return>
<ret1 xmlns="http://test/xsd">xyz</ret1>
<ret2 xmlns="http://test/xsd">123</ret2>
<ret3 xmlns="http://test/xsd">99999</ret3>
<ret4 xmlns="http://test/xsd">123.456</ret4>
<ret5 xmlns="http://test/xsd">4.0</ret5>
<ret6 xmlns="http://test/xsd">789</ret6>
<ret7 xmlns="http://test/xsd">true</ret7>
</ns:return>
<ns:return>
<ret1 xmlns="http://test/xsd">xyzxyz</ret1>
<ret2 xmlns="http://test/xsd">246</ret2>
<ret3 xmlns="http://test/xsd">199998</ret3>
<ret4 xmlns="http://test/xsd">246.912</ret4>
<ret5 xmlns="http://test/xsd">8.0</ret5>
<ret6 xmlns="http://test/xsd">789</ret6>
<ret7 xmlns="http://test/xsd">true</ret7>
</ns:return>
</ns:sayHelloResponse>
This response is correct, but little bit heavy.
I think response like below is enough.
<ns:sayHelloResponse xmlns:ns="http://ws.aaa.bbb/types"
xmlns:ns1="http://test/xsd">
<ns:return>
<ns1:ret1>xyz</ns1:ret1>
<ns1:ret2>123</ns1:ret2>
<ns1:ret3>99999</ns1:ret3>
<ns1:ret4>123.456</ns1:ret4>
<ns1:ret5>4.0</ns1:ret5>
<ns1:ret6>789</ns1:ret6>
<ns1:ret7>true</ns1:ret7>
</ns:return>
<ns:return>
<ns1:ret1>xyzxyz</ns1:ret1>
<ns1:ret2>246</ns1:ret2>
<ns1:ret3>199998</ns1:ret3>
<ns1:ret4>246.912</ns1:ret4>
<ns1:ret5>8.0</ns1:ret5>
<ns1:ret6>789</ns1:ret6>
<ns1:ret7>true</ns1:ret7>
</ns:return>
</ns:sayHelloResponse>
==========================================================
Any comments will be greatly appreciated.
Thanks,
kinichiro
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org