Author: dasarath
Date: Thu Mar  2 21:26:59 2006
New Revision: 382668

URL: http://svn.apache.org/viewcvs?rev=382668&view=rev
Log: (empty)

Added:
    webservices/kandula/branches/Kandula_1/src/samples/interopmsft/
    
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/IAService.java
    
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/IAService.wsdl
    
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/TransactionalService-schema.xml
    
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/TransactionalService.wsdl
    webservices/kandula/branches/Kandula_1/src/samples/interopmsft/build.xml
    webservices/kandula/branches/Kandula_1/src/samples/interopmsft/deploy.wsdd
    webservices/kandula/branches/Kandula_1/src/samples/interopmsft/src/
    
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/src/CustomTransactionBinding_ITransactionalServiceImpl.java
    
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/src/IAServiceSoapBindingImpl.java
    
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/src/Tester.java

Added: 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/IAService.java
URL: 
http://svn.apache.org/viewcvs/webservices/kandula/branches/Kandula_1/src/samples/interopmsft/IAService.java?rev=382668&view=auto
==============================================================================
--- 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/IAService.java 
(added)
+++ 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/IAService.java 
Thu Mar  2 21:26:59 2006
@@ -0,0 +1,22 @@
+/*
+ * Created on Mar 2, 2006
+ *
+ */
+
+/**
+ * @author Dasarath Weeratunge
+ *
+ */
+public class IAService {
+       
+       public void testCommit() {
+       }
+
+       public void testRollback() {
+       }
+
+       public void testAsyncRollback() {
+       }
+
+
+}

Added: 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/IAService.wsdl
URL: 
http://svn.apache.org/viewcvs/webservices/kandula/branches/Kandula_1/src/samples/interopmsft/IAService.wsdl?rev=382668&view=auto
==============================================================================
--- 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/IAService.wsdl 
(added)
+++ 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/IAService.wsdl 
Thu Mar  2 21:26:59 2006
@@ -0,0 +1,128 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions targetNamespace="urn:test" 
xmlns:apachesoap="http://xml.apache.org/xml-soap"; xmlns:impl="urn:impl" 
xmlns:intf="urn:test" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
+<!--WSDL created by Apache Axis version: 1.3
+Built on Oct 05, 2005 (05:23:37 EDT)-->
+
+   <wsdl:message name="testAsyncRollbackRequest">
+
+   </wsdl:message>
+
+   <wsdl:message name="testAsyncRollbackResponse">
+
+   </wsdl:message>
+
+   <wsdl:message name="testCommitRequest">
+
+   </wsdl:message>
+
+   <wsdl:message name="testCommitResponse">
+
+   </wsdl:message>
+
+   <wsdl:message name="testRollbackRequest">
+
+   </wsdl:message>
+
+   <wsdl:message name="testRollbackResponse">
+
+   </wsdl:message>
+
+   <wsdl:portType name="IAService">
+
+      <wsdl:operation name="testCommit">
+
+         <wsdl:input message="intf:testCommitRequest" 
name="testCommitRequest"/>
+
+         <wsdl:output message="intf:testCommitResponse" 
name="testCommitResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="testRollback">
+
+         <wsdl:input message="intf:testRollbackRequest" 
name="testRollbackRequest"/>
+
+         <wsdl:output message="intf:testRollbackResponse" 
name="testRollbackResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="testAsyncRollback">
+
+         <wsdl:input message="intf:testAsyncRollbackRequest" 
name="testAsyncRollbackRequest"/>
+
+         <wsdl:output message="intf:testAsyncRollbackResponse" 
name="testAsyncRollbackResponse"/>
+
+      </wsdl:operation>
+
+   </wsdl:portType>
+
+   <wsdl:binding name="IAServiceSoapBinding" type="intf:IAService">
+
+      <wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
+
+      <wsdl:operation name="testCommit">
+
+         <wsdlsoap:operation soapAction="http://ws.apache.org/kandula/test"/>
+
+         <wsdl:input name="testCommitRequest">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="testCommitResponse">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="testRollback">
+
+         <wsdlsoap:operation soapAction="http://ws.apache.org/kandula/test"/>
+
+         <wsdl:input name="testRollbackRequest">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="testRollbackResponse">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="testAsyncRollback">
+
+         <wsdlsoap:operation soapAction="http://ws.apache.org/kandula/test"/>
+
+         <wsdl:input name="testAsyncRollbackRequest">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="testAsyncRollbackResponse">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+   </wsdl:binding>
+
+   <wsdl:service name="IAServiceService">
+
+      <wsdl:port binding="intf:IAServiceSoapBinding" name="IAService">
+
+         <wsdlsoap:address 
location="http://localhost:8081/axis/services/IAService"/>
+
+      </wsdl:port>
+
+   </wsdl:service>
+
+</wsdl:definitions>

