[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

SOAP and very very large numbers

bmm

4/18/2006 11:14:00 PM

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...).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?

2 Answers

Akins of that Ilk

4/10/2011 1:42:00 AM

0

On Apr 9, 7:43 pm, Fred J. McCall <fjmcc...@gmail.com> wrote:
> Akins of that Ilk <the_akins_of_ak...@yahoo.com> wrote:
>
>
>
> >It is well known that such theories are promoted by Jewish
> >researchers, since the Jews themselves are a mongrel people of Afro-
> >Asian origin; they have an agenda of promoting mongrelization through
> >miscegenation (race-mixing).
>
> And those inferior mongrels have been kicking your pure White ass for
> 2,000 years in real world competition.  It's really amusing to listen
> to you echo your bent view of 'pure Chosen people', you know?
>
> You're a poor imitation of an incorrect and ignorant racial
> stereotype, Akins....
>
> --
> "The supreme satisfaction is to be able to despise one s
>  neighbour and this fact goes far to account for religious
>  intolerance. It is evidently consoling to reflect that the
>  people next door are headed for hell."
>                                    -- Aleister Crowley

Actually for most of history it has been the Jews who have been kicked
out of nearly every country that they settled in, including their own
"homeland" of Israel. They are like Gypsies, only with less decency.

Akins of that Ilk

4/10/2011 1:46:00 AM

0

On Apr 9, 7:46 pm, Fred J. McCall <fjmcc...@gmail.com> wrote:
> Akins of that Ilk <the_akins_of_ak...@yahoo.com> wrote:
>
>
>
> >Races do exist, which is obvious to anyone who has ever seen a Negro
> >or an Asian and compared them to a Caucasian. Perhaps at one time
> >Neanderthals were able to mate with gorillas and that produced the
> >Negro race.
>
> <snork>
>
> Ok, and this cross between a Neanderthal and a gorilla can mate with
> your daughter and produce offspring.  What does that tell you, Akins?
>
> I know what it tells sane people.
>
> --
> "Ordinarily he is insane. But he has lucid moments when he is
>  only stupid."
>                             -- Heinrich Heine

Perhaps with your daughter, Fred, not with mine. Unlike you, I have a
vested interest in keeping our family bloodline free of miscegenation,
and have ample means to discourage unsuitable suitors.