jaliya      2005/06/10 04:38:09

  Modified:    sandesha/samples README.txt
  Added:       sandesha/samples ClientDeploy.wsdd DeployClient.bat
                        DeployService.bat RMSampleServiceDeploy.wsdd
                        RunSimpleAxisServer.bat RunTCPMon.bat build.xml
                        client-config.wsdd server-config.wsdd
  Log:
  Moved the samples to the samples directory
  
  Revision  Changes    Path
  1.3       +1 -3      ws-fx/sandesha/samples/README.txt
  
  Index: README.txt
  ===================================================================
  RCS file: /home/cvs/ws-fx/sandesha/samples/README.txt,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- README.txt        24 May 2005 06:07:39 -0000      1.2
  +++ README.txt        10 Jun 2005 11:38:08 -0000      1.3
  @@ -1,3 +1 @@
  -Placeholder for samples code
  -
  -Currently check ../interop for samples related to Interop.
  +Sandesha Samples. Please 
  
  
  
  1.1                  ws-fx/sandesha/samples/ClientDeploy.wsdd
  
  Index: ClientDeploy.wsdd
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- 
======================================================================================
  /*
  * Copyright 1999-2004 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  * use this file except in compliance with the License. You may obtain a copy 
of
  * the License at
  *
  * http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  * License for the specific language governing permissions and limitations 
under
  * the License.
  *
  */
  
======================================================================================
 -->
  
  <!--
     This deploy configuration will create the client-config.wsdd with 
RMTransport as the
     Transport for request messages.
  -->
  
  <deployment name="test" xmlns="http://xml.apache.org/axis/wsdd/"; 
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
      <handler name="RMSender" type="java:org.apache.sandesha.client.RMSender"/>
      <transport name="RMTransport" pivot="RMSender"/>
  </deployment>
  
  
  
  1.1                  ws-fx/sandesha/samples/DeployClient.bat
  
  Index: DeployClient.bat
  ===================================================================
  @echo off
  set CLASSPATH=%CLASSPATH%;..\lib\addressing-SNAPSHOT.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-1.2-RC2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-ant-1.2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-jaxrpc-1.2-RC2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-saaj-1.2-RC2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\commons-discovery-0.2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\commons-logging-1.0.3.jar
  set CLASSPATH=%CLASSPATH%;..\lib\junit-3.8.1.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-wsdl4j-1.2-RC1.jar
  set CLASSPATH=%CLASSPATH%;..\lib\log4j-1.2.8.jar
  set CLASSPATH=%CLASSPATH%;..\lib\xerces.jar
  if  exist  ..\Sandesha-beta.jar goto  jarfoundinroot
  if  exist  ..\target\Sandesha-beta.jar goto  jarfoundintarget
  echo Cannot find the Sandesha-beta.jar.
  echo If you are using the source distribution, please build the source using 
maven before running the samples
  pause
  goto end
  
  :jarfoundinroot
  set CLASSPATH=%CLASSPATH%;..\Sandesha-beta.jar;
  
  :jarfoundintarget
  set CLASSPATH=%CLASSPATH%;..\target\Sandesha-beta.jar;
  
  java org.apache.axis.utils.Admin client ClientDeploy.wsdd
  :end
  
  
  1.1                  ws-fx/sandesha/samples/DeployService.bat
  
  Index: DeployService.bat
  ===================================================================
  @echo off
  set CLASSPATH=%CLASSPATH%;..\lib\addressing-SNAPSHOT.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-1.2-RC2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-ant-1.2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-jaxrpc-1.2-RC2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-saaj-1.2-RC2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\commons-discovery-0.2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\commons-logging-1.0.3.jar
  set CLASSPATH=%CLASSPATH%;..\lib\junit-3.8.1.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-wsdl4j-1.2-RC1.jar
  set CLASSPATH=%CLASSPATH%;..\lib\log4j-1.2.8.jar
  set CLASSPATH=%CLASSPATH%;..\lib\xerces.jar
  if  exist  ..\Sandesha-beta.jar goto  jarfoundinroot
  if  exist  ..\target\Sandesha-beta.jar goto  jarfoundintarget
  echo Cannot find the Sandesha-beta.jar.
  echo If you are using the source distribution, please build the source using 