Added: 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/TransactionalService-schema.xml
URL: 
http://svn.apache.org/viewcvs/webservices/kandula/branches/Kandula_1/src/samples/interopmsft/TransactionalService-schema.xml?rev=382668&view=auto
==============================================================================
--- 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/TransactionalService-schema.xml
 (added)
+++ 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/TransactionalService-schema.xml
 Thu Mar  2 21:26:59 2006
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="utf-8"?><xs:schema 
elementFormDefault="qualified" targetNamespace="http://tempuri.org/"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:tns="http://tempuri.org/";><xs:element 
name="Commit"><xs:complexType><xs:sequence/></xs:complexType></xs:element><xs:element
 
name="CommitResponse"><xs:complexType><xs:sequence/></xs:complexType></xs:element><xs:element
 
name="Rollback"><xs:complexType><xs:sequence/></xs:complexType></xs:element><xs:element
 
name="RollbackResponse"><xs:complexType><xs:sequence/></xs:complexType></xs:element><xs:element
 
name="AsyncRollback"><xs:complexType><xs:sequence/></xs:complexType></xs:element><xs:element
 
name="AsyncRollbackResponse"><xs:complexType><xs:sequence/></xs:complexType></xs:element></xs:schema>
\ No newline at end of file

Added: 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/TransactionalService.wsdl
URL: 
http://svn.apache.org/viewcvs/webservices/kandula/branches/Kandula_1/src/samples/interopmsft/TransactionalService.wsdl?rev=382668&view=auto
==============================================================================
--- 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/TransactionalService.wsdl
 (added)
+++ 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/TransactionalService.wsdl
 Thu Mar  2 21:26:59 2006
@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wsdl:definitions name="TransactionalService" 
targetNamespace="http://tempuri.org/"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:wsap10="http://www.w3.org/2005/08/addressing"; 
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"; 
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"; 
xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/09/policy/addressing"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract"; 
xmlns:tns="http://tempuri.org/"; 
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; 
xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"; 
xmlns:wsa10="http://www.w3.org/2005/08/addressing";>
+  <wsp:Policy wsu:Id="CustomTransactionBinding_ITransactionalService_policy">
+    <wsp:ExactlyOne>
+      <wsp:All>
+        <wspe:Utf816FFFECharacterEncoding 
xmlns:wspe="http://schemas.xmlsoap.org/ws/2004/09/policy/encoding"/>
+        <wsap10:UsingAddressing/>
+      </wsp:All>
+    </wsp:ExactlyOne>
+  </wsp:Policy>
+  <wsp:Policy 
wsu:Id="CustomTransactionBinding_ITransactionalService_Commit_policy">
+    <wsp:ExactlyOne>
+      <wsp:All>
+        <wsat:ATAssertion 
xmlns:wsat="http://schemas.xmlsoap.org/ws/2004/10/wsat"/>
+      </wsp:All>
+    </wsp:ExactlyOne>
+  </wsp:Policy>
+  <wsp:Policy 
wsu:Id="CustomTransactionBinding_ITransactionalService_Rollback_policy">
+    <wsp:ExactlyOne>
+      <wsp:All>
+        <wsat:ATAssertion 
xmlns:wsat="http://schemas.xmlsoap.org/ws/2004/10/wsat"/>
+      </wsp:All>
+    </wsp:ExactlyOne>
+  </wsp:Policy>
+  <wsp:Policy 
wsu:Id="CustomTransactionBinding_ITransactionalService_AsyncRollback_policy">
+    <wsp:ExactlyOne>
+      <wsp:All>
+        <wsat:ATAssertion 
xmlns:wsat="http://schemas.xmlsoap.org/ws/2004/10/wsat"/>
+      </wsp:All>
+    </wsp:ExactlyOne>
+  </wsp:Policy>
+  <wsdl:types>
+    <xsd:schema targetNamespace="http://tempuri.org/Imports";>
+       <!--
+      <xsd:import 
schemaLocation="http://131.107.72.15/Transactions_Service_Indigo/TransactionalService.svc?xsd=xsd0";
 namespace="http://tempuri.org/"/>
