64-bitbigintegerxml-rpc

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.


Solution

  • 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"