Are the words 'news' and 'business' blocked, or is there a bug in the
Google API?
When using PHP 5's SoapClient and the Google API WSDL file I get
strange results for searching on 'business'. The PHP class throws an
exception, and using the __getLastResponse() function (see:
http://www.php.net/manual/en/function.soap-soapclient-getlastresponse.php)
I get the following output:
SOAP-ENV:Server Exception from service object: For input string:
"7080000000" /search/beta2 java.lang.NumberFormatException: For input
string: "7080000000" at
java.lang.NumberFormatException.forInputString(Unknown Source) at
java.lang.Integer.parseInt(Unknown Source) at
java.lang.Integer.parseInt(Unknown Source) at
com.google.soap.search.GoogleSearchService.processRES(GoogleSearchService.java:573)
at
com.google.soap.search.GoogleSearchService.processGSP(GoogleSearchService.java:503)
at
com.google.soap.search.GoogleSearchService.convertToGoogleSearchResult(GoogleSearchService.java:478)
at
com.google.soap.search.GoogleSearchService.doGoogleSearch(GoogleSearchService.java:160)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
org.apache.soap.server.RPCRouter.invoke(RPCRouter.java:146) at
org.apache.soap.providers.RPCJavaProvider.invoke(RPCJavaProvider.java:129)
at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:288)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at
com.google.gse.HttpConnection.runServlet(HttpConnection.java:436) at
com.google.gse.HttpConnection.run(HttpConnection.java:376) at
com.google.gse.DispatchQueue$WorkerThread.run(DispatchQueue.java:254)
Which looks like a problem in the Java code serving the API? Or am I
doing something wrong here?
Tomas
Is there a bugreport page? Or e-mailaddress? As this should be fixed
then.
Manfred
This is so frustrating, using the Google APIs.
Compared to Google APIs, MSN Search APIs are a lot better designed.