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:
  #1  
Old July 17th, 2002, 09:19 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Why wasn't it done using URIs, HTTP and XML?

A lot of people complained that the Google API would have been better implemented if it was controlled via querystring requests and returned the results in XML.

I agreed, so I created a service (written in pure PHP!) which does exactly that! It's not documented yet, but all you need to do is pass the required parameters (as in the Google documentation) to the URL http://xoomle.dentedreality.com.au/ and see what it returns, then go from there :)

Go to the XooMLe website:http://www.dentedreality.com.au/xoomle/ for more information.

Cheers

Beau

Reply With Quote
  #2  
Old July 21st, 2002, 07:05 PM
dkode dkode is offline
PHP/PERL/.NET Coder
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Daytona Beach, Florida
Posts: 36 dkode User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 sec
Reputation Power: 9
Send a message via AIM to dkode
changes in google api?

I beleive there has been changes to the way the google api/SOAP passes the $result array back.

Here is the print_r($result); when i attempted to do this.

stdClass Object
(
[documentFiltering] =>
[estimatedTotalResultsCount] => 4740000
[directoryCategories] => Array
(
[item] => stdClass Object
(
[specialEncoding] =>
[fullViewableName] => Top/Recreation/Pets/Cats
)

)

[searchTime] => 0.151481
[resultElements] => Array
(
[0] => stdClass Object
(
[cachedSize] => 9k
[hostName] =>
[snippet] => lib-web-<b>cats</b>. library Web pages, online catalogs, and profiles. a directory<br> of over 5,000 libraries worldwide. Maintained by Marshall Breeding <b>...</b>
[directoryCategory] => stdClass Object
(
[specialEncoding] =>
[fullViewableName] => Top/Reference/Libraries/Online_Catalogs/Directories
)

[relatedInformationPresent] => 1
[directoryTitle] => lib-web-<b>cats</b>
[summary] => Searchable database of over 4500 library web sites and online catalogs worldwide.
=> [url]http://staffweb.library...libwebcats.html
[title] => lib-web-<b>cats</b>: Search Results
)

as you can see the result array is now a stdClass Object? Does anyone know what this is or why this is happening?
__________________
"Mankind cannot define memory, yet it defines mankind"

Reply With Quote
  #3  
Old July 25th, 2002, 02:49 PM
paul.devshed paul.devshed is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Mansfield, MA
Posts: 1 paul.devshed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to paul.devshed
Good article and a warning

Very good article. I setup a little search for my "personal site":http://www.burney.ws based on the material in the site (source available)

One thing to be careful for is the order of parameters. They must be in the order listed in the tutorial or it won't work. Furthermore, all parameters must be specified.

Evidently, that is a bug in the Google API because it kind of invalidates the reason for using named keys and may even violate the SOAP protocol itself.

Reply With Quote
  #4  
Old August 20th, 2002, 10:45 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
display result in different window

Hi,

Please excuse my ignorance, but was wondering what code I need to add to the example search page, so as to get the results displayed in a different frame to which the search was done in ?

As you can see I'm very very new to php scripting, and am somewhat lost.

Thanks.

Reply With Quote
  #5  
Old November 15th, 2002, 08:01 AM
ads ads is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: India
Posts: 192 ads User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 12 m 27 sec
Reputation Power: 9
Search and Spell Check

1) Search program shows first 10 records. How to display rest matching records?
2) I am getting following ERROR in spell check program.
"
No Deserializer found to deserialize a 'http://www.w3.org/2001/XMLSchema:nil' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.
"
Is there something wrong with this code:
include("nusoap.php");
$soapclient = new soapclient("http://api.google.com/search/beta2");

Help appreciated.

Reply With Quote
  #6  
Old November 20th, 2002, 07:02 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Search and Spell Check

