Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XML-RPC: best options for 64 bit ints?

XML-RPC unfortunately doesn't support 64-bit ints in the official standard. It seems there are several extensions that add this support.

Do any of them seem to be more popular or better supported? Which extension do you use?

Answers for all languages appreciated.

like image 426
Mark Harrison Avatar asked Oct 21 '25 06:10

Mark Harrison


1 Answers

Well it seems there's no great answer for this, so we're just making an internal extension that says "integer types are unbounded."

In our python library, I'm commenting out this check:

def dump_int(self, value, write):
    # in case ints are > 32 bits
    ## extension: ints can be arbitrarily sized
    ## if value > MAXINT or value < MININT:
    ##    raise OverflowError, "int exceeds XML-RPC limits"
like image 65
Mark Harrison Avatar answered Oct 24 '25 23:10

Mark Harrison



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!