You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Mahendra Babu <ba...@geometricsoftware.com> on 2001/02/01 07:11:26 UTC
Printing the request and response payload...
How can I print the request and response payload on to the screen?
Thanks in advance,
Mahendra Babu
Re: Need an optimal way to return double arrays...
Posted by Sandeep Shrivastava <sa...@bea.com>.
You can write your serializer/de-serializer and return the array in a single
embedded element for example as a comma delimited list of values.
Cheers
Sandeep
----- Original Message -----
From: "Mahendra Babu" <ba...@geometricsoftware.com>
To: <so...@xml.apache.org>
Sent: Friday, February 02, 2001 5:10 AM
Subject: Need an optimal way to return double arrays...
> I am having to send a double array representing the facet data from the
> server to the client.
> But I find that the xml payload turns out to be humongous. Is there are
way
> to reduce the
> xml payload?
>
> The following is the SOAP response generated when returning a double array
> of size 5. The
> culprit as I see is the string "<item xsi:type="xsd:double">", which
bloats
> the size of the response.
>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org
> /1999/XMLSchema">
> <SOAP-ENV:Body>
> <ns1:getFacetDataResponse xmlns:ns1="urn:demo2:Faceter"
> SOAP-ENV:encodingStyle="
> http://schemas.xmlsoap.org/soap/encoding/">
> <return xmlns:ns2="urn:xml-soap-faceter"
xsi:type="ns2:facetData">
> <facetArray
> xmlns:ns3="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:Array"
> ns3:arrayType="xsd:double[5]">
> <item xsi:type="xsd:double">0.0</item>
> <item xsi:type="xsd:double">1.0</item>
> <item xsi:type="xsd:double">2.0</item>
> <item xsi:type="xsd:double">3.0</item>
> <item xsi:type="xsd:double">4.0</item>
> </facetArray>
> </return>
> </ns1:getFacetDataResponse>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> Thanks in advance,
> Mahendra Babu
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
>
Re: Need an optimal way to return double arrays...
Posted by Sandeep Shrivastava <sa...@bea.com>.
You can write your serializer/de-serializer and return the array in a single
embedded element for example as a comma delimited list of values.
Cheers
Sandeep
----- Original Message -----
From: "Mahendra Babu" <ba...@geometricsoftware.com>
To: <so...@xml.apache.org>
Sent: Friday, February 02, 2001 5:10 AM
Subject: Need an optimal way to return double arrays...
> I am having to send a double array representing the facet data from the
> server to the client.
> But I find that the xml payload turns out to be humongous. Is there are
way
> to reduce the
> xml payload?
>
> The following is the SOAP response generated when returning a double array
> of size 5. The
> culprit as I see is the string "<item xsi:type="xsd:double">", which
bloats
> the size of the response.
>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org
> /1999/XMLSchema">
> <SOAP-ENV:Body>
> <ns1:getFacetDataResponse xmlns:ns1="urn:demo2:Faceter"
> SOAP-ENV:encodingStyle="
> http://schemas.xmlsoap.org/soap/encoding/">
> <return xmlns:ns2="urn:xml-soap-faceter"
xsi:type="ns2:facetData">
> <facetArray
> xmlns:ns3="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:Array"
> ns3:arrayType="xsd:double[5]">
> <item xsi:type="xsd:double">0.0</item>
> <item xsi:type="xsd:double">1.0</item>
> <item xsi:type="xsd:double">2.0</item>
> <item xsi:type="xsd:double">3.0</item>
> <item xsi:type="xsd:double">4.0</item>
> </facetArray>
> </return>
> </ns1:getFacetDataResponse>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> Thanks in advance,
> Mahendra Babu
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
>
Need an optimal way to return double arrays...
Posted by Mahendra Babu <ba...@geometricsoftware.com>.
I am having to send a double array representing the facet data from the
server to the client.
But I find that the xml payload turns out to be humongous. Is there are way
to reduce the
xml payload?
The following is the SOAP response generated when returning a double array
of size 5. The
culprit as I see is the string "<item xsi:type="xsd:double">", which bloats
the size of the response.
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org
/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getFacetDataResponse xmlns:ns1="urn:demo2:Faceter"
SOAP-ENV:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/">
<return xmlns:ns2="urn:xml-soap-faceter" xsi:type="ns2:facetData">
<facetArray
xmlns:ns3="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Array"
ns3:arrayType="xsd:double[5]">
<item xsi:type="xsd:double">0.0</item>
<item xsi:type="xsd:double">1.0</item>
<item xsi:type="xsd:double">2.0</item>
<item xsi:type="xsd:double">3.0</item>
<item xsi:type="xsd:double">4.0</item>
</facetArray>
</return>
</ns1:getFacetDataResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Thanks in advance,
Mahendra Babu
Need an optimal way to return double arrays...
Posted by Mahendra Babu <ba...@geometricsoftware.com>.
I am having to send a double array representing the facet data from the
server to the client.
But I find that the xml payload turns out to be humongous. Is there are way
to reduce the
xml payload?
The following is the SOAP response generated when returning a double array
of size 5. The
culprit as I see is the string "<item xsi:type="xsd:double">", which bloats
the size of the response.
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org
/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getFacetDataResponse xmlns:ns1="urn:demo2:Faceter"
SOAP-ENV:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/">
<return xmlns:ns2="urn:xml-soap-faceter" xsi:type="ns2:facetData">
<facetArray
xmlns:ns3="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Array"
ns3:arrayType="xsd:double[5]">
<item xsi:type="xsd:double">0.0</item>
<item xsi:type="xsd:double">1.0</item>
<item xsi:type="xsd:double">2.0</item>
<item xsi:type="xsd:double">3.0</item>
<item xsi:type="xsd:double">4.0</item>
</facetArray>
</return>
</ns1:getFacetDataResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Thanks in advance,
Mahendra Babu
RE: Printing the request and response payload...
Posted by Priya <pm...@orbit-e.com>.
Have you considered using the tunnel utility
(org.apache.soap.util.net.TcpTunnelGui) ?
regards,
Priya
-----Original Message-----
From: Mahendra Babu [mailto:babum@geometricsoftware.com]
Sent: Thursday, February 01, 2001 1:11 AM
To: soap-user@xml.apache.org
Subject: Printing the request and response payload...
How can I print the request and response payload on to the screen?
Thanks in advance,
Mahendra Babu
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
RE: Printing the request and response payload...
Posted by Priya <pm...@orbit-e.com>.
Have you considered using the tunnel utility
(org.apache.soap.util.net.TcpTunnelGui) ?
regards,
Priya
-----Original Message-----
From: Mahendra Babu [mailto:babum@geometricsoftware.com]
Sent: Thursday, February 01, 2001 1:11 AM
To: soap-user@xml.apache.org
Subject: Printing the request and response payload...
How can I print the request and response payload on to the screen?
Thanks in advance,
Mahendra Babu
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org