$params = array(
'key' => 'Google licence key',

'q' => 'Search String',

**'start' => 0**, // *i think this is the line that u should change in order to get the for n to n + 10 th results*

'maxResults' => 10,

'filter' => true,

'restrict' => '',

'safeSearch' => true,

'lr' => 'lang_en|lang_fr',

'ie' => '',

'oe' => ''

);

Reply With Quote
  #7  
Old January 17th, 2003, 11:00 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Warning: problems on IE 5.5 and 6



IE 55. sp2 and IE6 as on the date of adding this note have problems with content type gzip and caching http headers. The pages are never cached. I think this combination of http headers can also crash the browser.

see http://support.microsoft.com/default.aspx?scid=kb;en-us;321722

Reply With Quote
  #8  
Old March 1st, 2003, 03:53 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
parse error

I have copied the code to my php file and gets the error below.
I am rather new to PHP, so I have not succeeded in finding out what is wrong.
Any ideas?

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /index.php on line 19

Reply With Quote
  #9  
Old March 15th, 2003, 02:04 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Cant use this nuSOAP

May you please explain how this nuSOAP is setup to run, because I am trying to access google and there a NULL results

Reply With Quote
  #10  
Old March 18th, 2003, 09:11 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
More Results Please!! (help!)

Hey guys,

Great article, but i am having trouble getting the next ten results from google using this script. i have created a script that uses php_self in association with a "next ten results" link. This sets the start of the next set of results at 10, or 20 etc. however when i try to run it, it return an error array with this:

[faultcode] => SOAP-ENV:Server [faultstring] => Exception while handling service request: com.google.soap.search.GoogleSearchService.doGoogleSearch(java.lang.String,java.lang.String,java.lan g.String,int,boolean,java.lang.String,boolean,java.lang.String,java.lang.String,java.lang.String) -- no signature match

I have checked the variables in different places that its passing to google, but it won't work........ am i doomed to failure?

please help

thanx in advance.

Reply With Quote
  #11  
Old May 27th, 2003, 12:14 PM
Ducani
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Using The Google Web APIs With PHP

Using The Google Web APIs With PHP

July 16, 2002 - The Google Web APIs allow developers to build SOAP-based applications driven off Google's unique indexing and search capabilities. And since there are now quite a few PHP classes designed for SOAP transactions over HTTP, integrating the two has never been simpler. This article explains how.

Please discuss this article in this thread. You can read the article here .

Reply With Quote
  #12  
Old May 28th, 2003, 10:31 AM
Ducani
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
If you would like to see an article covering a particular topic, please post your request here.

Reply With Quote
  #13  
Old July 15th, 2003, 08:18 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
Exclamation No Deserializer found to deserialize

I get this error:

Quote:
No Deserializer found to deserialize a 'http://www.w3.org/2001/XMLSchema:nil' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'


and I am using pretty much the same code - include nusoap and then:

[CODE] $query = array('key' => $license_key,
'q' => $q,
'start' => $start,
'maxResults' => $num,
'filter' => 'false',
'restrict' => $restricts,
'safeSearch' => $safe,
'lr' => $lr,
'ie' => '',
'oe' => '');

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

$result = $soapclient->call("doGoogleSearch", $query, "urn:GoogleSearch", "urn:GoogleSearch");
[CODE]

Any thoughts on where the problem is sneaking in?

[edit: Added subject line]

Emps

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

Reply With Quote
  #14  
Old July 15th, 2003, 11:27 PM
melonfire melonfire is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 45 melonfire User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
what version of NUsoap are you using?

try creating a soap proxy with the proxy() methods

Reply With Quote
  #15  
Old July 16th, 2003, 11: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
melonfire: Ahhhhhhhh I downloaded the version from the link here:

http://dietrich.ganx4.com/nusoap/

Should I use the versions here (is there a zip there):

http://cvs.sourceforge.net/cgi-bin/...cgi/nusoap/lib/

I don't know what you mean about using proxy() - could you expand on that?

Emps

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-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek