Hi,
Can somebody apply this patch to ws-fx/kandula/src/samples/
This contains new interop test cases + a bug fix for the interop build file.
 
Thanks & Regards,
~Thilina

"May the SourcE be with u"
Index: interop/build.xml
===================================================================
RCS file: /home/cvspublic/ws-fx/kandula/src/samples/interop/build.xml,v
retrieving revision 1.1
diff -u -r1.1 build.xml
--- interop/build.xml   18 Feb 2005 09:41:04 -0000      1.1
+++ interop/build.xml   6 Jun 2005 07:51:38 -0000
@@ -1,79 +1,79 @@
-<?xml version="1.0"?>
-<project name="kandula"
-        default="compile"
-        basedir=".">
-
-        <property name="src.dir" value="src" />         
-        <property name="build.dir" value="build" />
-        <property name="home.dir" value="../../.." />
-        <property name="samples.dir" value="${home.dir}/src/samples" />
-        
-        <property file="${home.dir}/build.properties" />                
-        
-        <path id="base.classpath">
-               <fileset dir="${home.dir}/target/lib" >
-                       <include name="**/*.jar" />
-               </fileset>
-               <fileset dir="${home.dir}/target" >
-                       <include name="**/*.jar" />
-               </fileset>              
-               <pathelement location="${samples.dir}/common/build"/>           
-        </path>
-        
-        <taskdef resource="axis-tasks.properties"  
classpathref="base.classpath" />
-        
-        <target name="compile" depends="wsdl2java" >
-               <ant dir="${samples.dir}/common"/>
-               <javac srcdir="${src.dir}" destdir="${build.dir}">
-                       <classpath refid="base.classpath" />
-               </javac>
-        </target>
-        
-        <target name="clean" >
-               <delete>
-                       <fileset dir="${src.dir}" excludes="**/*Impl.java, 
**/*TestCase.java" />
-               </delete>
-               <delete dir="${build.dir}" />   
-        </target> 
-
-        <target name="init" >
-               <mkdir dir="${build.dir}" />
-        </target>       
-
-        
-        <target name="wsdl2java" depends="init">
-                <axis-wsdl2java
-                       output="${src.dir}"
-                       verbose="true"
-                       serverside="true"
-                       url="${basedir}\interop.wsdl" >
-                       <mapping namespace="urn:test" package="" />
-                </axis-wsdl2java>
-                <move todir="." flatten="true" >
-                       <fileset dir="${src.dir}" includes="**/*.wsdd" />
-                </move>
-       </target>
-
-       <target name="dist" depends="compile">
-               <jar jarfile="${build.dir}/interop.jar">
-                       <fileset dir="${samples.dir}/common/build">
-                               <include name="**/*.class" />
-                       </fileset>              
-                       <fileset dir="${build.dir}">
-                               <include name="**/*.class" />
-                       </fileset>
-               </jar>
-       </target>
-       
-       <target name="test" >
-               <junit printsummary="withOutAndErr" >
-                       <formatter type="plain"/>
-                       <classpath>                             
-                               <path refid="base.classpath" />
-                               <fileset dir="${basedir}/build" 
includes="*.jar" />
-                               <pathelement location="${ws-tx.dir}/conf" />
-                       </classpath>
-                       <test name="test.InteropPortTypeRPCServiceTestCase" />
-               </junit>
-        </target>
+<?xml version="1.0"?>
+<project name="kandula"
+        default="compile"
+        basedir=".">
+
+        <property name="src.dir" value="src" />         
+        <property name="build.dir" value="build" />
+        <property name="home.dir" value="../../.." />
+        <property name="samples.dir" value="${home.dir}/src/samples" />
+        
+        <property file="${home.dir}/build.properties" />                
+        
+        <path id="base.classpath">
+               <fileset dir="${home.dir}/target/lib" >
+                       <include name="**/*.jar" />
+               </fileset>
+               <fileset dir="${home.dir}/target" >
+                       <include name="**/*.jar" />
+               </fileset>              
+               <pathelement location="${samples.dir}/common/build"/>           
+        </path>
+        
+        <taskdef resource="axis-tasks.properties"  
classpathref="base.classpath" />
+        
+        <target name="compile" depends="wsdl2java" >
+               <ant dir="${samples.dir}/common"/>
+               <javac srcdir="${src.dir}" destdir="${build.dir}">
+                       <classpath refid="base.classpath" />
+               </javac>
+        </target>
+        
+        <target name="clean" >
+               <delete>
+                       <fileset dir="${src.dir}" excludes="**/*Impl.java, 
**/*TestCase.java" />
+               </delete>
+               <delete dir="${build.dir}" />   
+        </target> 
+
+        <target name="init" >
+               <mkdir dir="${build.dir}" />
+        </target>       
+
+        
+        <target name="wsdl2java" depends="init">
+                <axis-wsdl2java
+                       output="${src.dir}"
+                       verbose="true"
+                       serverside="true"
+                       url="${basedir}/interop.wsdl" >
+                       <mapping namespace="urn:test" package="" />
+                </axis-wsdl2java>
+                <move todir="." flatten="true" >
+                       <fileset dir="${src.dir}" includes="**/*.wsdd" />
+                </move>
+       </target>
+
+       <target name="dist" depends="compile">
+               <jar jarfile="${build.dir}/interop.jar">
+                       <fileset dir="${samples.dir}/common/build">
+                               <include name="**/*.class" />
+                       </fileset>              
+                       <fileset dir="${build.dir}">
+                               <include name="**/*.class" />
+                       </fileset>
+               </jar>
+       </target>
+       
+       <target name="test" >
+               <junit printsummary="withOutAndErr" >
+                       <formatter type="plain"/>
+                       <classpath>                             
+                               <path refid="base.classpath" />
+                               <fileset dir="${basedir}/build" 
includes="*.jar" />
+                               <pathelement location="${ws-tx.dir}/conf" />
+                       </classpath>
+                       <test name="InteropPortTypeRPCServiceTestCase" />
+               </junit>
+        </target>
 </project>