+      -->
+      <xsd:import schemaLocation="TransactionalService-schema.xml"  
namespace="http://tempuri.org/"/>
+    </xsd:schema>
+  </wsdl:types>
+  
+  <wsdl:message name="ITransactionalService_Commit_InputMessage">
+    <wsdl:part name="parameters" element="tns:Commit"/>
+  </wsdl:message>
+  <wsdl:message name="ITransactionalService_Commit_OutputMessage">
+    <wsdl:part name="parameters" element="tns:CommitResponse"/>
+  </wsdl:message>
+  <wsdl:message name="ITransactionalService_Rollback_InputMessage">
+    <wsdl:part name="parameters" element="tns:Rollback"/>
+  </wsdl:message>
+  <wsdl:message name="ITransactionalService_Rollback_OutputMessage">
+    <wsdl:part name="parameters" element="tns:RollbackResponse"/>
+  </wsdl:message>
+  <wsdl:message name="ITransactionalService_AsyncRollback_InputMessage">
+    <wsdl:part name="parameters" element="tns:AsyncRollback"/>
+  </wsdl:message>
+  <wsdl:message name="ITransactionalService_AsyncRollback_OutputMessage">
+    <wsdl:part name="parameters" element="tns:AsyncRollbackResponse"/>
+  </wsdl:message>
+  
+  <wsdl:portType msc:usingSession="false" name="ITransactionalService">
+    <wsdl:operation name="Commit">
+      <wsdl:input 
wsa10:Action="http://tempuri.org/ITransactionalService/Commit"; 
message="tns:ITransactionalService_Commit_InputMessage"/>
+      <wsdl:output 
wsa10:Action="http://tempuri.org/ITransactionalService/CommitResponse"; 
message="tns:ITransactionalService_Commit_OutputMessage"/>
+    </wsdl:operation>
+    <wsdl:operation name="Rollback">
+      <wsdl:input 
wsa10:Action="http://tempuri.org/ITransactionalService/Rollback"; 
message="tns:ITransactionalService_Rollback_InputMessage"/>
+      <wsdl:output 
wsa10:Action="http://tempuri.org/ITransactionalService/RollbackResponse"; 
message="tns:ITransactionalService_Rollback_OutputMessage"/>
+    </wsdl:operation>
+    <wsdl:operation name="AsyncRollback">
+      <wsdl:input 
wsa10:Action="http://tempuri.org/ITransactionalService/AsyncRollback"; 
message="tns:ITransactionalService_AsyncRollback_InputMessage"/>
+      <wsdl:output 
wsa10:Action="http://tempuri.org/ITransactionalService/AsyncRollbackResponse"; 
message="tns:ITransactionalService_AsyncRollback_OutputMessage"/>
+    </wsdl:operation>
+  </wsdl:portType>
+  
+  
+  <wsdl:binding name="CustomTransactionBinding_ITransactionalService" 
type="tns:ITransactionalService">
+    <wsp:PolicyReference 
URI="#CustomTransactionBinding_ITransactionalService_policy"/>
+    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
+    <wsdl:operation name="Commit">
+      <wsp:PolicyReference 
URI="#CustomTransactionBinding_ITransactionalService_Commit_policy"/>
+      <soap:operation 
soapAction="http://tempuri.org/ITransactionalService/Commit"; style="document"/>
+      <wsdl:input>
+        <soap:body use="literal"/>
+      </wsdl:input>
+      <wsdl:output>
+        <soap:body use="literal"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="Rollback">
+      <wsp:PolicyReference 
URI="#CustomTransactionBinding_ITransactionalService_Rollback_policy"/>
+      <soap:operation 
soapAction="http://tempuri.org/ITransactionalService/Rollback"; 
style="document"/>
+      <wsdl:input>
+        <soap:body use="literal"/>
+      </wsdl:input>
+      <wsdl:output>
+        <soap:body use="literal"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="AsyncRollback">
+      <wsp:PolicyReference 
URI="#CustomTransactionBinding_ITransactionalService_AsyncRollback_policy"/>
+      <soap:operation 
soapAction="http://tempuri.org/ITransactionalService/AsyncRollback"; 
style="document"/>
+      <wsdl:input>
+        <soap:body use="literal"/>
+      </wsdl:input>
+      <wsdl:output>
+        <soap:body use="literal"/>
+      </wsdl:output>
+    </wsdl:operation>
+  </wsdl:binding>
+  <wsdl:service name="TransactionalService">
+    <wsdl:port name="CustomTransactionBinding_ITransactionalService" 
binding="tns:CustomTransactionBinding_ITransactionalService">
+      <soap:address 
location="http://131.107.72.15/Transactions_Service_Indigo/TransactionalService.svc"/>
+      <wsa10:EndpointReference>
+        
<wsa10:Address>http://131.107.72.15/Transactions_Service_Indigo/TransactionalService.svc</wsa10:Address>
+      </wsa10:EndpointReference>
+    </wsdl:port>
+  </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file