maven before running the samples
  pause
  goto end
  
  :jarfoundinroot
  set CLASSPATH=%CLASSPATH%;..\Sandesha-beta.jar;
  
  :jarfoundintarget
  set CLASSPATH=%CLASSPATH%;..\target\Sandesha-beta.jar;
  
  java org.apache.axis.client.AdminClient RMSampleServiceDeploy.wsdd
  :end
  
  
  1.1                  ws-fx/sandesha/samples/RMSampleServiceDeploy.wsdd
  
  Index: RMSampleServiceDeploy.wsdd
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- 
======================================================================================
  /*
  * Copyright 1999-2004 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  * use this file except in compliance with the License. You may obtain a copy 
of
  * the License at
  *
  * http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  * License for the specific language governing permissions and limitations 
under
  * the License.
  *
  */
  
======================================================================================
 -->
  
  <deployment xmlns="http://xml.apache.org/axis/wsdd/"; 
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
  
      <service name="RMInteropService" provider="Handler">
          <requestFlow>
              <handler 
type="java:org.apache.sandesha.ws.rm.handlers.RMServerRequestHandler"></handler>
              <handler 
type="java:org.apache.axis.message.addressing.handler.AddressingHandler"></handler>
          </requestFlow>
  
          <parameter name="handlerClass" 
value="org.apache.sandesha.ws.rm.providers.RMProvider"/>
          <parameter name="className" 
value="org.apache.sandesha.interop.RMSampleService"/>
          <parameter name="allowedMethods" value="*"/>
          <parameter name="scope" value="request"/>
      </service>
  
      <!-- 
======================================================================================
 -->
      <!-- Un-comment the following section to deploy, RMService with 
RMClientProvider as the     -->
      <!-- provider. Deploying RMService with the following configuratoin is 
required when the    -->
      <!-- web service client becomes another web service that has already been 
deployed in some  -->
      <!-- server. E.g. Web Service A invokes Web Service B with Reliable 
Messaging.              -->
      <!-- 
======================================================================================
 -->
      <!--
       <service name="RMService" provider="Handler">
           <requestFlow>
               <handler 
type="java:org.apache.sandesha.ws.rm.handlers.RMServerRequestHandler"></handler>
               <handler 
type="java:org.apache.axis.message.addressing.handler.AddressingHandler"></handler>
           </requestFlow>
  
           <parameter name="handlerClass" 
value="org.apache.sandesha.ws.rm.providers.RMClientProvider"/>
           <parameter name="className" 
value="org.apache.sandesha.interop.RMService"/>
           <parameter name="allowedMethods" value="*"/>
           <parameter name="scope" value="request"/>
       </service>
       -->
  </deployment>
  
  
  1.1                  ws-fx/sandesha/samples/RunSimpleAxisServer.bat
  
  Index: RunSimpleAxisServer.bat
  ===================================================================
  @echo off
  set CLASSPATH=%CLASSPATH%;..\lib\addressing-SNAPSHOT.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-1.2-RC2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-ant-1.2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-jaxrpc-1.2-RC2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-saaj-1.2-RC2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\commons-discovery-0.2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\commons-logging-1.0.3.jar
  set CLASSPATH=%CLASSPATH%;..\lib\junit-3.8.1.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-wsdl4j-1.2-RC1.jar
  set CLASSPATH=%CLASSPATH%;..\lib\log4j-1.2.8.jar
  set CLASSPATH=%CLASSPATH%;..\lib\xerces.jar
  if  exist  ..\Sandesha-beta.jar goto  jarfoundinroot
  if  exist  ..\target\Sandesha-beta.jar goto  jarfoundintarget
  echo Cannot find the Sandesha-beta.jar.
  echo If you are using the source distribution, please build the source using 
