search api throws NumberFormatException sometimes

Discussion in 'Google API' started by cpp_start, May 22, 2006.

  1. #1
    Hi!

    My php-based keyword tool works normaly good, but now i found that for some keywords it throws NumberFormatExceptions.

    for example the following request always throws an NumberFormatException:

    <?xml version='1.0' encoding='UTF-8'?>
    
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
    <SOAP-ENV:Body>
    <ns1:doGoogleSearch xmlns:ns1="urn:GoogleSearch" 
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <key xsi:type="xsd:string">API_KEY_REMOVED</key>
    <q xsi:type="xsd:string">events</q>
    <start xsi:type="xsd:int">0</start>
    <maxResults xsi:type="xsd:int">10</maxResults>
    <filter xsi:type="xsd:boolean">true</filter>
    <restrict xsi:type="xsd:string"></restrict>
    <safeSearch xsi:type="xsd:boolean">false</safeSearch>
    <lr xsi:type="xsd:string"></lr>
    <ie xsi:type="xsd:string"></ie>
    <oe xsi:type="xsd:string"></oe>
    </ns1:doGoogleSearch>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Code (markup):

    its reproducable! if i replace the "events" by an other word it works.


    the error message is someting like:
    java.lang.NumberFormatException: For input string: &quot;5410000000&quot;

    the same with nusoap-wrapped request.

    do you experiece same problems with some keywords?

    greets
     
    cpp_start, May 22, 2006 IP