[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Limitations of ruby's XMLRPC?

Kyle Schmitt

11/30/2007 3:07:00 PM

What are the limitations of ruby's XMLRPC?
After playing with some tutorials and reading a few articles, I've
written a few sample programs for myself, and ran into some oddities.

They weren't really much to overcome, but the bad thing was, I
couldn't find any article or resource that really listed out what this
XMLRPC implementation could and couldn't do.

So...

Is there:
A limit to what types may be passed in to a ruby XMLRPC server?
A limit to what types may be passed into a ruby XMLRPC client?
A limit to how many arguments may be passed into an XMLRPC sever?
What data types will get converted and to what, in ruby's XMLRC?
.....
And any other things that may be a surprise.

Thanks
--Kyle

1 Answer

James Gray

11/30/2007 3:30:00 PM

0

On Nov 30, 2007, at 9:07 AM, Kyle Schmitt wrote:

> What are the limitations of ruby's XMLRPC?

> Is there:
> A limit to what types may be passed in to a ruby XMLRPC server?
> A limit to what types may be passed into a ruby XMLRPC client?

By default, you can only use the types allowed by the XML-RPC
specification:

http://www.xmlrp...

Ruby's XML-RPC library does include configuration options for
serializing most Ruby object though and then reconstructing them at
the other side. I don't recommend using this feature though. Switch
to DRb if you are willing to tie yourself to just using Ruby.

> A limit to how many arguments may be passed into an XMLRPC sever?

I'm not aware of a limit, save for available limit. You could always
pass an Array as a single argument to get around one.

Now, I could envision a server rejecting requests that are too big.

> What data types will get converted and to what, in ruby's XMLRC?

<i4>/<int>: Integer
<boolean>: true or false
<string>: String
<double>: Float
<dateTime.iso8601>: XMLRPC::DateTime
<base64>: XMLRPC::Base64
<struct>: Hash
<array>: Array

Hope that helps.

James Edward Gray II