You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ws.apache.org by Jason Wyatt <jw...@itree.com.au> on 2004/05/20 06:35:27 UTC
XML over XML-RPC
Hi,
We've been using the Apache XML-RPC 1.1 library for a few projects and
it's been great. In the last project our GUI was talking to the server
over wireless and we couldn't use SQLNET. So we implemented a remote
database query over XML-RPC, where you could pass an SQL string to the
XML-RPC server and it would do the query on the central database then
return the response as a vector of hashtables, one hashtable per row.
This worked fine.
Now we have implemented some stored procedures on the central database
that return an XML document as a CLOB. We want to call these stored
procedures through the same mechanism.
I have couple of questions:
1. Are there any issues with sending XML in a String over XML-RPC in the
apache v1.1 implementation?
2. Is there any fundamental limit to the size of the XML-RPC response?
Thanks in advance,
Jason
--
Falun Dafa: A peaceful meditation practice under persecution in China
http://www.faluninfo.net
Truth - Compassion - Forbearance
Re: XML over XML-RPC
Posted by John Wilson <tu...@wilson.co.uk>.
On 20 May 2004, at 08:16, Jason Wyatt wrote:
> Ok, it should be failry straight forward then, thanks for your help.
I hope so! Good luck, don't hesitate to ask on this list if you do hit
problems :)
John Wilson
The Wilson Partnership
http://www.wilson.co.uk
RE: XML over XML-RPC
Posted by Jason Wyatt <jw...@itree.com.au>.
Ok, it should be failry straight forward then, thanks for your help.
Regards
Jason
-----Original Message-----
From: John Wilson [mailto:tug@wilson.co.uk]
Sent: Thursday, 20 May 2004 5:03 PM
To: xmlrpc-user@ws.apache.org
Subject: Re: XML over XML-RPC
On 20 May 2004, at 07:40, Jason Wyatt wrote:
> Thanks John.
>
> Regarding the upper limit...
>
> I vaguely recall java.lang.String has an upper limit of 64k??
This isn't true Jason
Strings are implemented as an array of chars. A Java array can have
around two billion entries.
John Wilson
The Wilson Partnership
http://www.wilson.co.uk
Re: XML over XML-RPC
Posted by John Wilson <tu...@wilson.co.uk>.
On 20 May 2004, at 07:40, Jason Wyatt wrote:
> Thanks John.
>
> Regarding the upper limit...
>
> I vaguely recall java.lang.String has an upper limit of 64k??
This isn't true Jason
Strings are implemented as an array of chars. A Java array can have
around two billion entries.
John Wilson
The Wilson Partnership
http://www.wilson.co.uk
RE: XML over XML-RPC
Posted by Jason Wyatt <jw...@itree.com.au>.
Thanks John.
Regarding the upper limit...
I vaguely recall java.lang.String has an upper limit of 64k??
I'd imagine you can throetically pass a large vector of 64k Strings back
through the XML-RPC response... If this is the case, then is the upper
size limit of the response only defined by the amount of available RAM?
Regards
Jason
-----Original Message-----
From: John Wilson [mailto:tug@wilson.co.uk]
Sent: Thursday, 20 May 2004 4:26 PM
To: xmlrpc-user@ws.apache.org
Subject: Re: XML over XML-RPC
On 20 May 2004, at 05:35, Jason Wyatt wrote:
> Hi,
>
> We've been using the Apache XML-RPC 1.1 library for a few projects and
> it's been great. In the last project our GUI was talking to the server
> over wireless and we couldn't use SQLNET. So we implemented a remote
> database query over XML-RPC, where you could pass an SQL string to the
> XML-RPC server and it would do the query on the central database then
> return the response as a vector of hashtables, one hashtable per row.
> This worked fine.
>
> Now we have implemented some stored procedures on the central database
> that return an XML document as a CLOB. We want to call these stored
> procedures through the same mechanism.
>
> I have couple of questions:
>
> 1. Are there any issues with sending XML in a String over XML-RPC in
> the apache v1.1 implementation?
This should work fine
>
> 2. Is there any fundamental limit to the size of the XML-RPC response?
>
The XML spec requires that the content-length header be present in the
HTTP transaction. This means that the request and the response will
need to be assembled in memory before it is sent. This gives an upper
bound to the size of both the request and the response.
John Wilson
The Wilson Partnership
http://www.wilson.co.uk
Re: XML over XML-RPC
Posted by John Wilson <tu...@wilson.co.uk>.
On 20 May 2004, at 05:35, Jason Wyatt wrote:
> Hi,
>
> We've been using the Apache XML-RPC 1.1 library for a few projects and
> it's been great. In the last project our GUI was talking to the server
> over wireless and we couldn't use SQLNET. So we implemented a remote
> database query over XML-RPC, where you could pass an SQL string to the
> XML-RPC server and it would do the query on the central database then
> return the response as a vector of hashtables, one hashtable per row.
> This worked fine.
>
> Now we have implemented some stored procedures on the central database
> that return an XML document as a CLOB. We want to call these stored
> procedures through the same mechanism.
>
> I have couple of questions:
>
> 1. Are there any issues with sending XML in a String over XML-RPC in
> the apache v1.1 implementation?
This should work fine
>
> 2. Is there any fundamental limit to the size of the XML-RPC response?
>
The XML spec requires that the content-length header be present in the
HTTP transaction. This means that the request and the response will
need to be assembled in memory before it is sent. This gives an upper
bound to the size of both the request and the response.
John Wilson
The Wilson Partnership
http://www.wilson.co.uk