SOAP and very very large numbers

Discussion in 'Ruby' started by bmm, Apr 19, 2006.

  1. bmm

    bmm Guest

    Hi reader,

    It _seems_ SOAP is eager to parse number only values into number,
    however it fails if those numbers are to large. The following code
    raises the problem if you have a valid Google WebAPI key:

    require 'soap/wsdlDriver'
    key = 'YOURVALIDKEY'

    soap =
    SOAP::WSDLDriverFactory.new('http://api.google.com/GoogleSearch.wsdl').create_rpc_driver

    r = soap.doGoogleSearch(key, 'wacky something asdf', 0, 1, false, "",
    false, "", "", "" )
    puts "No problem: #{r.estimatedTotalResultsCount}"
    r = soap.doGoogleSearch(key, 'google', 0, 1, false, "", false, "", "",
    "" )
    puts "Will never get here"

    The result on Debian/Linux ruby1.8 and ruby 1.9 is:
    SOAP::FaultError: Exception from service object: For input string:
    "2400000000"
    from #<SOAP::Mapping::Object:0xb799d29c>

    The input string is normal, so what is the problem here? Is ruby trying
    to interpret this string and failing?
     
    bmm, Apr 19, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mj
    Replies:
    2
    Views:
    408
    Thomas Matthews
    Sep 12, 2003
  2. Alex Vinokur

    ilog2() for very large numbers

    Alex Vinokur, Nov 23, 2004, in forum: C++
    Replies:
    3
    Views:
    1,671
    Karl Heinz Buchegger
    Nov 23, 2004
  3. Replies:
    5
    Views:
    375
  4. GGP
    Replies:
    3
    Views:
    1,288
    Andrew Thompson via JavaKB.com
    Apr 2, 2007
  5. Wilson Cucaita

    Very large soap header

    Wilson Cucaita, Feb 10, 2005, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    112
    Dan Rogers
    Feb 15, 2005
Loading...

Share This Page