maven before running the samples
  pause
  goto end
  
  :jarfoundinroot
  set CLASSPATH=%CLASSPATH%;..\Sandesha-beta.jar;
  
  :jarfoundintarget
  set CLASSPATH=%CLASSPATH%;..\target\Sandesha-beta.jar;
  
  java org.apache.axis.transport.http.SimpleAxisServer
  :end
  
  
  1.1                  ws-fx/sandesha/samples/RunTCPMon.bat
  
  Index: RunTCPMon.bat
  ===================================================================
  @echo off
  set CLASSPATH=%CLASSPATH%;..\lib\addressing-SNAPSHOT.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-1.2-RC2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-ant-1.2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-jaxrpc-1.2-RC2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-saaj-1.2-RC2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\commons-discovery-0.2.jar
  set CLASSPATH=%CLASSPATH%;..\lib\commons-logging-1.0.3.jar
  set CLASSPATH=%CLASSPATH%;..\lib\junit-3.8.1.jar
  set CLASSPATH=%CLASSPATH%;..\lib\axis-wsdl4j-1.2-RC1.jar
  set CLASSPATH=%CLASSPATH%;..\lib\log4j-1.2.8.jar
  set CLASSPATH=%CLASSPATH%;..\lib\xerces.jar
  java org.apache.axis.utils.tcpmon
   
  
  
  1.1                  ws-fx/sandesha/samples/build.xml
  
  Index: build.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <project name="Apache Sandesha" default="usage" basedir=".">
      <description>
     Build File for Samples in Apache Sandesha
  
     This file is intended for ANT, a Java based build tool.
     ANT is available from http://jakarta.apache.org/ant/index.html
  
  Prerequisites:
     J2SDK 1.4          from http://java.sun.com/
     jakarta-ant        from http://jakarta.apache.org/ant/
     commons-logging    from http://jakarta.apache.org/commons/logging.html
     log4j              from http://jakarta.apache.org/log4j
  
  Optional components:
     junit              from http://www.junit.org/
  
  Build Instructions:
     To build, run
  
       ant "target"
  
     on the directory where this file is located with the target you want.
  
      </description>
  
      <target name="usage">
          <echo message="                                                       
                     "/>
          <echo message=" Build instructions                                    
                     "/>
          <echo 
message="----------------------------------------------------------------------------"/>
          <echo message=" Available Targets Are                                 
                     "/>
          <echo message="   ping_sync       -->runs interop test for AsyncPing  
                     "/>
          <echo message="   ping_async      -->runs interop test for SyncPing   
                     "/>
          <echo message="   echo_sync_ack   -->runs interop test for EchoStirng 
                     "/>
          <echo message="   echo_async_ack  -->runs interop test for EchoStirng 
                     "/>
          <echo message="   clean           --> cleans up all generated files 
and                    "/>
          <echo message="   usage           --> provides help on using the 
build tool  (default)     "/>
          <echo 
message="----------------------------------------------------------------------------"/>
          <echo message="                                                       
                     "/>
      </target>
  
  
      <target name="check.jar">
          <available property="sandesha.jar.found1" 
file="..\Sandesha-beta.jar"/>
          <available property="sandesha.jar.found2" 
file="..\target\Sandesha-beta.jar"/>
      </target>
  
      <target name="set.jar.at.root" depends="check.jar" 
unless="sandesha.jar.found1">
          <antcall target="set.jar.at.target"/>
      </target>
  
      <target name="set.jar.at.target" depends="check.jar" 
unless="sandesha.jar.found2">
          <echo message="Cannot find the Sandesha-beta.jar."/>
          <echo message="If you are using the source distribution, please build 
the source using maven before running the samples."/>
      </target>
  
  
      <target name="init" depends="set.jar.at.root">
          <property name="dir.libs" value="..\lib"/>
          <property name="dir.root" value="..\"/>
          <property name="dir.target" value="..\target"/>
          <property name="jar.name" value="Sandesha-beta.jar"/>
  
          <path id="classpath.libraries" description="3rd party libs">
              <fileset dir="${dir.libs}">
                  <include name="**/*.jar"/>
              </fileset>
              <fileset dir="${dir.root}">
                  <include name="${jar.name}"/>
              </fileset>
              <fileset dir="${dir.target}">
                  <include name="${jar.name}"/>
              </fileset>
          </path>
  
      </target>
  
  
  
      <!--===========================//Interop 
Section//============================================-->
      <!--
         //Targets in this section is used to test the basic interops. Here 
Sandesha client and the
         //Sandesha server are tested with each other. TCP Monitors will be 