\ No newline at end of file
Index: interop_new/build.xml
===================================================================
RCS file: interop_new/build.xml
diff -N interop_new/build.xml
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ interop_new/build.xml       1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,79 @@
+<?xml version="1.0"?>
+<project name="kandula"
+        default="compile"
+        basedir=".">
+
+        <property name="src.dir" value="src" />         
+        <property name="build.dir" value="build" />
+        <property name="home.dir" value="../../.." />
+        <property name="samples.dir" value="${home.dir}/src/samples" />
+        
+        <property file="${home.dir}/build.properties" />                
+        
+        <path id="base.classpath">
+               <fileset dir="${home.dir}/target/lib" >
+                       <include name="**/*.jar" />
+               </fileset>
+               <fileset dir="${home.dir}/target" >
+                       <include name="**/*.jar" />
+               </fileset>              
+               <pathelement location="${samples.dir}/common/build"/>           
+        </path>
+        
+        <taskdef resource="axis-tasks.properties"  
classpathref="base.classpath" />
+        
+        <target name="compile" depends="wsdl2java" >
+               <ant dir="${samples.dir}/common"/>
+               <javac srcdir="${src.dir}" destdir="${build.dir}">
+                       <classpath refid="base.classpath" />
+               </javac>
+        </target>
+        
+        <target name="clean" >
+               <delete>
+                       <fileset dir="${src.dir}" excludes="**/*Impl.java, 
**/*TestCase.java" />
+               </delete>
+               <delete dir="${build.dir}" />   
+        </target> 
+
+        <target name="init" >
+               <mkdir dir="${build.dir}" />
+        </target>       
+
+        
+        <target name="wsdl2java" depends="init">
+                <axis-wsdl2java
+                       output="${src.dir}"
+                       verbose="true"
+                       serverside="true"
+                       url="${basedir}/interop.wsdl" >
+                       <mapping namespace="urn:test" package="" />
+                </axis-wsdl2java>
+                <move todir="." flatten="true" >
+                       <fileset dir="${src.dir}" includes="**/*.wsdd" />
+                </move>
+       </target>
+
+       <target name="dist" depends="compile">
+               <jar jarfile="${build.dir}/interop_new.jar">
+                       <fileset dir="${samples.dir}/common/build">
+                               <include name="**/*.class" />
+                       </fileset>              
+                       <fileset dir="${build.dir}">
+                               <include name="**/*.class" />
+                       </fileset>
+               </jar>
+       </target>
+       
+       <target name="test" >
+               <junit printsummary="withOutAndErr" >
+                       <formatter type="plain"/>
+                       <classpath>                             
+                               <path refid="base.classpath" />
+                               <fileset dir="${basedir}/build" 
includes="*.jar" />
+                               <pathelement location="${ws-tx.dir}/conf" />
+                       </classpath>
+                       <test 
name="com.fabrikam123.InitiatorApplicationTestCase" />
+               </junit>
+        </target>
+</project>
Index: interop_new/deploy.wsdd
===================================================================
RCS file: interop_new/deploy.wsdd
diff -N interop_new/deploy.wsdd
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ interop_new/deploy.wsdd     1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,72 @@
+<!-- Use this file to deploy some handlers/chains and services      -->
+<!-- Two ways to do this:                                           -->
+<!--   java org.apache.axis.client.AdminClient deploy.wsdd          -->
+<!--      after the axis server is running                          -->
+<!-- or                                                             -->
+<!--   java org.apache.axis.utils.Admin client|server deploy.wsdd   -->
+<!--      from the same directory that the Axis engine runs         -->
+
+<deployment
+    xmlns="http://xml.apache.org/axis/wsdd/";
+    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
+
+  <!-- Services from InitiatorService WSDL service -->
+
+  <service name="InitiatorPortType" provider="java:RPC" style="wrapped" 
use="literal">
+      <parameter name="wsdlTargetNamespace" value="http://fabrikam123.com"/>
+      <parameter name="wsdlServiceElement" value="InitiatorService"/>
+      <parameter name="wsdlServicePort" value="InitiatorPortType"/>
+      <parameter name="className" 
value="com.fabrikam123.InitiatorPortTypeImpl"/>
+      <parameter name="wsdlPortType" value="InitiatorPortType"/>
+      <operation name="response" qname="operNS:Response" 
xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/InitiatorPortType/Response"; mep="oneway" >
+      </operation>
+      <parameter name="allowedMethods" value="response"/>
+
+  </service>
+
+  <!-- Services from ParticipantService WSDL service -->
+
+  <service name="ParticipantPortType" provider="java:RPC" style="wrapped" 
use="literal">
+      <parameter name="wsdlTargetNamespace" value="http://fabrikam123.com"/>
+      <parameter name="wsdlServiceElement" value="ParticipantService"/>
+      <parameter name="wsdlServicePort" value="ParticipantPortType"/>
+      <parameter name="className" 
value="com.fabrikam123.ParticipantPortTypeImpl"/>
+      <parameter name="wsdlPortType" value="ParticipantPortType"/>
+      <operation name="completionCommit" qname="operNS:CompletionCommit" 
xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/ParticipantPortType/Commit"; >
+      </operation>
+      <operation name="completionRollback" qname="operNS:CompletionRollback" 
xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/ParticipantPortType/Commit"; >
+      </operation>
+      <operation name="commit" qname="operNS:Commit" 
xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/ParticipantPortType/Commit"; >
+      </operation>
+      <operation name="rollback" qname="operNS:Rollback" 
xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/ParticipantPortType/Commit"; >
+      </operation>
+      <operation name="phase2Rollback" qname="operNS:Phase2Rollback" 
xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/ParticipantPortType/Commit"; mep="oneway" >
+      </operation>
+      <operation name="readonly" qname="operNS:Readonly" 
xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/ParticipantPortType/Commit"; mep="oneway" >
+      </operation>
+      <operation name="volatileAndDurable" qname="operNS:VolatileAndDurable" 
xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/ParticipantPortType/Commit"; mep="oneway" >
+      </operation>
+      <operation name="earlyReadonly" qname="operNS:EarlyReadonly" 
xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/ParticipantPortType/Commit"; mep="oneway" >
+      </operation>
+      <operation name="earlyAborted" qname="operNS:EarlyAborted" 
xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/ParticipantPortType/Commit"; mep="oneway" >
+      </operation>
+      <operation name="replayAbort" qname="operNS:ReplayAbort" 
xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/ParticipantPortType/Commit"; mep="oneway" >
+      </operation>
+      <operation name="replayCommit" qname="operNS:ReplayCommit" 
xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/ParticipantPortType/Commit"; mep="oneway" >
+      </operation>
+      <operation name="retryPreparedCommit" qname="operNS:RetryPreparedCommit" 
xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/ParticipantPortType/Commit"; mep="oneway" >
+      </operation>
+      <operation name="retryPreparedAbort" qname="operNS:RetryPreparedAbort" 
xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/ParticipantPortType/Commit"; mep="oneway" >
+      </operation>
+      <operation name="retryCommit" qname="operNS:RetryCommit" 
xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/ParticipantPortType/Commit"; mep="oneway" >
+      </operation>
+      <operation name="retryReplay" qname="operNS:RetryReplay" 
xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/ParticipantPortType/Commit"; mep="oneway" >
+      </operation>
+      <operation name="preparedAfterTimeout" 
qname="operNS:PreparedAfterTimeout" xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/ParticipantPortType/Commit"; mep="oneway" >
+      </operation>
+      <operation name="lostCommitted" qname="operNS:LostCommitted" 
xmlns:operNS="http://fabrikam123.com"; 
soapAction="http://fabrikam123.com/ParticipantPortType/Commit"; mep="oneway" >
+      </operation>
+      <parameter name="allowedMethods" value="phase2Rollback 
retryPreparedAbort retryCommit earlyReadonly retryReplay replayCommit rollback 
preparedAfterTimeout readonly retryPreparedCommit completionCommit 
volatileAndDurable lostCommitted earlyAborted commit completionRollback 
replayAbort"/>
+
+  </service>
+</deployment>
Index: interop_new/interop.wsdl
===================================================================
RCS file: interop_new/interop.wsdl
diff -N interop_new/interop.wsdl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ interop_new/interop.wsdl    1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,323 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions
+    targetNamespace="http://fabrikam123.com";
+    xmlns="http://schemas.xmlsoap.org/wsdl/";
+    xmlns:s="http://www.w3.org/2001/XMLSchema";
+    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
+    xmlns:tns="http://fabrikam123.com";>
+    <types>
+        <s:schema
+            elementFormDefault="qualified"
+            targetNamespace="http://fabrikam123.com";>
+            <s:complexType name="TestMessageType">
+                <s:sequence/>
+            </s:complexType>
+            <s:element name="Response" type="tns:TestMessageType"/>
+            <s:element name="CompletionCommit" type="tns:TestMessageType"/>
+            <s:element name="CompletionRollback" type="tns:TestMessageType"/>
+            <s:element name="Commit" type="tns:TestMessageType"/>
+            <s:element name="Rollback" type="tns:TestMessageType"/>
+            <s:element name="Phase2Rollback" type="tns:TestMessageType"/>
+            <s:element name="Readonly" type="tns:TestMessageType"/>
+            <s:element name="VolatileAndDurable" type="tns:TestMessageType"/>
+            <s:element name="EarlyReadonly" type="tns:TestMessageType"/>
+            <s:element name="EarlyAborted" type="tns:TestMessageType"/>
+            <s:element name="ReplayAbort" type="tns:TestMessageType"/>
+            <s:element name="ReplayCommit" type="tns:TestMessageType"/>
+            <s:element name="RetryPreparedCommit" type="tns:TestMessageType"/>
+            <s:element name="RetryPreparedAbort" type="tns:TestMessageType"/>
+            <s:element name="RetryCommit" type="tns:TestMessageType"/>
+            <s:element name="RetryReplay" type="tns:TestMessageType"/>
+            <s:element name="PreparedAfterTimeout" type="tns:TestMessageType"/>
+            <s:element name="LostCommitted" type="tns:TestMessageType"/>
+        </s:schema>
+    </types>
+    <message name="RetryReplay">
+        <part element="tns:RetryReplay" name="parameters"/>
+    </message>
+    <message name="RetryCommit">
+        <part element="tns:RetryCommit" name="parameters"/>
+    </message>
+    <message name="Response">
+        <part element="tns:Response" name="parameters"/>
+    </message>
+    <message name="ReplayAbort">
+        <part element="tns:ReplayAbort" name="parameters"/>
+    </message>
+    <message name="VolatileAndDurable">
+        <part element="tns:VolatileAndDurable" name="parameters"/>
+    </message>
+    <message name="RetryPreparedCommit">
+        <part element="tns:RetryPreparedCommit" name="parameters"/>
+    </message>
+    <message name="Rollback">
+        <part element="tns:Rollback" name="parameters"/>
+    </message>
+    <message name="EarlyAborted">
+        <part element="tns:EarlyAborted" name="parameters"/>
+    </message>
+    <message name="CompletionRollback">
+        <part element="tns:CompletionRollback" name="parameters"/>
+    </message>
+    <message name="PreparedAfterTimeout">
+        <part element="tns:PreparedAfterTimeout" name="parameters"/>
+    </message>
+    <message name="EarlyReadonly">
+        <part element="tns:EarlyReadonly" name="parameters"/>
+    </message>
+    <message name="RetryPreparedAbort">
+        <part element="tns:RetryPreparedAbort" name="parameters"/>
+    </message>
+    <message name="CompletionCommit">
+        <part element="tns:CompletionCommit" name="parameters"/>
+    </message>
+    <message name="ReplayCommit">
+        <part element="tns:ReplayCommit" name="parameters"/>
+    </message>
+    <message name="Readonly">
+        <part element="tns:Readonly" name="parameters"/>
+    </message>
+    <message name="Phase2Rollback">
+        <part element="tns:Phase2Rollback" name="parameters"/>
+    </message>
+    <message name="Commit">
+        <part element="tns:Commit" name="parameters"/>
+    </message>
+    <message name="LostCommitted">
+        <part element="tns:LostCommitted" name="parameters"/>
+    </message>
+    <portType name="InitiatorPortType">
+        <operation name="Response">
+            <input message="tns:Response" name="Response"/>
+        </operation>
+    </portType>
+    <portType name="ParticipantPortType">
+        <operation name="CompletionCommit">
+            <input message="tns:CompletionCommit" name="CompletionCommit"/>
+             <output message="tns:Response" name="Response"/>
+        </operation>
+        <operation name="CompletionRollback">
+            <input message="tns:CompletionRollback" name="CompletionRollback"/>
+            <output message="tns:Response" name="Response"/>
+        </operation>
+        <operation name="Commit">
+            <input message="tns:Commit" name="Commit"/>
+            <output message="tns:Response" name="Response"/>
+        </operation>
+        <operation name="Rollback">
+            <input message="tns:Rollback" name="Rollback"/>
+            <output message="tns:Response" name="Response"/>
+        </operation>
+        <operation name="Phase2Rollback">
+            <input message="tns:Phase2Rollback" name="Phase2Rollback"/>
+        </operation>
+        <operation name="Readonly">
+            <input message="tns:Readonly" name="Readonly"/>
+        </operation>
+        <operation name="VolatileAndDurable">
+            <input message="tns:VolatileAndDurable" name="VolatileAndDurable"/>
+        </operation>
+        <operation name="EarlyReadonly">
+            <input message="tns:EarlyReadonly" name="EarlyReadonly"/>
+        </operation>
+        <operation name="EarlyAborted">
+            <input message="tns:EarlyAborted" name="EarlyAborted"/>
+        </operation>
+        <operation name="ReplayAbort">
+            <input message="tns:ReplayAbort" name="ReplayAbort"/>
+        </operation>
+        <operation name="ReplayCommit">
+            <input message="tns:ReplayCommit" name="ReplayCommit"/>
+        </operation>
+        <operation name="RetryPreparedCommit">
+            <input message="tns:RetryPreparedCommit" 
name="RetryPreparedCommit"/>
+        </operation>
+        <operation name="RetryPreparedAbort">
+            <input message="tns:RetryPreparedAbort" name="RetryPreparedAbort"/>
+        </operation>
+        <operation name="RetryCommit">
+            <input message="tns:RetryCommit" name="RetryCommit"/>
+        </operation>
+        <operation name="RetryReplay">
+            <input message="tns:RetryReplay" name="RetryReplay"/>
+        </operation>
+        <operation name="PreparedAfterTimeout">
+            <input message="tns:PreparedAfterTimeout" 
name="PreparedAfterTimeout"/>
+        </operation>
+        <operation name="LostCommitted">
+            <input message="tns:LostCommitted" name="LostCommitted"/>
+        </operation>
+    </portType>
+    <binding name="InitiatorPortType" type="tns:InitiatorPortType">
+        <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
+        <operation name="Response">
+            <soap:operation
+                soapAction="http://fabrikam123.com/InitiatorPortType/Response";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+        </operation>
+    </binding>
+    <binding name="ParticipantPortType" type="tns:ParticipantPortType">
+        <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
+        <operation name="CompletionCommit">
+            <soap:operation
+                soapAction="http://fabrikam123.com/ParticipantPortType/Commit";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+            <output>
+                <soap:body use="literal"/>
+            </output>
+        </operation>
+        <operation name="CompletionRollback">
+            <soap:operation
+                soapAction="http://fabrikam123.com/ParticipantPortType/Commit";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+            <output>
+                <soap:body use="literal"/>
+            </output>
+        </operation>
+        <operation name="Commit">
+            <soap:operation
+                soapAction="http://fabrikam123.com/ParticipantPortType/Commit";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+            <output>
+                <soap:body use="literal"/>
+            </output>
+        </operation>
+        <operation name="Rollback">
+            <soap:operation
+                soapAction="http://fabrikam123.com/ParticipantPortType/Commit";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+            <output>
+                <soap:body use="literal"/>
+            </output>
+        </operation>
+        <operation name="Phase2Rollback">
+            <soap:operation
+                soapAction="http://fabrikam123.com/ParticipantPortType/Commit";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+        </operation>
+        <operation name="Readonly">
+            <soap:operation
+                soapAction="http://fabrikam123.com/ParticipantPortType/Commit";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+        </operation>
+        <operation name="VolatileAndDurable">
+            <soap:operation
+                soapAction="http://fabrikam123.com/ParticipantPortType/Commit";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+        </operation>
+        <operation name="EarlyReadonly">
+            <soap:operation
+                soapAction="http://fabrikam123.com/ParticipantPortType/Commit";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+        </operation>
+        <operation name="EarlyAborted">
+            <soap:operation
+                soapAction="http://fabrikam123.com/ParticipantPortType/Commit";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+        </operation>
+        <operation name="ReplayAbort">
+            <soap:operation
+                soapAction="http://fabrikam123.com/ParticipantPortType/Commit";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+        </operation>
+        <operation name="ReplayCommit">
+            <soap:operation
+                soapAction="http://fabrikam123.com/ParticipantPortType/Commit";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+        </operation>
+        <operation name="RetryPreparedCommit">
+            <soap:operation
+                soapAction="http://fabrikam123.com/ParticipantPortType/Commit";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+        </operation>
+        <operation name="RetryPreparedAbort">
+            <soap:operation
+                soapAction="http://fabrikam123.com/ParticipantPortType/Commit";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+        </operation>
+        <operation name="RetryCommit">
+            <soap:operation
+                soapAction="http://fabrikam123.com/ParticipantPortType/Commit";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+        </operation>
+        <operation name="RetryReplay">
+            <soap:operation
+                soapAction="http://fabrikam123.com/ParticipantPortType/Commit";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+        </operation>
+        <operation name="PreparedAfterTimeout">
+            <soap:operation
+                soapAction="http://fabrikam123.com/ParticipantPortType/Commit";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+        </operation>
+        <operation name="LostCommitted">
+            <soap:operation
+                soapAction="http://fabrikam123.com/ParticipantPortType/Commit";
+                style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+        </operation>
+    </binding>
+    <service name="InitiatorService">
+        <port binding="tns:InitiatorPortType" name="InitiatorPortType">
+            <soap:address 
location="http://localhost/dataReceive/Service1.asmx"/>
+        </port>
+    </service>
+    <service name="ParticipantService">
+        <port binding="tns:ParticipantPortType" name="ParticipantPortType">
+            <soap:address 
location="http://localhost/dataReceive/Service2.asmx"/>
+        </port>
+    </service>
+</definitions>
Index: interop_new/undeploy.wsdd
===================================================================
RCS file: interop_new/undeploy.wsdd
diff -N interop_new/undeploy.wsdd
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ interop_new/undeploy.wsdd   1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,19 @@
+<!-- Use this file to undeploy some handlers/chains and services    -->
+<!-- Two ways to do this:                                           -->
+<!--   java org.apache.axis.client.AdminClient undeploy.wsdd        -->
+<!--      after the axis server is running                          -->
+<!-- or                                                             -->
+<!--   java org.apache.axis.utils.Admin client|server undeploy.wsdd -->
+<!--      from the same directory that the Axis engine runs         -->
+
+<undeployment
+    xmlns="http://xml.apache.org/axis/wsdd/";>
+
+  <!-- Services from InitiatorService WSDL service -->
+
+  <service name="InitiatorPortType"/>
+
+  <!-- Services from ParticipantService WSDL service -->
+
+  <service name="ParticipantPortType"/>
+</undeployment>
Index: interop_new/src/com/fabrikam123/InitiatorApplicationTestCase.java
===================================================================
RCS file: interop_new/src/com/fabrikam123/InitiatorApplicationTestCase.java
diff -N interop_new/src/com/fabrikam123/InitiatorApplicationTestCase.java
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ interop_new/src/com/fabrikam123/InitiatorApplicationTestCase.java   1 Jan 
1970 00:00:00 -0000
@@ -0,0 +1,45 @@
+/*
+ * Created on May 26, 2005
+ *
+ * TODO To change the template for this generated file go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+package com.fabrikam123;
+import java.net.URL;
+
+import junit.framework.TestCase;
+
+import org.apache.ws.transaction.participant.standalone.TransactionManager;
+
+/**
+ * @author Thilina Gunarathne
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public class InitiatorApplicationTestCase extends TestCase {
+       /*public void testCompletionCommit() throws Exception {
+               ParticipantPortType participantApp = new 
ParticipantServiceLocator().getParticipantPortType(new 
URL("http://localhost:8080/axis/services/InteropServiceNew";));
+               participantApp.completionCommit();              
+       }
+       public void testCompletionRollback() throws Exception {
+           ParticipantPortType participantApp = new 
ParticipantServiceLocator().getParticipantPortType(new 
URL("http://localhost:8081/axis/services/InteropServiceNew";));
+               participantApp.completionRollback();            
+       }*/
+       public void testCommit() throws Exception {
+           
+               TransactionManager tm= TransactionManager.getInstance();
+               ParticipantPortType participantApp = new 
ParticipantServiceLocator().getParticipantPortType(new 
URL("http://localhost:8081/axis/services/InteropServiceNew";));
+               tm.begin();
+               participantApp.commit();
+               tm.commit();
+       }
+       public void testRollback() throws Exception {
+           
+               TransactionManager tm= TransactionManager.getInstance();
+               ParticipantPortType participantApp = new 
ParticipantServiceLocator().getParticipantPortType(new 
URL("http://localhost:8081/axis/services/InteropServiceNew";));
+               tm.begin();
+               participantApp.rollback();
+               tm.rollback();
+       }
+}
Index: interop_new/src/com/fabrikam123/InitiatorPortTypeImpl.java
===================================================================
RCS file: interop_new/src/com/fabrikam123/InitiatorPortTypeImpl.java
diff -N interop_new/src/com/fabrikam123/InitiatorPortTypeImpl.java
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ interop_new/src/com/fabrikam123/InitiatorPortTypeImpl.java  1 Jan 1970 
00:00:00 -0000
@@ -0,0 +1,26 @@
+/*
+ * Created on May 26, 2005
+ *
+ * TODO To change the template for this generated file go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+package com.fabrikam123;
+import java.rmi.RemoteException;
+
+/**
+ * @author root
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public class InitiatorPortTypeImpl implements InitiatorPortType {
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.InitiatorPortType#response()
+        */
+       public void response() throws RemoteException {
+               // TODO Auto-generated method stub
+
+       }
+
+}
Index: interop_new/src/com/fabrikam123/ParticipantPortTypeImpl.java
===================================================================
RCS file: interop_new/src/com/fabrikam123/ParticipantPortTypeImpl.java
diff -N interop_new/src/com/fabrikam123/ParticipantPortTypeImpl.java
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ interop_new/src/com/fabrikam123/ParticipantPortTypeImpl.java        1 Jan 
1970 00:00:00 -0000
@@ -0,0 +1,219 @@
+/*
+ * Created on May 26, 2005
+ *
+ * TODO To change the template for this generated file go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+package com.fabrikam123;
+
+
+
+import java.rmi.RemoteException;
+
+import javax.transaction.Status;
+import javax.transaction.Transaction;
+
+import org.apache.ws.transaction.participant.j2ee.TransactionManagerGlue;
+import 
org.apache.ws.transaction.participant.j2ee.TransactionManagerGlueFactory;
+import org.apache.ws.transaction.participant.standalone.TransactionManager;
+
+import dummy.DummyXAResource;
+import dummy.TxStatus;
+
+/**
+ * @author root
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public class ParticipantPortTypeImpl implements ParticipantPortType{
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.ParticipantPortType#completionCommit()
+        */
+       public void completionCommit() throws RemoteException {
+               TransactionManager tm= TransactionManager.getInstance();
+               tm.begin();
+               
+               tm.commit();
+               
+       }
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.ParticipantPortType#completionRollback()
+        */
+       public void completionRollback() throws RemoteException {
+           TransactionManager tm= TransactionManager.getInstance();
+               tm.begin();
+               
+               tm.rollback();
+       }
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.ParticipantPortType#commit()
+        */
+       public void commit() throws RemoteException {
+               TransactionManagerGlue tmGlue= null;
+               javax.transaction.TransactionManager tm= null;
+               tmGlue= 
TransactionManagerGlueFactory.getInstance().getTransactionManagerGlue();
+               tm= tmGlue.getTransactionManager();
+               try {
+                       Transaction tx= tm.getTransaction();
+                       System.out.println(
+                               "[ParticipantPortTypeImpl] commit() " + 
TxStatus.getStatusName(tm.getStatus()));
+                       if (tm.getStatus() == Status.STATUS_ACTIVE) {
+                               tx.enlistResource(new DummyXAResource(false, 
false));
+                               System.out.println(
+                                       "[InteropServiceSoapBindingImpl] "
+                                               + tx.toString()
+                                               + " tx.hashCode= "
+                                               + tx.hashCode());
+                       }
+               }
+               catch (Exception e) {
+                       e.printStackTrace();
+                       if (e instanceof RemoteException)
+                               throw (RemoteException)e;
+                       else
+                               throw new RemoteException(e.toString());
+               }
+       }
+               
+       
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.ParticipantPortType#rollback()
+        */
+       public void rollback() throws RemoteException {
+               TransactionManagerGlue tmGlue= null;
+               javax.transaction.TransactionManager tm= null;
+               tmGlue= 
TransactionManagerGlueFactory.getInstance().getTransactionManagerGlue();
+               tm= tmGlue.getTransactionManager();
+               try {
+                       Transaction tx= tm.getTransaction();
+                       System.out.println(
+                               "[ParticipantPortTypeImpl] commit() " + 
TxStatus.getStatusName(tm.getStatus()));
+                       if (tm.getStatus() == Status.STATUS_ACTIVE) {
+                               tx.enlistResource(new DummyXAResource(true, 
false));
+                               System.out.println(
+                                       "[InteropServiceSoapBindingImpl] "
+                                               + tx.toString()
+                                               + " tx.hashCode= "
+                                               + tx.hashCode());
+                       }
+               }
+               catch (Exception e) {
+                       e.printStackTrace();
+                       if (e instanceof RemoteException)
+                               throw (RemoteException)e;
+                       else
+                               throw new RemoteException(e.toString());
+               }
+               
+       }
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.ParticipantPortType#phase2Rollback()
+        */
+       public void phase2Rollback() throws RemoteException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.ParticipantPortType#readonly()
+        */
+       public void readonly() throws RemoteException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.ParticipantPortType#volatileAndDurable()
+        */
+       public void volatileAndDurable() throws RemoteException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.ParticipantPortType#earlyReadonly()
+        */
+       public void earlyReadonly() throws RemoteException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.ParticipantPortType#earlyAborted()
+        */
+       public void earlyAborted() throws RemoteException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.ParticipantPortType#replayAbort()
+        */
+       public void replayAbort() throws RemoteException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.ParticipantPortType#replayCommit()
+        */
+       public void replayCommit() throws RemoteException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.ParticipantPortType#retryPreparedCommit()
+        */
+       public void retryPreparedCommit() throws RemoteException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.ParticipantPortType#retryPreparedAbort()
+        */
+       public void retryPreparedAbort() throws RemoteException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.ParticipantPortType#retryCommit()
+        */
+       public void retryCommit() throws RemoteException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.ParticipantPortType#retryReplay()
+        */
+       public void retryReplay() throws RemoteException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.ParticipantPortType#preparedAfterTimeout()
+        */
+       public void preparedAfterTimeout() throws RemoteException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       /* (non-Javadoc)
+        * @see com.fabrikam123.ParticipantPortType#lostCommitted()
+        */
+       public void lostCommitted() throws RemoteException {
+               // TODO Auto-generated method stub
+               
+       }
+
+}

Reply via email to