Geeks With Blogs

Michael Freidgeim's Blog MS .Net Development

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 on Friday, June 9, 2006 4:06 PM | Back to top


Comments on this post: Google API returns: Exception from service object: For input string

# re: Google API returns: Exception from service object: For input string
Requesting Gravatar...
That's good, but is there a proper solution has given?
Left by Michael Zhou on Aug 08, 2006 12:43 AM

# re: Google API returns: Exception from service object: For input string
Requesting Gravatar...
Michael Zhou,
It's a question for Google. You can raise it (again) on http://groups.google.com/group/google.public.web-apis
Left by Michael Freidgeim on Aug 08, 2006 7:34 AM

Your comment:
 (will show your gravatar)


Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net | Join free