started automatically to
         //view the message flow.
      -->
  
  
      <target name="run_tcp1" depends="init">
          <java classname="org.apache.axis.utils.tcpmon" fork="true" 
spawn="true">
              <arg value="8070"/>
              <arg value="localhost"/>
              <arg value="8080"/>
              <classpath refid="classpath.libraries"/>
          </java>
      </target>
      <target name="run_tcp2" depends="init">
          <java classname="org.apache.axis.utils.tcpmon" fork="true" 
spawn="true">
              <arg value="9070"/>
              <arg value="localhost"/>
              <arg value="9090"/>
              <classpath refid="classpath.libraries"/>
          </java>
      </target>
  
  
      <!-- =================================================================== 
-->
      <!-- Launches the functional test HTTP server -->
      <!-- =================================================================== 
-->
      <target name="run_server">
          <echo message="Starting test http server."/>
          <java classname="org.apache.axis.transport.http.SimpleAxisServer" 
spawn="true" fork="yes">
              <arg line="-p 8080"/>  <!-- arbitrary port -->
              <classpath refid="classpath.libraries"/>
          </java>
      </target>
  
  
      <target name="run_interop_async_ping" 
depends="run_tcp1,run_tcp2,run_server">
          <java classname="org.apache.sandesha.samples.AsyncPingClient">
              <classpath refid="classpath.libraries"/>
          </java>
      </target>
  
      <target name="run_interop_sync_ping" depends="run_tcp1,run_server">
          <java classname="org.apache.sandesha.samples.SyncPingClient">
              <classpath refid="classpath.libraries"/>
          </java>
      </target>
  
      <target name="run_interop_echo_string_async_ack" 
depends="run_tcp1,run_tcp2,run_server">
          <java classname="org.apache.sandesha.samples.EchoClientAsyncAck">
              <classpath refid="classpath.libraries"/>
          </java>
      </target>
  
      <target name="run_interop_echo_string_sync_ack" 
depends="run_tcp1,run_tcp2,run_server">
          <java classname="org.apache.sandesha.samples.EchoClientSyncAck">
              <classpath refid="classpath.libraries"/>
          </java>
      </target>
  
      <target name="shutdown_server">
          <echo message="ShutDown the server "/>
          <java classname="org.apache.axis.client.AdminClient" fork="yes" 
spawn="true">
              <classpath refid="classpath.libraries"/>
              <arg line="quit -p 8080"/>
          </java>
      </target>
  
      <target name="ping_sync" depends="run_interop_sync_ping,shutdown_server"> 
</target>
      <target name="ping_async" 
depends="run_interop_async_ping,shutdown_server"> </target>
      <target name="echo_sync_ack" 
depends="run_interop_echo_string_sync_ack,shutdown_server"> </target>
      <target name="echo_async_ack" 
depends="run_interop_echo_string_async_ack,shutdown_server"> </target>
  
      <!--=============================//End of Interop 
Testing//====================================-->
  
  
  </project>
  
  
  1.1                  ws-fx/sandesha/samples/client-config.wsdd
  
  Index: client-config.wsdd
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- 
======================================================================================
  /*
  * Copyright 1999-2004 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  * use this file except in compliance with the License. You may obtain a copy 
of
  * the License at
  *
  * http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  * License for the specific language governing permissions and limitations 
under
  * the License.
  *
  */
  
======================================================================================
 -->
  
  <deployment xmlns="http://xml.apache.org/axis/wsdd/"; 
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
   <globalConfiguration>
    <parameter name="adminPassword" value="admin"/>
    <parameter name="disablePrettyXML" value="true"/>
    <parameter name="attachments.implementation" 
value="org.apache.axis.attachments.AttachmentsImpl"/>
    <parameter name="sendXsiTypes" value="true"/>
    <parameter name="sendMultiRefs" value="true"/>
    <parameter name="sendXMLDeclaration" value="true"/>
   </globalConfiguration>
   <handler name="RMSender" type="java:org.apache.sandesha.client.RMSender"/>
   <transport name="java" 
pivot="java:org.apache.axis.transport.java.JavaSender"/>
   <transport name="http" 