Added: webservices/kandula/branches/Kandula_1/src/samples/interopmsft/build.xml
URL: 
http://svn.apache.org/viewcvs/webservices/kandula/branches/Kandula_1/src/samples/interopmsft/build.xml?rev=382668&view=auto
==============================================================================
--- webservices/kandula/branches/Kandula_1/src/samples/interopmsft/build.xml 
(added)
+++ webservices/kandula/branches/Kandula_1/src/samples/interopmsft/build.xml 
Thu Mar  2 21:26:59 2006
@@ -0,0 +1,90 @@
+<?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 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>              
+        </path>
+        
+        <taskdef resource="axis-tasks.properties"  
classpathref="base.classpath" />
+        
+        <target name="compile" depends="wsdl2java" >
+               <javac srcdir="${src.dir};${build.dir}/src" 
destdir="${build.dir}">
+                       <classpath refid="base.classpath" />
+               </javac>
+        </target>
+        
+        <target name="clean" >
+               <delete dir="${build.dir}" />   
+        </target> 
+
+        <target name="init" >
+               <mkdir dir="${build.dir}" />
+               <mkdir dir="${build.dir}/src" />
+        </target>
+        
+        <target name="wsdl2java" depends="init">
+                <axis-wsdl2java
+                       output="${build.dir}/src"
+                       serverside = "false"
+                       testcase = "false"
+                       url= "TransactionalService.wsdl" >                      
+                       <mapping namespace="http://tempuri.org/"; package="" />
+                </axis-wsdl2java>
+                <axis-wsdl2java
+                       output="${build.dir}/src"
+                       serverside = "false"
+                       testcase = "false"
+                       url= "IAService.wsdl" >                 
+                       <mapping namespace="urn:test" package="" />
+                </axis-wsdl2java>
+       </target>
+       
+       <target name="dist" depends="compile">
+               <jar jarfile="${build.dir}/interop-msft.jar">
+                       <fileset dir="${build.dir}">
+                               <include name="**/*.class" />
+                       </fileset>
+               </jar>
+       </target>
+       
+        <target name="java2wsdl" >                             
+                <axis-java2wsdl
+                       output="IAService.wsdl"
+                       classname = "IAService" 
+                       location = 
"http://localhost:8081/axis/services/IAService";
+                   soapaction = "http://ws.apache.org/kandula/test";
+                       namespace ="urn:test" 
+                       namespaceimpl = "urn:impl"
+                       style = "document" >
+                       <classpath >
+                               <pathelement location = "${basedir}"/>
+                       </classpath>
+               </axis-java2wsdl>
+       </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="TransactionalServiceTestCase" />
+               </junit>
+        </target>
+</project>
\ No newline at end of file

