Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Probleme in desirialysing.

36 views
Skip to first unread message

dwa...@e-parkos.com

unread,
Aug 18, 2005, 8:33:21 AM8/18/05
to
Hi 'googple api' users.

I used to run many programs to query the google web service.

I wrote my programs from the WSDL file using gSoap(2.5.7).
But, I now face some errors when trying to query your webservice:


"No Deserializer found to deserialize a ':key' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'."

It may be due to some erros in my programs, but theses queries used to
be valid some days ago.

Does anyone meet the same problem?
Any suggestions to resolv it ??

Thaks !!

nfini...@gmail.com

unread,
Aug 18, 2005, 11:11:38 AM8/18/05
to
I am using MSSOAP.SoapClient30 and am also having the same issue. It
was working for several months and suddenly just stopped with the same
deseralization error. Any help would be much appreaciated as our site
search is now down. :(

dhottinger

unread,
Aug 18, 2005, 9:01:55 PM8/18/05
to
I am getting the same problem Just started a couple of weeks ago.
Anyone found a fix yet? I took the search feature off of my web page.
Google doesnt seem to have any help for this. Has to be a change on
their end, I havent changed anything on mine.

ddh

dwa...@e-parkos.com

unread,
Aug 19, 2005, 8:16:57 AM8/19/05
to
well..
I sent a email too google team for this API, and non response.....

and I don't find any solution to this problem....

matt

unread,
Aug 19, 2005, 11:39:08 AM8/19/05
to
OK, so I had the same problem, but I have things working again! I dug
around in the library that I am using (ruby/google) for hours on end
and started playing around with things. It turns out that some of the
parameters (lr, ie, oe) that were blank in my queries were being sent
to my soap library as nil (i'm still not sure what the final difference
in the soap message after being processed by the soap4r library was),
so I changed those from nil to "" (empty quotes) and ta-da everything
worked! Hope that helps. If I have time this week I am going to run
some tesst and see what the actual difference in the soap message sent
to google is.

--dustin

dhottinger

unread,
Aug 20, 2005, 6:45:40 PM8/20/05
to
Wish I could say that was my problem. I already have quotes in those
fields. Please post if you find anything else.

ddh

dwartel

unread,
Aug 22, 2005, 3:32:46 AM8/22/05
to
very interesting matt!
could I ask you to post your sent request ? (dont forget to mask your
google key !!)

here is mine:
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="urn:GoogleSearch"><SOAP-ENV:Body
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><ns1:doGoogleSearch><key>***hidden***</key><q>car</q><start>0</start><maxResults>10</maxResults><filter>true</filter><restrict
href="#_3"/><safeSearch>false</safeSearch><lr href="#_3"/><ie
href="#_4"/><oe href="#_4"/></ns1:doGoogleSearch><id id="_4"
xsi:type="xsd:string">latin1</id><id id="_3"
xsi:type="xsd:string"></id></SOAP-ENV:Body></SOAP-ENV:Envelope>


I'll try with "" for null parameters !

qinf

unread,
Aug 23, 2005, 7:33:07 AM8/23/05
to
I am getting the same problem.
I found all fields are xsi:type="" in gsoap envelop.
Therefore I modified soap_out_ns1__doGoogleSearch and
soap_out_ns1__doGetCachedPage in soapC.cpp.

For example, the following code:

soap_out_std__string(soap, "key", -1, &a->key, "");

should be:

soap_out_std__string(soap, "key", -1, &a->key, "xsd:string");

And other fields sholud do like this.

DigitalSkyline

unread,
Aug 24, 2005, 7:00:21 PM8/24/05
to
same error... I see some have found solutions but I'm still unclear as
to the problem.

Still not working for me :(

dwartel

unread,
Aug 25, 2005, 3:39:21 AM8/25/05
to
still facing the error :(

qinf

unread,
Aug 25, 2005, 4:16:14 AM8/25/05
to
Please try my gsoap sample.


http://muffin.cias.osakafu-u.ac.jp/~matumoto/prog/google_gsoap_test.zip

Please note that soapC.cpp is modified(mentioned above).
I use gsoap-2.7.0. Check your gsoap version.

Ekrem Teymur

unread,
Aug 25, 2005, 7:45:01 AM8/25/05
to
I have the same problem. and found NO SOLUTION.

dwartel

unread,
Aug 25, 2005, 7:47:22 AM8/25/05
to
thanq qinf.. I'll try it as soon as possible.
do you have a shot of your sent request???
mine is 3 posts up... and doen't work...

I have also compile the googe exmaple given by the GSoap 2.5.7
package... and the same error occurs :(

andrea.m

unread,
Aug 25, 2005, 11:41:54 AM8/25/05
to
Having same problem here. If anyone found a solution I'd be very
grateful.

andrea.m

unread,
Aug 25, 2005, 11:57:01 AM8/25/05
to
For one thing, http://schemas.xmlsoap.org/soap/encoding/' points to
nothing. Could this be the problem?

dhottinger

unread,
Aug 25, 2005, 5:19:21 PM8/25/05
to
I was wondering the same thing. But without some input from google, I
dont know what to change it to. If they have changed something, maybe
they could point us all in the write direction. I havent had to much
time to work on this, been real busy with other issues. I wonder how
many people got blindsided by this one.

ddh

roundnemo

unread,
Aug 26, 2005, 5:52:31 AM8/26/05
to
I had the same problem, but fixed it now. qinf is right. I modified the
soapC.c as qinf mentioned. I tried following steps.

1. Updated the gsoap to the latest version 2.7.6a.

2. Regenerate the soap stub routines with the updated gsoap compiler.

3. Modified the generated soapC.c as qinf mentioned.

In soap_out_api__doGoogleSearch,
soap_out_xsd__string(soap, "key", -1, &a->key, "") is modified to
soap_out_xsd__string(soap, "key", -1, &a->key, "xsd:string"), and

soap_out_xsd__int(soap, "start", -1, &a->start, "") is modified to
soap_out_xsd__int(soap, "start", -1, &a->start, "xsd:int"), and so on.

4. Compiled the codes, run and congratulated myself.

Although these steps might not be efficient, they are effective. Thanks
qinf.

DigitalSkyline

unread,
Aug 26, 2005, 1:57:15 PM8/26/05
to
What is that Java?

My problem in in ASP using MSSOAP30, same error.

andrea.m

unread,
Aug 29, 2005, 11:35:54 AM8/29/05
to
Thanks, but I am using Sebastian Bergmann's php class SOAP_Google,
which uses PEAR/SOAP. Anybody can get that working? I find no trace of
xsd in that code.

Thanks!

Moti

unread,
Sep 12, 2005, 8:21:15 AM9/12/05
to
I've had this problem too.
It is caused by SOAP Clients not specifying the data types of the
parameters. It worked OK before but Google must have changed something
lately.

Anyway, I am using MSSOAP.SoapClient via VB.
To fix this problem I've changed GoogleSearch.wsdl
Specifying the type as xsd:anyType makes the MSSOAP.SoapClient specify
the data type supplied via the code, which is apparently what Google
wants.

My definition of doGoogleSearch is now:

<message name="doGoogleSearch">
<part name="key" type="xsd:anyType"/>
<part name="q" type="xsd:anyType"/>
<part name="start" type="xsd:anyType"/>
<part name="maxResults" type="xsd:anyType"/>
<part name="filter" type="xsd:anyType"/>
<part name="restrict" type="xsd:anyType"/>
<part name="safeSearch" type="xsd:anyType"/>
<part name="lr" type="xsd:anyType"/>
<part name="ie" type="xsd:anyType"/>
<part name="oe" type="xsd:anyType"/>
</message>

Hope it helps you guys.

0 new messages