pivot="java:org.apache.axis.transport.http.HTTPSender"/>
   <transport name="local" 
pivot="java:org.apache.axis.transport.local.LocalSender"/>
   <transport name="RMTransport" pivot="RMSender"/>
  </deployment>
  
  
  
  1.1                  ws-fx/sandesha/samples/server-config.wsdd
  
  Index: server-config.wsdd
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- 
======================================================================================
  /*
  * Copyright 1999-2004 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  * use this file except in compliance with the License. You may obtain a copy 
of
  * the License at
  *
  * http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  * License for the specific language governing permissions and limitations 
under
  * the License.
  *
  */
  
======================================================================================
 -->
  <deployment xmlns="http://xml.apache.org/axis/wsdd/"; 
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
   <globalConfiguration>
    <parameter name="adminPassword" value="sandeshaadmin"/>
    <parameter name="disablePrettyXML" value="true"/>
    <parameter name="sendMultiRefs" value="true"/>
    <parameter name="sendXsiTypes" value="true"/>
    <parameter name="attachments.implementation" 
value="org.apache.axis.attachments.AttachmentsImpl"/>
    <parameter name="sendXMLDeclaration" value="true"/>
    <requestFlow>
     <handler type="java:org.apache.axis.handlers.JWSHandler">
      <parameter name="scope" value="session"/>
     </handler>
     <handler type="java:org.apache.axis.handlers.JWSHandler">
      <parameter name="scope" value="request"/>
      <parameter name="extension" value=".jwr"/>
     </handler>
    </requestFlow>
   </globalConfiguration>
   <handler name="LocalResponder" 
type="java:org.apache.axis.transport.local.LocalResponder"/>
   <handler name="URLMapper" 
type="java:org.apache.axis.handlers.http.URLMapper"/>
   <handler name="Authenticate" 
type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
  <service name="AdminService" provider="java:MSG">
    <parameter name="allowedMethods" value="AdminService"/>
    <parameter name="enableRemoteAdmin" value="true"/>
    <parameter name="className" value="org.apache.axis.utils.Admin"/>
    <namespace>http://xml.apache.org/axis/wsdd/</namespace>
   </service>
  <service name="Version" provider="java:RPC">
    <parameter name="allowedMethods" value="getVersion"/>
    <parameter name="className" value="org.apache.axis.Version"/>
   </service>
   <service name="RMService" provider="Handler">
    <requestFlow>
     <handler 
type="java:org.apache.sandesha.ws.rm.handlers.RMServerRequestHandler"/>
     <handler 
type="java:org.apache.axis.message.addressing.handler.AddressingHandler"/>
    </requestFlow>
    <parameter name="allowedMethods" value="*"/>
    <parameter name="scope" value="request"/>
    <parameter name="className" value="org.apache.sandesha.client.RMService"/>
    <parameter name="handlerClass" 
value="org.apache.sandesha.ws.rm.providers.RMClientProvider"/>
   </service>
   <service name="RMSampleService" provider="Handler">
    <requestFlow>
     <handler 
type="java:org.apache.sandesha.ws.rm.handlers.RMServerRequestHandler"/>
     <handler 
type="java:org.apache.axis.message.addressing.handler.AddressingHandler"/>
    </requestFlow>
    <parameter name="allowedMethods" value="*"/>
    <parameter name="scope" value="request"/>
    <parameter name="className" 
value="org.apache.sandesha.samples.RMSampleService"/>
    <parameter name="handlerClass" 
value="org.apache.sandesha.ws.rm.providers.RMProvider"/>
   </service>
   <transport name="http">
    <requestFlow>
     <handler type="URLMapper"/>
     <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
    </requestFlow>
    <parameter name="qs:list" 
value="org.apache.axis.transport.http.QSListHandler"/>
    <parameter name="qs:wsdl" 
value="org.apache.axis.transport.http.QSWSDLHandler"/>
    <parameter name="qs:method" 
value="org.apache.axis.transport.http.QSMethodHandler"/>
   </transport>
   <transport name="local">
    <responseFlow>
     <handler type="LocalResponder"/>
    </responseFlow>
   </transport>
  </deployment>
  
  
  

Reply via email to