Added: 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/deploy.wsdd
URL: 
http://svn.apache.org/viewcvs/webservices/kandula/branches/Kandula_1/src/samples/interopmsft/deploy.wsdd?rev=382668&view=auto
==============================================================================
--- webservices/kandula/branches/Kandula_1/src/samples/interopmsft/deploy.wsdd 
(added)
+++ webservices/kandula/branches/Kandula_1/src/samples/interopmsft/deploy.wsdd 
Thu Mar  2 21:26:59 2006
@@ -0,0 +1,54 @@
+<!-- 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 TransactionalService WSDL service -->
+
+  <service name="CustomTransactionBinding_ITransactionalService" 
provider="java:RPC" style="wrapped" use="literal">
+      <parameter name="wsdlTargetNamespace" value="http://tempuri.org/"/>
+      <parameter name="wsdlServiceElement" value="TransactionalService"/>
+      <parameter name="schemaQualified" value="http://tempuri.org/"/>
+      <parameter name="schemaUnqualified" value="http://tempuri.org/Imports"/>
+      <parameter name="wsdlServicePort" 
value="CustomTransactionBinding_ITransactionalService"/>
+      <parameter name="className" 
value="CustomTransactionBinding_ITransactionalServiceImpl"/>
+      <parameter name="wsdlPortType" value="ITransactionalService"/>
+      <parameter name="typeMappingVersion" value="1.2"/>
+      <operation name="commit" qname="operNS:Commit" 
xmlns:operNS="http://tempuri.org/"; 
soapAction="http://tempuri.org/ITransactionalService/Commit"; >
+      </operation>
+      <operation name="rollback" qname="operNS:Rollback" 
xmlns:operNS="http://tempuri.org/"; 
soapAction="http://tempuri.org/ITransactionalService/Rollback"; >
+      </operation>
+      <operation name="asyncRollback" qname="operNS:AsyncRollback" 
xmlns:operNS="http://tempuri.org/"; 
soapAction="http://tempuri.org/ITransactionalService/AsyncRollback"; >
+      </operation>
+      <parameter name="allowedMethods" value="commit asyncRollback rollback"/>
+
+  </service>
+  
+  <!-- Services from IAServiceService WSDL service -->
+
+  <service name="IAService" provider="java:RPC" style="document" use="literal">
+      <parameter name="wsdlTargetNamespace" value="urn:test"/>
+      <parameter name="wsdlServiceElement" value="IAServiceService"/>
+      <parameter name="wsdlServicePort" value="IAService"/>
+      <parameter name="className" value="IAServiceSoapBindingImpl"/>
+      <parameter name="wsdlPortType" value="IAService"/>
+      <parameter name="typeMappingVersion" value="1.2"/>
+      <operation name="testCommit" qname="testCommit" 
soapAction="http://ws.apache.org/kandula/test"; >
+      </operation>
+      <operation name="testRollback" qname="testRollback" 
soapAction="http://ws.apache.org/kandula/test"; >
+      </operation>
+      <operation name="testAsyncRollback" qname="testAsyncRollback" 
soapAction="http://ws.apache.org/kandula/test"; >
+      </operation>
+      <parameter name="allowedMethods" value="testRollback testAsyncRollback 
testCommit"/>
+
+  </service>
+  
+  
+</deployment>

Added: 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/src/CustomTransactionBinding_ITransactionalServiceImpl.java
URL: 
http://svn.apache.org/viewcvs/webservices/kandula/branches/Kandula_1/src/samples/interopmsft/src/CustomTransactionBinding_ITransactionalServiceImpl.java?rev=382668&view=auto
==============================================================================
--- 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/src/CustomTransactionBinding_ITransactionalServiceImpl.java
 (added)
