Google API returns: Exception from service object: For input string

In http://api.google.com/GoogleSearch.wsdl Google uses name="estimatedTotalResultsCount" type="xsd:int" />  which is  32-bit
signed integer ( according to Datatype
Reference(http://books.xmlschemata.org/relaxng/ch19-77175.html)) and
expected to be less than 2,147,483,647.
However recently Google increase number of pages counted,  e.g  it
returns about 3,120,000,000 for for word "message", which exceeded the
limit.
The value should be changed to xsd:long. Unfortunately it will break interface and client proxies will need to be rebuild against new WSDL. 
According to the
post(http://groups.google.tt/group/google.public.web-apis/msg/43def27ba969...)
Google's aware of the problem.
They have a quick a simple option just to reduce the value to return to fit 32bit (who cares if it will not be accurate for such big numbers). 

As a workaround  I am going to catch exception and if an error is like “Exception from service object: For input string: "3630000000”  re-post a query with allintitle:" at the front of your query

posted @ Friday, June 9, 2006 4:06 PM
Print

Comments on this entry:

# re: Google API returns: Exception from service object: For input string

Left by Michael Zhou at 8/8/2006 12:43 AM
Gravatar
That's good, but is there a proper solution has given?

# re: Google API returns: Exception from service object: For input string

Left by Michael Freidgeim at 8/8/2006 7:34 AM
Gravatar
Michael Zhou,
It's a question for Google. You can raise it (again) on http://groups.google.com/group/google.public.web-apis

Your comment:



(not displayed)

 
 
 
 

Live Comment Preview:

 
«December»
SunMonTueWedThuFriSat
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910