Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #16  
Old July 16th, 2003, 10:39 PM
lachupacabra lachupacabra is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 7 lachupacabra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
SOLVED : no deserializer used to deserialize

I found the answer to this problem in the NuSoap mailing lists. I highly recommend joining that list, primarily because the code in this article has not been updated to be compatible with the new versions of NuSoap.

I tried to find the answer for you, but the search engine has been down (as usual) on Sourceforge. The question has been asked several times, so looking through the archives should be pretty productive -- at least it was for me.

I apologize for not remembering exactly what you had to do -- as I recall it had something to do with a null value being passed in the WDSL (DON"T quote me on that), but I did solve the problem with the help of the mailing lists.

FFR, beware of code on web sites that hasn't been revised in a couple of years.

Caveat HAX0R,
grant stevens
L-EET Web Services
http://www.l-eet.com/

Reply With Quote
  #17  
Old July 17th, 2003, 07:16 AM
Emperor Emperor is offline
Divine Wind
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Mongo
Posts: 24 Emperor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Emperor
Talking Null value solution

lachupacabra: Cheers that was the tip I needed:

http://sourceforge.net/mailarchive/...?msg_id=3771854

In case it goes down or something the reply, from Scott Nichol, is:

Quote:
The "nil" implies to me you are sending a null value for a parameter.
I think that NuSOAP sends this incorrectly. Look for the line of
code

$xml .= "<$name$xmlns xsi:type=\"xsd:nil\"/>";

and replace it with

$xml .= "<$name$xmlns xsi:nil=\"true\"/>";

Google may handle this better.

Of course, if you are not trying to send a null value for a
parameter, you should check your code to understand why it is sending
a nil.


LOL I see you dropped a comment in too:

Quote:
The above suggestion works. The other suggestion, don't use DevShed tutorial code: they do
nothing to maintain it.


from:

http://sourceforge.net/mailarchive/...?msg_id=5204687

Hopefully this thread (and similar ones) should help correct that problem

[edit: added subject line]

Emps

Last edited by Emperor : July 17th, 2003 at 01:50 PM.

Reply With Quote
  #18  
Old July 17th, 2003, 07:25 AM
Jcaputo's Avatar
Jcaputo Jcaputo is offline
Kiss My Converse!
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2003
Location: Davie, Florida
Posts: 1,520 Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 19 h 26 m 5 sec
Reputation Power: 334
Good job guys, way to get to the bottom of it.

Reply With Quote
  #19  
Old July 17th, 2003, 07:37 AM
Emperor Emperor is offline
Divine Wind
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Mongo
Posts: 24 Emperor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Emperor
Exclamation Exception while handling service request

And that did fix the problem (the line in the version I'm using is 219) and now it moves me on to the next one:

Quote:
Exception while handling service request: com.google.soap.search.GoogleSearchService.doGoogleSearch(java.lang.String,java.lang.String,java.lan g.String,int,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,ja va.lang.String) -- no signature match


I'll keep digging on this one.......

[edit: Hmmmmm it is mentioned here:

http://ws.apache.org/soap/docs/trouble/

Coo while searching for an answer I got this thread and the, unresolved, issue from above - I presume this is related.

I suspect something I'm passing in is causing it to choke so I'll echo ou all my parameters and see if anything obvious jumps out.]

[edit: added subject line]

Emps

Last edited by Emperor : July 17th, 2003 at 01:30 PM.

Reply With Quote
  #20  
Old July 17th, 2003, 10:07 AM
lachupacabra lachupacabra is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 7 lachupacabra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Arrow

AAAAHH! I thought my comments that I posted on an Internet forum were private and confidential! [] At least I thought for sure no one would read them. []

on the java error message ... are you using the googleapi.jar that comes with the zip file from google?

(that may be a little off topic, but if you don't want to move it, that's your prerogative)

I do get weird error messages like that in java, when either i am trying to run an app using the .jar from somewhere else or my PATH variable is inadequate (I'm assuming that your desktop is windows ... actually the real source of all your problems ).
If you are using the API stuff that Google provides, start with the java example they provide ... it worked the first time for me.


MODERATOR NOTE: you may want to move these two posts to a java forum, where they would be of more use later on as well as be visible to eyes that could be a bigger help than me.

grant stevens
L-EET Web Services
http://www.l-eet.com/

Reply With Quote
  #21  
Old July 17th, 2003, 10:09 AM
lachupacabra lachupacabra is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 7 lachupacabra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
*blush* i should have clicked on that link. It is for sure a CLASSPATH thing. but try running it from the directory the jar is in, or at least do that with the downloaded Google example.

Reply With Quote
  #22  
Old July 17th, 2003, 12:05 PM
Emperor Emperor is offline
Divine Wind
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Mongo
Posts: 24 Emperor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Emperor
Question Java confusion

lachupacabra: Now I am confused - you said:

Quote:
on the java error message ... are you using the googleapi.jar that comes with the zip file from google?


but I am using nuSOAP and didn't think I needed to use any Java (at least at my end). In fact the tutorial suggests that grabbing the API was optional:

Quote:
While you're on the Google site, you might also want to download the Google Web API developer kit, which contains numerous examples of how the Web APIs can be used on the Java and .NET platforms. It doesn't have anything on PHP yet - but hey, that's why you're reading this article, isn't it?


from:

http://www.devshed.com/Server_Side/...eAPI/page3.html

Have I missed something in the tutorial? I've just skimmed through it again and can't find anything more specific than the bit I quote above.

-------
Quote:
AAAAHH! I thought my comments that I posted on an Internet forum were private and confidential! [] At least I thought for sure no one would read them. []


I'll bear that in mind next time

[edit: added subject line]

Emps

Last edited by Emperor : July 17th, 2003 at 01:31 PM.

Reply With Quote
  #23  
Old July 17th, 2003, 01:29 PM
Emperor Emperor is offline
Divine Wind
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Mongo
Posts: 24 Emperor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Emperor
Talking Swapping Java -> WSDL

I decided to swap:

Quote:
$soapclient = new soapclient("http://api.google.com/search/beta2");


for:

Code:
$soapclient = new soapclient('http://api.google.com/GoogleSearch.wsdl', 'wsdl');


and a quick test:

Code:
print("<pre>");
print_r($result['resultElements']);
print("</pre>");


reveals it is returning the goodies.

Hope that helps anyone having similar problems.

[edit: added subject line]

Emps

Last edited by Emperor : July 17th, 2003 at 01:32 PM.

Reply With Quote
  #24  
Old July 18th, 2003, 12:19 PM
lachupacabra lachupacabra is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 7 lachupacabra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
aaaah, many apologies ... I didn't realize you were giving output from a PHP SOAP client (which makes a lot more sense than my interpretation).

Over the past month, there has been quite a bit of active development (read : bugifxes) to the WSDL behavior of NuSoap.

Now I have a question for you: the other change you so that a null value could be passed in is directly related to the parameter that you added. Did you have to apply both changes to get it to work ... or would the second change alone do the trick? If you pass in that parameter then I don't think the code you added before gets evaluated in.

I'm only asking because that extra parameter may be a more elegant solution than going in and changing the NuSoap class.

Let me know,
grant stevens
L-EET Web Services
Open Source E-Commerce on Linux
http://www.l-eet.com/

Reply With Quote
  #25  
Old July 18th, 2003, 06:15 PM
Emperor Emperor is offline
Divine Wind
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Mongo
Posts: 24 Emperor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Emperor
lachupacabra: I'm afraid I'm not able to find out - the script I was putting together is designed to detect when someone visits from Google, find out what their search terms were and then feed them back in the Google API to find out what your exact ranking is for that page (my thinking is that you can check your pages against certain search terms but it might be good to monitor what terms people are actually using and how your ranking changes over time, etc.). So the connection to the Google API only happens when a new search term is detected (or it has been a week since the last update) so I'd need to find a new search term for the test page or empty the database tables sooo........

If no one else has jumped in by next week I'll change things back and do the test again.

Emps

Reply With Quote
  #26  
Old July 28th, 2003, 08:12 PM
virtuebios virtuebios is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Uptown Sedona Az
Posts: 8 virtuebios User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 17 sec
Reputation Power: 0
Reverse Engineering the Evolution Code - ElectricNet

Subj: Reverse Engineering the Evolution Code - ElectricNet

Part of the quickening is that human intention has reached 18,000 mph in space and 186,000 miles per/second on the internet. However, most persons are era myoptic so they can't well grock the full implications of the pending coordinated universal intent.

Humanity is an operating system sponsored by dna. 6,345,000,000 participants are creating an intention vector sum which can be understood eventually by watching the impact of technology upon health and life span. The sum of all Human Intention is the main operating system of the evolution of survival aptitude.

Windows XP and everything competive or assisting is still in the metaphor of intent relevance and its impact upon dna goals will evolve more rapidly.

Who has the ability to help me wire up the one mind and "write the code" for the virtuebios, evolving electronic feedback on mandatory immortalisation strategies International.

Computer assisted intention relevance will be/is foundational in Mortality Resolution International.
My "credentials" are performance based, of course, and a little humor.

Please check out a Google Search: [most conscious] and [virtuebios] if you want to give this a try. I can use help from all persons.

Thanks

Reply With Quote
  #27  
Old July 31st, 2003, 10:49 AM
Emperor Emperor is offline
Divine Wind
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Mongo
Posts: 24 Emperor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Emperor
lachupacabra: It looks like those changes to nusoap aren't required if you use the WDSL file. I've changed nusoap back and it seems to be working fine.

Hope that helps people out there.

Emps

Reply With Quote
  #28  
Old July 31st, 2003, 12:13 PM
lachupacabra lachupacabra is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 7 lachupacabra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
CLOSED: nusoap and wsdl

emp-
thanks for the incredibly productive dialog.

using WSDL with NuSoap has come a long way, and is certainly the way to go for a number of reasons.

Now, if only we could get DevShed to let us rewrite that article and spare hundreds of people the same experience

grant stevens
L-EET Web Services
http://www.l-eet.com/

Reply With Quote
  #29  
Old August 2nd, 2003, 12:10 PM
Emperor Emperor is offline
Divine Wind
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Mongo
Posts: 24 Emperor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Emperor
Rewriting?

lachupacabra:

Quote:
Now, if only we could get DevShed to let us rewrite that article and spare hundreds of people the same experience


Ahhhhhhhhh but that is what these comments are for so people can play with things and give feedback or ideas for improving and adapting the ideas - I don't think it would be wise to keep rewriting a tutorial when we have the means to keep things updated through the comments.

Thanks for the tips that helped get things moving here - it has proved very interesting and useful.

The Devil is always in the details..............

Emps

Reply With Quote
  #30  
Old November 16th, 2004, 02:28 AM
JessJenn's Avatar
JessJenn JessJenn is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 134 JessJenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 44 sec
Reputation Power: 8
Error in Spellchecker sample

I'm trying to run the spellchecker sample code found at: http://www.devshed.com/c/a/PHP/Using-The-Google-Web-APIs-With-PHP/6/

and I'm getting this error when I put in the word "star" in the textbox:

Notice: Undefined index: faultstring in E:\wwwinetput\spellcheck\exp3.php on line 39
Google suggests Array for the term star

Any thoughts? Thanks!

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Using The Google Web APIs With PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 7 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek