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 Mon, 08 Jul 2002 01:48:42 GMT
dion        2002/07/07 18:48:42

  Modified:    latka/src/jelly latka.jelly
  Log:
  Comments and other tests
  
  Revision  Changes    Path
  1.12      +24 -22    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.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- latka.jelly	7 Jul 2002 17:24:03 -0000	1.11
  +++ latka.jelly	8 Jul 2002 01:48:42 -0000	1.12
  @@ -1,12 +1,14 @@
   <?xml version="1.0"?>
   <j:jelly
       xmlns:j="jelly:core"
  -    xmlns="jelly:org.apache.commons.latka.jelly.LatkaTagLibrary">
  +    xmlns="jelly:org.apache.commons.latka.jelly.LatkaTagLibrary"
  +    >
   
     <suite>
  -    <session>
  +    <session proxyHost="1.1.1.205" proxyPort="8080">
  +    <!--<session proxyHost="1.1.1.205" proxyPort="8080">-->
           <get id="mtc" uri="http://www.multitask.com.au/"/>
  -        <j:if test="${mtc.statusCode == 200}">
  +        <j:if test='${mtc.statusCode == 200}'>
               request ok
           </j:if>
           Results for mtc url are: http return code = ${mtc.statusCode}
  @@ -34,8 +36,8 @@
           <post id="jdc" uri="http://developer.java.sun.com/servlet/SessionServlet">
               <parameter name="action" value="login" />
               <parameter name="url" value="/developer/index.jshtml" />
  -            <parameter name="UserId" value="XXX" />
  -            <parameter name="Password" value="XXX" />
  +            <parameter name="UserId" value="XXXX" />
  +            <parameter name="Password" value="XXXX" />
           </post>
           jdc login result = ${jdc.statusCode}
           good login = ${jdc.responseBodyAsString.indexOf("Sorry!") == "-1"}
  @@ -53,31 +55,31 @@
               header[${i}] = ${header}
           </j:forEach>
   
  -        <j:set var="googleKey" value="" />
  +        <j:set var="googleKey" value="00000000000000000000000000000000" />
           
           <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/"
  +            <env:Envelope
  +                xmlns: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>
  +              <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>
  +                     env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  +                  <ns1:key xsi:type="xsd:string">${googleKey}</ns1:key>
  +                  <ns1:q xsi:type="xsd:string">jelly java xml</ns1:q>
  +                  <ns1:start xsi:type="xsd:int">0</ns1:start>
  +                  <ns1:maxResults xsi:type="xsd:int">10</ns1:maxResults>
  +                  <ns1:filter xsi:type="xsd:boolean">true</ns1:filter>
  +                  <ns1:restrict xsi:type="xsd:string"></ns1:restrict>
  +                  <ns1:safeSearch xsi:type="xsd:boolean">false</ns1:safeSearch>
  +                  <ns1:lr xsi:type="xsd:string"></ns1:lr>
  +                  <ns1:ie xsi:type="xsd:string">latin1</ns1:ie>
  +                  <ns1:oe xsi:type="xsd:string">latin1</ns1:oe>
                   </ns1:doGoogleSearch>
  -              </SOAP-ENV:Body>
  -            </SOAP-ENV:Envelope>
  +              </env:Body>
  +            </env:Envelope>
               </body>
           </post>
           <j:forEach items="${google.requestHeaders}" var="rHeader" indexVar="i">
  
  
  

--
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