You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2003/01/16 23:56:09 UTC

cvs commit: jakarta-commons-sandbox/jelly/jelly-tags/http project.xml

dion        2003/01/16 14:56:09

  Modified:    jelly/jelly-tags/http project.xml
  Added:       jelly/jelly-tags/http/src/test/org/apache/commons/jelly/google
                        defineTags.jelly search.jelly
  Log:
  Moved from core, as it wasn't being used, and belonged here
  Added new dependency on define tag lib for testing
  
  Revision  Changes    Path
  1.1                  jakarta-commons-sandbox/jelly/jelly-tags/http/src/test/org/apache/commons/jelly/google/defineTags.jelly
  
  Index: defineTags.jelly
  ===================================================================
  <?xml version="1.0"?>
  
  <!-- 
   ! FIXME: move to define/http taglib
   !-->
  <!-- defines a new taglib of babelfish soap services -->
  
  <j:jelly xmlns:j="jelly:core" xmlns:define="jelly:define" xmlns:http="jelly:http">
    <define:taglib uri="jelly:babelfish">  
  
  
      <!-- defines the <search> tag  -->
      <define:tag name="search">
        <j:if test="${key == null}">
        	<j:set var="key" value="00000000000"/>
        </j:if>      
        <http:post url="http://www.google.com/soap">
         <http:header name="SOAPAction" value="urn:GoogleSearch"/>
         <http:header name="Content-Type" value="text/xml"/>
         <http: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">${query}</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>
         </http:body>
        </http:post>
      </define:tag>
      
    </define:taglib>    
  </j:jelly>
  
  
  
  1.1                  jakarta-commons-sandbox/jelly/jelly-tags/http/src/test/org/apache/commons/jelly/google/search.jelly
  
  Index: search.jelly
  ===================================================================
  <?xml version='1.0' encoding='UTF-8'?>
  <!-- 
   ! FIXME: Move to define/http tag lib
   !-->
  <j:jelly xmlns:j="jelly:core" xmlns:http="jelly:http">
  
  <http:post uri="http://api.google.com/search/beta2">
  <http: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>
  </http:body>
  </http:post>
  
  </j:jelly>
  
  
  1.6       +10 -3     jakarta-commons-sandbox/jelly/jelly-tags/http/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/jelly-tags/http/project.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- project.xml	7 Jan 2003 03:39:11 -0000	1.5
  +++ project.xml	16 Jan 2003 22:56:09 -0000	1.6
  @@ -31,13 +31,20 @@
         <id>commons-jelly</id>
         <version>SNAPSHOT</version>
       </dependency>
  -  
  -	<!-- http taglib -->
  +
       <dependency>
         <id>commons-httpclient</id>
         <version>SNAPSHOT</version>
       </dependency>
  -    
  +
  +    <!--  testing -->
  +    <dependency>
  +      <groupId>commons-jelly</groupId>
  +      <artifactId>commons-jelly-tags-define</artifactId>
  +      <version>SNAPSHOT</version>
  +      <url>http://jakarta.apache.org/commons/sandbox/jelly/tags/define/</url>
  +    </dependency>
  +
     </dependencies>
     
   </project>
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>