xml-rpc and 64-bit ints?

M

Mark Harrison

I've got an API that deals with 64 bit int values. Is there
any way of handling this smoothly? Right now I'm casting
the values into and out of strings for the API.

If not, are there any nice alternatives to XML-RPC that
support this?

Many TIA!
Mark
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

Mark said:
I've got an API that deals with 64 bit int values. Is there
any way of handling this smoothly? Right now I'm casting
the values into and out of strings for the API.

In XML-RPC, everything is transmitted as a string, so I
don't think that choice is really that bad - except of
course for the additional clumsiness for invoking explicit
conversion functions.

But no, XML-RPC doesn't have a data type that can represent
integers above 2**32. If you can accept losing precision,
you can use doubles (but you still would have to convert
explicitly on the sender).
If not, are there any nice alternatives to XML-RPC that
support this?

CORBA certainly supports 64-bit integers.

Regards,
Martin
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top