+++ 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/src/CustomTransactionBinding_ITransactionalServiceImpl.java
 Thu Mar  2 21:26:59 2006
@@ -0,0 +1,19 @@
+/**
+ * CustomTransactionBinding_ITransactionalServiceImpl.java
+ * 
+ * This file was auto-generated from WSDL by the Apache Axis 1.3 Oct 05, 2005
+ * (05:23:37 EDT) WSDL2Java emitter.
+ */
+
+public class CustomTransactionBinding_ITransactionalServiceImpl implements
+               ITransactionalService {
+       public void commit() throws java.rmi.RemoteException {
+       }
+
+       public void rollback() throws java.rmi.RemoteException {
+       }
+
+       public void asyncRollback() throws java.rmi.RemoteException {
+       }
+
+}
\ No newline at end of file

Added: 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/src/IAServiceSoapBindingImpl.java
URL: 
http://svn.apache.org/viewcvs/webservices/kandula/branches/Kandula_1/src/samples/interopmsft/src/IAServiceSoapBindingImpl.java?rev=382668&view=auto
==============================================================================
--- 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/src/IAServiceSoapBindingImpl.java
 (added)
+++ 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/src/IAServiceSoapBindingImpl.java
 Thu Mar  2 21:26:59 2006
@@ -0,0 +1,47 @@
+
+import java.net.URL;
+import java.rmi.RemoteException;
+
+import org.apache.kandula.coordinator.at.TransactionManagerImpl;
+
+/**
+ * IAServiceSoapBindingImpl.java
+ * 
+ * This file was auto-generated from WSDL by the Apache Axis 1.3 Oct 05, 2005
+ * (05:23:37 EDT) WSDL2Java emitter.
+ */
+
+public class IAServiceSoapBindingImpl implements IAService_PortType {
+       TransactionManagerImpl wstm = TransactionManagerImpl.getInstance();
+
+       public final String TRANSACTIONS_SERVICE_INDIGO = 
"http://131.107.72.15/Transactions_Service_Indigo/TransactionalService.svc";;
+
+       //public final String TRANSACTIONS_SERVICE = 
TRANSACTIONS_SERVICE_INDIGO;
+       
+//     public final String TRANSACTIONS_SERVICE = 
"http://localhost:8081/axis/services/CustomTransactionBinding_ITransactionalService";;
+       
+       public final String TRANSACTIONS_SERVICE = 
"http://localhost:8082/Transactions_Service_Indigo/TransactionalService.svc";;
+
+       public void testCommit() throws RemoteException {
+               try {
+                       ITransactionalService svc = new 
TransactionalServiceLocator().getCustomTransactionBinding_ITransactionalService(new
 URL(
+                                       TRANSACTIONS_SERVICE));
+                       wstm.begin();
+                       System.out.println("[IAServiceSoapBindingImpl] test");
+                       svc.commit();
+                       wstm.commit();
+               } catch (Exception e) {
+                       if (e instanceof RemoteException)
+                               throw (RemoteException) e;
+                       else
+                               throw new RemoteException(e.getMessage());
+               }
+       }
+
+       public void testRollback() throws java.rmi.RemoteException {
+       }
+
+       public void testAsyncRollback() throws java.rmi.RemoteException {
+       }
+
+}
\ No newline at end of file

Added: 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/src/Tester.java
URL: 
http://svn.apache.org/viewcvs/webservices/kandula/branches/Kandula_1/src/samples/interopmsft/src/Tester.java?rev=382668&view=auto
==============================================================================
--- 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/src/Tester.java 
(added)
+++ 
webservices/kandula/branches/Kandula_1/src/samples/interopmsft/src/Tester.java 
Thu Mar  2 21:26:59 2006
@@ -0,0 +1,15 @@
+/*
+ * Created on Mar 2, 2006
+ *
+ */
+
+/**
+ * @author Dasarath Weeratunge
+ *  
+ */
+public class Tester {
+
+       public static void main(String[] args) throws Exception {
+               new IAServiceServiceLocator().getIAService().testCommit();
+       }
+}
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to