commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/latka/src/jelly latka.jelly
Date Sun, 07 Jul 2002 17:24:03 GMT
dion        2002/07/07 10:24:03

  Modified:    latka/src/jelly latka.jelly
  Log:
  tests (not yet working) for body tag
  
  Revision  Changes    Path
  1.11      +34 -0     jakarta-commons/latka/src/jelly/latka.jelly
  
  Index: latka.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/jelly/latka.jelly,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- latka.jelly	7 Jul 2002 15:07:19 -0000	1.10
  +++ latka.jelly	7 Jul 2002 17:24:03 -0000	1.11
  @@ -53,6 +53,40 @@
               header[${i}] = ${header}
           </j:forEach>
   
  +        <j:set var="googleKey" value="" />
  +        
  +        <post id="google" uri="http://api.google.com/search/beta2">
  +            <header name="Content-Type" value="text/xml"/>
  +            <body>
  +            <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">${googleKey}</key>
  +                  <q xsi:type="xsd:string">jelly java xml</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-ENV:Body>
  +            </SOAP-ENV:Envelope>
  +            </body>
  +        </post>
  +        <j:forEach items="${google.requestHeaders}" var="rHeader" indexVar="i">
  +            reqHeader[${i}] = ${rHeader}
  +        </j:forEach>
  +        
  +        google response = ${google.statusCode}, ${google.statusText}
  +        ${google.responseBodyAsString}
  +       
       </session>
     </suite>
     
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message