Limitations of ruby's XMLRPC?

K

Kyle Schmitt

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
 
J

James Edward Gray II

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.xmlrpc.com/spec

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top