cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivelin Ivanov" <ive...@apache.org>
Subject Re: Google Web APIs and Cocoon
Date Fri, 19 Apr 2002 13:21:29 GMT

Thanks for the nice example.
It should be part of the users intro doc to Cocoon.


----- Original Message -----
From: "Ugo Cei" <u.cei@cbim.it>
To: <cocoon-dev@xml.apache.org>
Cc: <cocoon-users@xml.apache.org>
Sent: Friday, April 19, 2002 3:21 AM
Subject: Re: Google Web APIs and Cocoon


> Ugo Cei wrote:
> > Thanks to the SOAP taglib, using the Google Web APIs from Cocoon is as
> > simple as taking the attached XSP file, filling in your Google key
>
> Oops! As usual, I forgot to attach the file. Here it goes.
>
> --
> Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
> P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
> Phone: +39.0382.525100 - E-mail: u.cei@cbim.it
>


----------------------------------------------------------------------------
----


> <?xml version="1.0" encoding="UTF-8"?>
> <xsp:page
>   language="java"
>   xmlns:xsp="http://apache.org/xsp"
>   xmlns:xsp-request="http://apache.org/xsp/request/2.0"
>   xmlns:soap="http://apache.org/xsp/soap/3.0"
>   >
>
>   <search-results>
>     <soap:call url="http://api.google.com:80/search/beta2"
>             xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
>             xmlns:xsd="http://www.w3.org/1999/XMLSchema">
>       <ns1:doGoogleSearch xmlns:ns1="urn:GoogleSearch">
>         <key xsi:type="xsd:string">GETYOURSELFAKEY</key>
>         <q xsi:type="xsd:string"><xsp-request:get-parameter name="q"/></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">latin1</ie>
>         <oe xsi:type="xsd:string">latin1</oe>
>       </ns1:doGoogleSearch>
>     </soap:call>
>   </search-results>
> </xsp:page>
>
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message