You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by as...@apache.org on 2004/05/13 08:34:59 UTC

cvs commit: ws-fx/sandesha/lib axis.jar

aslom       2004/05/12 23:34:59

  Modified:    sandesha build.xml
               sandesha/interop/org/apache/sandesha/samples/interop
                        ClientDeploy.wsdd Scenario_1_1_Client.java
               sandesha/lib axis.jar
  Log:
  updated build.xml to do deploy and to run interop client scenario 1.1
  updated axis.jar to ccode compield from current AXIS CVS
  
  Revision  Changes    Path
  1.4       +72 -1     ws-fx/sandesha/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/ws-fx/sandesha/build.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- build.xml	5 May 2004 01:59:12 -0000	1.3
  +++ build.xml	13 May 2004 06:34:59 -0000	1.4
  @@ -370,7 +370,78 @@
           </ant-->
       </target>
   
  -    <target name="systemTests"
  +<target name="client.interop" depends="compile.interop">
  +
  +    <java classname="org.apache.axis.utils.Admin" 
  +               fork="true" 
  +               dir="${basedir}">
  +
  +      <arg value="client" />
  +      <arg value="${basedir}/${dir.interop}/org/apache/sandesha/samples/interop/ClientDeploy.wsdd" />
  +
  +      <classpath>
  +         <path refid="classpath.library"/>
  +      </classpath>
  +
  +    </java>
  +
  +    <java classname="org.apache.sandesha.samples.interop.Scenario_1_1_Client" fork="true">
  +      <!-- TODO: allow to take it from command line -->
  +      <arg line="http://localhost:7080/axis/services/PingService"/>
  +      <classpath>
  +         <path refid="classpath.library"/>
  +      </classpath>
  +      </java>
  +
  +
  +
  +</target>
  +
  +
  +<target name="deploy.interop" depends="compile.interop">
  +
  +        <copy todir="${webapp_install}/WEB-INF/classes">
  +            <fileset dir="${build.classes}" includes="**"/>
  +        </copy>
  +
  +        <copy todir="${webapp_install}/WEB-INF/lib">
  +            <fileset dir="lib" includes="**/addressing*.jar"/>
  +        </copy>
  +
  +    <java classname="org.apache.axis.utils.Admin" 
  +               fork="true" 
  +               dir="${webapp_install}/WEB-INF">
  +
  +      <arg value="server" />
  +      <arg value="${basedir}/${dir.interop}/org/apache/sandesha/samples/interop/ApplicationServiceDeploy.wsdd" />
  +
  +      <classpath>
  +         <pathelement location="${deploy_location}"/>
  +         <path refid="classpath.library"/>
  +      </classpath>
  +
  +    </java>
  +
  +    <java classname="org.apache.axis.utils.Admin" 
  +               fork="true" 
  +               dir="${webapp_install}/WEB-INF">
  +
  +      <arg value="server" />
  +      <arg value="${basedir}/${dir.src}/org/apache/sandesha/client/ClientEndpointManagerDeploy.wsdd" />
  +
  +      <classpath>
  +         <pathelement location="${deploy_location}"/>
  +         <path refid="classpath.library"/>
  +      </classpath>
  +
  +    </java>
  +
  +</target>
  +
  +<target name="deploy" depends="deploy.interop" />
  +
  +
  +<target name="systemTests"
           depends="compile, unitTests"
           if="junit.present"
           description="Runs all JUnit tests">
  
  
  
  1.2       +4 -4      ws-fx/sandesha/interop/org/apache/sandesha/samples/interop/ClientDeploy.wsdd
  
  Index: ClientDeploy.wsdd
  ===================================================================
  RCS file: /home/cvs/ws-fx/sandesha/interop/org/apache/sandesha/samples/interop/ClientDeploy.wsdd,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ClientDeploy.wsdd	7 May 2004 08:10:37 -0000	1.1
  +++ ClientDeploy.wsdd	13 May 2004 06:34:59 -0000	1.2
  @@ -12,17 +12,17 @@
   
   
   <handler name="PingRequestHandler" type="java:org.apache.sandesha.ws.rm.handlers.RMClientRequestHandler">
  -   <parameter name="sourceURI" value="http://127.0.0.1:8070"/>
  +   <parameter name="sourceURI" value="http://127.0.0.1:7080"/>
      <parameter name="action" value="wsrm:Ping"/>
      <parameter name="synchronized" value="false"/>
  -   <parameter name="replyTo" value="http://127.0.0.1:8070"/>
  +   <parameter name="replyTo" value="http://127.0.0.1:7080"/>
   </handler>
   
   <handler name="EchoStringRequestHandler" type="java:org.apache.sandesha.ws.rm.handlers.RMClientRequestHandler">
  -   <parameter name="sourceURI" value="http://127.0.0.1:8070"/>
  +   <parameter name="sourceURI" value="http://127.0.0.1:7080"/>
      <parameter name="action" value="wsrm:echoString"/>
      <parameter name="synchronized" value="false"/>
  -   <parameter name="replyTo" value="http://127.0.0.1:8070"/>
  +   <parameter name="replyTo" value="http://127.0.0.1:7090"/>
   </handler>
   
   
  
  
  
  1.7       +4 -4      ws-fx/sandesha/interop/org/apache/sandesha/samples/interop/Scenario_1_1_Client.java
  
  Index: Scenario_1_1_Client.java
  ===================================================================
  RCS file: /home/cvs/ws-fx/sandesha/interop/org/apache/sandesha/samples/interop/Scenario_1_1_Client.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Scenario_1_1_Client.java	7 May 2004 15:18:20 -0000	1.6
  +++ Scenario_1_1_Client.java	13 May 2004 06:34:59 -0000	1.7
  @@ -47,8 +47,9 @@
               if(args.length == 0 || args[0].equals("")){
                   throw new Exception("Error: pass Target End Point Address as a Parametter");
               }
  -            
  -            call.setTargetEndpointAddress(args[0]);
  +            String loc = args[0];
  +            System.out.println("Sending ping messages to "+loc);
  +            call.setTargetEndpointAddress(loc);
               call.setOperationName(new QName("PingService", "Ping"));
               call.addParameter("Text", XMLType.XSD_STRING, ParameterMode.IN);
               call.setReturnType(XMLType.AXIS_VOID);
  @@ -57,11 +58,10 @@
               
               call.setProperty(Constants.CLIENT_SEQUENCE_IDENTIFIER,"uuid:" + uuidGen.nextUUID());
               call.setProperty(Constants.CLIENT_RESPONSE_EXPECTED,(new Boolean(false)));
  -          
  +            
               call.invoke(new Object[] {"Ping 1"});
               call.invoke(new Object[] {"Ping 2"});
               call.setProperty(Constants.CLIENT_LAST_MESSAGE,(new Boolean(true)));
  -            //call.setLastMessage(true); //ALEK: was AXIS Call patched for it?
               call.invoke(new Object[] {"Ping 3"});
               
           } catch (Exception e) {
  
  
  
  1.2       +2015 -4390ws-fx/sandesha/lib/axis.jar
  
  	<<Binary file>>