bdelacretaz    2003/09/22 00:41:48

  Modified:    src/blocks/axis/samples status.xsl status.xsp
  Log:
  Perl client example added to axis block status page
  
  Revision  Changes    Path
  1.2       +27 -4     cocoon-2.1/src/blocks/axis/samples/status.xsl
  
  Index: status.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/axis/samples/status.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- status.xsl        15 Mar 2003 22:21:55 -0000      1.1
  +++ status.xsl        22 Sep 2003 07:41:48 -0000      1.2
  @@ -6,17 +6,27 @@
       xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";
       xmlns:a="http://xml.apache.org/axis/wsdd/";>
       
  -    <xsl:template match="/page/soapenv:Envelope/soapenv:Body/a:deployment">
  +    <xsl:template match="/">
           <html>
               <head>
  -                <title>SOAP Server</title>
  +                <title>Cocoon as a SOAP Server</title>
  +             <link rel="stylesheet" type="text/css" href="/styles/main.css"/>
               </head>
           <body>
               <center><h1>Cocoon SOAP Server Status</h1></center>
   
               <hr/>
   
  -            <p>Welcome to the Cocoon SOAP server status page</p>
  +            <p>
  +             Welcome to the Cocoon SOAP server status page.
  +            </p>
  +            <p>
  +             These samples use 
  +             <a href="http://ws.apache.org/axis/";>Apache Axis</a> to give 
access to
  +             Cocoon components via SOAP.
  +         </p>
  +
  +            <h2>Active services</h2>
   
               <p>
                   The SOAP server is currently active and the following
  @@ -25,9 +35,10 @@
   
               <p>
                   <ul>
  -                    <xsl:apply-templates select="a:service"/>
  +                    <xsl:apply-templates 
select="/page/soapenv:Envelope/soapenv:Body/a:deployment/a:service"/>
                   </ul>
               </p>
  +            <xsl:apply-templates select="//calling-examples"/>
           </body>
        </html>
       </xsl:template>
  @@ -58,6 +69,18 @@
   
       <xsl:template match="a:parameter">
           <i><xsl:value-of select="@value"/></i>
  +    </xsl:template>
  +
  +    <xsl:template match="calling-examples">
  +     <h2>Client examples</h2>
  +     <xsl:apply-templates select="example"/>
  +    </xsl:template>
  +
  +    <xsl:template match="example">
  +     <h3>Example using <xsl:value-of select="@language"/></h3>
  +     <pre>
  +             <xsl:value-of select="."/>
  +     </pre>
       </xsl:template>
   
   </xsl:stylesheet>
  
  
  
  1.2       +15 -0     cocoon-2.1/src/blocks/axis/samples/status.xsp
  
  Index: status.xsp
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/axis/samples/status.xsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- status.xsp        15 Mar 2003 22:21:55 -0000      1.1
  +++ status.xsp        22 Sep 2003 07:41:48 -0000      1.2
  @@ -10,5 +10,20 @@
     <soap:call method="AdminService" url="rpcrouter">
       <m:list xmlns:m="http://xml.apache.org/axis/wsdd/"/>
     </soap:call>
  +
  +<calling-examples>
  +<example language="perl with SOAP::Lite">
  +#!/usr/bin/perl
  +print 'Testing Cocoon SOAP call, you should see your OS name here: ';
  +use SOAP::Lite;
  +  print SOAP::Lite
  +    -> uri('Cocoon-JVM-System')
  +    -> proxy('http://localhost:8888/samples/axis/rpcrouter')
  +    -> getOperatingSystem()
  +    -> result;
  +print "\n";
  +</example>
  +</calling-examples>
  +
   </page>
   </xsp:page>
  
  
  

Reply via email to