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 th...@apache.org on 2006/12/21 15:31:56 UTC

svn commit: r489372 - in /webservices/kandula/trunk/java: maven.xml schema/ schema/ws-addr.xsd schema/wsat.wsdl schema/wsat.xsd schema/wscoor.wsdl schema/wscoor.xsd

Author: thilina
Date: Thu Dec 21 06:31:56 2006
New Revision: 489372

URL: http://svn.apache.org/viewvc?view=rev&rev=489372
Log:
Let's use Axis2 code generated code for Kandula2.. 

I gave this a try at the initial stages, but Axis2 data binding was not able to handle it well.. So fell back to OMElements.. 
I think now the time is right to try it again..

Still I'm seeing some probs when code generating to ws-addressing schema.. Replaced it with xsd:any for the moment..

Added:
    webservices/kandula/trunk/java/schema/
    webservices/kandula/trunk/java/schema/ws-addr.xsd
    webservices/kandula/trunk/java/schema/wsat.wsdl
    webservices/kandula/trunk/java/schema/wsat.xsd
    webservices/kandula/trunk/java/schema/wscoor.wsdl
    webservices/kandula/trunk/java/schema/wscoor.xsd
Modified:
    webservices/kandula/trunk/java/maven.xml

Modified: webservices/kandula/trunk/java/maven.xml
URL: http://svn.apache.org/viewvc/webservices/kandula/trunk/java/maven.xml?view=diff&rev=489372&r1=489371&r2=489372
==============================================================================
--- webservices/kandula/trunk/java/maven.xml (original)
+++ webservices/kandula/trunk/java/maven.xml Thu Dec 21 06:31:56 2006
@@ -13,9 +13,31 @@
 
 	<goal name="generate:code">
 		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
-				<classpath refid="maven.dependency.classpath" />
-				<arg line=" -o target/src -g -ss -sd -uri temp/wsat.wsdl" />
-			</java>
+			<classpath refid="maven.dependency.classpath" />
+			<arg line=" -o target -p org.apache.kandula.wsat.twopc -g -ss -sd -sn Participant2PCService -uri schema/wsat.wsdl" />
+		</java>
+		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+			<classpath refid="maven.dependency.classpath" />
+			<arg line=" -o target -p org.apache.kandula.wsat.twopc -g -ss -sd -sn Coordinator2PCService -uri schema/wsat.wsdl" />
+		</java>
+		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+			<classpath refid="maven.dependency.classpath" />
+			<arg line=" -o target -p org.apache.kandula.wsat.completion -g -ss -sd -sn CompletionInitiator -uri schema/wsat.wsdl" />
+		</java>
+		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+			<classpath refid="maven.dependency.classpath" />
+			<arg line=" -o target -p org.apache.kandula.wsat.completion -g -ss -sd -sn CompletionCoordinator -uri schema/wsat.wsdl" />
+		</java>
+		
+		
+		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+			<classpath refid="maven.dependency.classpath" />
+			<arg line=" -o target -p org.apache.kandula.wscoor -g  -ss -sd -sn RegistrationService -uri schema/wscoor.wsdl" />
+		</java>
+		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+			<classpath refid="maven.dependency.classpath" />
+			<arg line=" -o target -p org.apache.kandula.wscoor -g  -ss -sd -sn ActivationService -uri schema/wscoor.wsdl" />
+		</java>
 	</goal>
 
 	<postGoal name="test:compile">

Added: webservices/kandula/trunk/java/schema/ws-addr.xsd
URL: http://svn.apache.org/viewvc/webservices/kandula/trunk/java/schema/ws-addr.xsd?view=auto&rev=489372
==============================================================================
--- webservices/kandula/trunk/java/schema/ws-addr.xsd (added)
+++ webservices/kandula/trunk/java/schema/ws-addr.xsd Thu Dec 21 06:31:56 2006
@@ -0,0 +1,156 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd">
+<!--
+    W3C XML Schema defined in the Web Services Addressing 1.0 specification
+    http://www.w3.org/TR/ws-addr-core
+
+   Copyright © 2005 World Wide Web Consortium,
+
+   (Massachusetts Institute of Technology, European Research Consortium for
+   Informatics and Mathematics, Keio University). All Rights Reserved. This
+   work is distributed under the W3C® Software License [1] in the hope that
+   it will be useful, but WITHOUT ANY WARRANTY; without even the implied
+   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+   [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+
+   $Id: ws-addr.xsd,v 1.3 2005/08/09 13:17:35 hugo Exp $
+-->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2005/08/addressing" targetNamespace="http://www.w3.org/2005/08/addressing" blockDefault="#all" elementFormDefault="qualified" finalDefault="" attributeFormDefault="unqualified">
+	
+	<!-- Constructs from the WS-Addressing Core -->
+
+	<xs:element name="EndpointReference" type="tns:EndpointReferenceType"/>
+	<xs:complexType name="EndpointReferenceType" mixed="false">
+		<xs:sequence>
+			<xs:element name="Address" type="tns:AttributedURIType"/>
+			<xs:element name="ReferenceParameters" type="tns:ReferenceParametersType" minOccurs="0"/>
+
+			<xs:element ref="tns:Metadata" minOccurs="0"/>
+			<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+		</xs:sequence>
+		<xs:anyAttribute namespace="##other" processContents="lax"/>
+	</xs:complexType>
+	
+	<xs:complexType name="ReferenceParametersType" mixed="false">
+		<xs:sequence>
+			<xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+		</xs:sequence>
+
+		<xs:anyAttribute namespace="##other" processContents="lax"/>
+	</xs:complexType>
+	
+	<xs:element name="Metadata" type="tns:MetadataType"/>
+	<xs:complexType name="MetadataType" mixed="false">
+		<xs:sequence>
+			<xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+		</xs:sequence>
+		<xs:anyAttribute namespace="##other" processContents="lax"/>
+	</xs:complexType>
+
+	
+	<xs:element name="MessageID" type="tns:AttributedURIType"/>
+	<xs:element name="RelatesTo" type="tns:RelatesToType"/>
+	<xs:complexType name="RelatesToType" mixed="false">
+		<xs:simpleContent>
+			<xs:extension base="xs:anyURI">
+				<xs:attribute name="RelationshipType" type="tns:RelationshipTypeOpenEnum" use="optional" default="http://www.w3.org/2005/08/addressing/reply"/>
+				<xs:anyAttribute namespace="##other" processContents="lax"/>
+			</xs:extension>
+		</xs:simpleContent>
+
+	</xs:complexType>
+	
+	<xs:simpleType name="RelationshipTypeOpenEnum">
+		<xs:union memberTypes="tns:RelationshipType xs:anyURI"/>
+	</xs:simpleType>
+	
+	<xs:simpleType name="RelationshipType">
+		<xs:restriction base="xs:anyURI">
+			<xs:enumeration value="http://www.w3.org/2005/08/addressing/reply"/>
+		</xs:restriction>
+	</xs:simpleType>
+
+	
+	<xs:element name="ReplyTo" type="tns:EndpointReferenceType"/>
+	<xs:element name="From" type="tns:EndpointReferenceType"/>
+	<xs:element name="FaultTo" type="tns:EndpointReferenceType"/>
+	<xs:element name="To" type="tns:AttributedURIType"/>
+	<xs:element name="Action" type="tns:AttributedURIType"/>
+
+	<xs:complexType name="AttributedURIType" mixed="false">
+		<xs:simpleContent>
+			<xs:extension base="xs:anyURI">
+
+				<xs:anyAttribute namespace="##other" processContents="lax"/>
+			</xs:extension>
+		</xs:simpleContent>
+	</xs:complexType>
+	
+	<!-- Constructs from the WS-Addressing SOAP binding -->
+
+	<xs:attribute name="IsReferenceParameter" type="xs:boolean"/>
+	
+	<xs:simpleType name="FaultCodesOpenEnumType">
+		<xs:union memberTypes="tns:FaultCodesType xs:QName"/>
+
+	</xs:simpleType>
+	
+	<xs:simpleType name="FaultCodesType">
+		<xs:restriction base="xs:QName">
+			<xs:enumeration value="tns:InvalidAddressingHeader"/>
+			<xs:enumeration value="tns:InvalidAddress"/>
+			<xs:enumeration value="tns:InvalidEPR"/>
+			<xs:enumeration value="tns:InvalidCardinality"/>
+			<xs:enumeration value="tns:MissingAddressInEPR"/>
+			<xs:enumeration value="tns:DuplicateMessageID"/>
+
+			<xs:enumeration value="tns:ActionMismatch"/>
+			<xs:enumeration value="tns:MessageAddressingHeaderRequired"/>
+			<xs:enumeration value="tns:DestinationUnreachable"/>
+			<xs:enumeration value="tns:ActionNotSupported"/>
+			<xs:enumeration value="tns:EndpointUnavailable"/>
+		</xs:restriction>
+	</xs:simpleType>
+	
+	<xs:element name="RetryAfter" type="tns:AttributedUnsignedLongType"/>
+	<xs:complexType name="AttributedUnsignedLongType" mixed="false">
+
+		<xs:simpleContent>
+			<xs:extension base="xs:unsignedLong">
+				<xs:anyAttribute namespace="##other" processContents="lax"/>
+			</xs:extension>
+		</xs:simpleContent>
+	</xs:complexType>
+	
+	<xs:element name="ProblemHeaderQName" type="tns:AttributedQNameType"/>
+	<xs:complexType name="AttributedQNameType" mixed="false">
+		<xs:simpleContent>
+
+			<xs:extension base="xs:QName">
+				<xs:anyAttribute namespace="##other" processContents="lax"/>
+			</xs:extension>
+		</xs:simpleContent>
+	</xs:complexType>
+	
+	<xs:element name="ProblemHeader" type="tns:AttributedAnyType"/>
+	<xs:complexType name="AttributedAnyType" mixed="false">
+		<xs:sequence>
+			<xs:any namespace="##any" processContents="lax" minOccurs="1" maxOccurs="1"/>
+
+		</xs:sequence>
+		<xs:anyAttribute namespace="##other" processContents="lax"/>
+	</xs:complexType>
+	
+	<xs:element name="ProblemIRI" type="tns:AttributedURIType"/>
+	
+	<xs:element name="ProblemAction" type="tns:ProblemActionType"/>
+	<xs:complexType name="ProblemActionType" mixed="false">
+		<xs:sequence>
+			<xs:element ref="tns:Action" minOccurs="0"/>
+			<xs:element name="SoapAction" minOccurs="0" type="xs:anyURI"/>
+
+		</xs:sequence>
+		<xs:anyAttribute namespace="##other" processContents="lax"/>
+	</xs:complexType>	
+</xs:schema>

Added: webservices/kandula/trunk/java/schema/wsat.wsdl
URL: http://svn.apache.org/viewvc/webservices/kandula/trunk/java/schema/wsat.wsdl?view=auto&rev=489372
==============================================================================
--- webservices/kandula/trunk/java/schema/wsat.wsdl (added)
+++ webservices/kandula/trunk/java/schema/wsat.wsdl Thu Dec 21 06:31:56 2006
@@ -0,0 +1,207 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (c) OASIS Open 2006.  -->
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:xs="http://www.w3.org/2001/XMLSchema"
+	xmlns:wsat="http://docs.oasis-open.org/ws-tx/wsat/2006/06"
+	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+	targetNamespace="http://docs.oasis-open.org/ws-tx/wsat/2006/06">
+	<wsdl:types>
+		<xs:schema>
+			<xs:import namespace="http://docs.oasis-open.org/ws-tx/wsat/2006/06"
+				schemaLocation="wsat.xsd" />
+		</xs:schema>
+	</wsdl:types>
+	<!-- Messages -->
+	<wsdl:message name="Prepare">
+		<wsdl:part name="parameters" element="wsat:Prepare" />
+	</wsdl:message>
+	<wsdl:message name="Prepared">
+		<wsdl:part name="parameters" element="wsat:Prepared" />
+	</wsdl:message>
+	<wsdl:message name="Aborted">
+		<wsdl:part name="parameters" element="wsat:Aborted" />
+	</wsdl:message>
+	<wsdl:message name="ReadOnly">
+		<wsdl:part name="parameters" element="wsat:ReadOnly" />
+	</wsdl:message>
+	<wsdl:message name="Commit">
+		<wsdl:part name="parameters" element="wsat:Commit" />
+	</wsdl:message>
+	<wsdl:message name="Rollback">
+		<wsdl:part name="parameters" element="wsat:Rollback" />
+	</wsdl:message>
+	<wsdl:message name="Committed">
+		<wsdl:part name="parameters" element="wsat:Committed" />
+	</wsdl:message>
+	<!-- Port Types -->
+	<wsdl:portType name="CompletionCoordinatorPortType">
+		<wsdl:operation name="CommitOperation">
+			<wsdl:input message="wsat:Commit" />
+		</wsdl:operation>
+		<wsdl:operation name="RollbackOperation">
+			<wsdl:input message="wsat:Rollback" />
+		</wsdl:operation>
+	</wsdl:portType>
+	<wsdl:portType name="CompletionInitiatorPortType">
+		<wsdl:operation name="CommittedOperation">
+			<wsdl:input message="wsat:Committed" />
+		</wsdl:operation>
+		<wsdl:operation name="AbortedOperation">
+			<wsdl:input message="wsat:Aborted" />
+		</wsdl:operation>
+	</wsdl:portType>
+	<wsdl:portType name="CoordinatorPortType">
+		<wsdl:operation name="PreparedOperation">
+			<wsdl:input message="wsat:Prepared" />
+		</wsdl:operation>
+		<wsdl:operation name="AbortedOperation">
+			<wsdl:input message="wsat:Aborted" />
+		</wsdl:operation>
+		<wsdl:operation name="ReadOnlyOperation">
+			<wsdl:input message="wsat:ReadOnly" />
+		</wsdl:operation>
+		<wsdl:operation name="CommittedOperation">
+			<wsdl:input message="wsat:Committed" />
+		</wsdl:operation>
+	</wsdl:portType>
+	<wsdl:portType name="ParticipantPortType">
+		<wsdl:operation name="PrepareOperation">
+			<wsdl:input message="wsat:Prepare" />
+		</wsdl:operation>
+		<wsdl:operation name="CommitOperation">
+			<wsdl:input message="wsat:Commit" />
+		</wsdl:operation>
+		<wsdl:operation name="RollbackOperation">
+			<wsdl:input message="wsat:Rollback" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:binding name="CompletionCoordinatorBinding"
+		type="wsat:CompletionCoordinatorPortType">
+		<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
+			style="document" />
+		<wsdl:operation name="CommitOperation">
+			<soap:operation
+				soapAction="http://docs.oasis-open.org/ws-tx/wsat/2006/06/Commit" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+		</wsdl:operation>
+		<wsdl:operation name="RollbackOperation">
+			<soap:operation
+				soapAction="http://docs.oasis-open.org/ws-tx/wsat/2006/06/Rollback" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:binding name="CompletionInitiatorBinding"
+		type="wsat:CompletionInitiatorPortType">
+		<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
+			style="document" />
+		<wsdl:operation name="CommittedOperation">
+			<soap:operation
+				soapAction="http://docs.oasis-open.org/ws-tx/wsat/2006/06/Committed" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+		</wsdl:operation>
+		<wsdl:operation name="AbortedOperation">
+			<soap:operation
+				soapAction="http://docs.oasis-open.org/ws-tx/wsat/2006/06/Aborted" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:binding name="Coordinator2PCBinding"
+		type="wsat:CoordinatorPortType">
+		<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
+			style="document" />
+		<wsdl:operation name="AbortedOperation">
+			<soap:operation
+				soapAction="http://docs.oasis-open.org/ws-tx/wsat/2006/06/Aborted" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+		</wsdl:operation>
+		<wsdl:operation name="ReadOnlyOperation">
+			<soap:operation
+				soapAction="http://docs.oasis-open.org/ws-tx/wsat/2006/06/ReadOnly" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+		</wsdl:operation>
+		<wsdl:operation name="PreparedOperation">
+			<soap:operation
+				soapAction="http://docs.oasis-open.org/ws-tx/wsat/2006/06/Prepared" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+		</wsdl:operation>
+		<wsdl:operation name="CommittedOperation">
+			<soap:operation
+				soapAction="http://docs.oasis-open.org/ws-tx/wsat/2006/06/Committed" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+		</wsdl:operation>
+	</wsdl:binding>
+
+
+	<wsdl:binding name="Participant2PCBinding"
+		type="wsat:ParticipantPortType">
+		<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
+			style="document" />
+		<wsdl:operation name="PrepareOperation">
+			<soap:operation
+				soapAction="http://docs.oasis-open.org/ws-tx/wsat/2006/06/Prepare" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+		</wsdl:operation>
+		<wsdl:operation name="CommitOperation">
+			<soap:operation
+				soapAction="http://docs.oasis-open.org/ws-tx/wsat/2006/06/Commit" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+		</wsdl:operation>
+		<wsdl:operation name="RollbackOperation">
+			<soap:operation
+				soapAction="http://docs.oasis-open.org/ws-tx/wsat/2006/06/Rollback" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:service name="Participant2PCService">
+		<wsdl:port binding="wsat:Participant2PCBinding" name="Participant2PC">
+			<soap:address
+				location="http://localhost:8081/axis2/services/Participant" />
+		</wsdl:port>
+	</wsdl:service>
+	<wsdl:service name="Coordinator2PCService">
+		<wsdl:port binding="wsat:Coordinator2PCBinding" name="Coordinator2PC">
+			<soap:address
+				location="http://localhost:8081/axis2/services/Coordinator" />
+		</wsdl:port>
+	</wsdl:service>
+	<wsdl:service name="CompletionInitiator">
+		<wsdl:port binding="wsat:CompletionInitiatorBinding"
+			name="CompletionInitiator">
+			<soap:address
+				location="http://localhost:8081/axis2/services/CompletionInitiator" />
+		</wsdl:port>
+	</wsdl:service>
+	<wsdl:service name="CompletionCoordinator">
+		<wsdl:port binding="wsat:CompletionCoordinatorBinding"
+			name="CompletionCoordinator">
+			<soap:address
+				location="http://localhost:8081/axis2/services/CompletionCoordinator" />
+		</wsdl:port>
+	</wsdl:service>
+</wsdl:definitions>
\ No newline at end of file

Added: webservices/kandula/trunk/java/schema/wsat.xsd
URL: http://svn.apache.org/viewvc/webservices/kandula/trunk/java/schema/wsat.xsd?view=auto&rev=489372
==============================================================================
--- webservices/kandula/trunk/java/schema/wsat.xsd (added)
+++ webservices/kandula/trunk/java/schema/wsat.xsd Thu Dec 21 06:31:56 2006
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (c) OASIS Open 2006.  -->
+<xsd:schema targetNamespace="http://docs.oasis-open.org/ws-tx/wsat/2006/06" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsat="http://docs.oasis-open.org/ws-tx/wsat/2006/06" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
+    <xsd:complexType name="Notification">
+        <xsd:sequence>
+            <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+        </xsd:sequence>
+        <xsd:anyAttribute namespace="##other" processContents="lax"/>
+    </xsd:complexType>
+    <xsd:element name="Prepare" type="wsat:Notification"/>
+    <xsd:element name="Prepared" type="wsat:Notification"/>
+    <xsd:element name="Aborted" type="wsat:Notification"/>
+    <xsd:element name="ReadOnly" type="wsat:Notification"/>
+    <xsd:element name="Commit" type="wsat:Notification"/>
+    <xsd:element name="Rollback" type="wsat:Notification"/>
+    <xsd:element name="Committed" type="wsat:Notification"/>
+    <xsd:simpleType name="ErrorCodes">
+        <xsd:restriction base="xsd:QName">
+            <xsd:enumeration value="wsat:InconsistentInternalState"/>
+            <xsd:enumeration value="wsat:UnknownTransaction"/>
+        </xsd:restriction>
+    </xsd:simpleType>
+    
+    <!-- Policy assertion -->
+    <xsd:element name="ATAssertion">
+        <xsd:complexType>
+            <xsd:sequence>
+                <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+            </xsd:sequence>
+            <xsd:anyAttribute namespace="##other" processContents="lax"/>
+        </xsd:complexType>
+    </xsd:element>
+</xsd:schema>
\ No newline at end of file

Added: webservices/kandula/trunk/java/schema/wscoor.wsdl
URL: http://svn.apache.org/viewvc/webservices/kandula/trunk/java/schema/wscoor.wsdl?view=auto&rev=489372
==============================================================================
--- webservices/kandula/trunk/java/schema/wscoor.wsdl (added)
+++ webservices/kandula/trunk/java/schema/wscoor.wsdl Thu Dec 21 06:31:56 2006
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (c) OASIS Open 2006.  -->
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:xs="http://www.w3.org/2001/XMLSchema"
+	xmlns:wscoor="http://docs.oasis-open.org/ws-tx/wscoor/2006/06"
+	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+	targetNamespace="http://docs.oasis-open.org/ws-tx/wscoor/2006/06">
+	<wsdl:types>
+		<xs:schema>
+			<xs:import
+				namespace="http://docs.oasis-open.org/ws-tx/wscoor/2006/06"
+				schemaLocation="wscoor.xsd" />
+		</xs:schema>
+	</wsdl:types>
+	<!-- Messages -->
+	<wsdl:message name="CreateCoordinationContext">
+		<wsdl:part name="parameters" element="wscoor:CreateCoordinationContext" />
+	</wsdl:message>
+	<wsdl:message name="CreateCoordinationContextResponse">
+		<wsdl:part name="parameters"
+			element="wscoor:CreateCoordinationContextResponse" />
+	</wsdl:message>
+	<wsdl:message name="Register">
+		<wsdl:part name="parameters" element="wscoor:Register" />
+	</wsdl:message>
+	<wsdl:message name="RegisterResponse">
+		<wsdl:part name="parameters" element="wscoor:RegisterResponse" />
+	</wsdl:message>
+	<!-- Port Types -->
+	<wsdl:portType name="ActivationPortType">
+		<wsdl:operation name="CreateCoordinationContextOperation">
+			<wsdl:input message="wscoor:CreateCoordinationContext" />
+			<wsdl:output message="wscoor:CreateCoordinationContextResponse" />
+		</wsdl:operation>
+	</wsdl:portType>
+	<wsdl:portType name="RegistrationPortType">
+		<wsdl:operation name="RegisterOperation">
+			<wsdl:input message="wscoor:Register" />
+			<wsdl:output message="wscoor:RegisterResponse" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:binding name="ActivationPortTypeBinding"
+		type="wscoor:ActivationPortType">
+		<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
+			style="document" />
+		<wsdl:operation name="CreateCoordinationContextOperation">
+			<soap:operation
+				soapAction="http://docs.oasis-open.org/ws-tx/wscoor/2006/06/CreateCoordinationContext" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:binding name="RegistrationPortTypeBinding"
+		type="wscoor:RegistrationPortType">
+		<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
+			style="document" />
+		<wsdl:operation name="RegisterOperation">
+			<soap:operation
+				soapAction="http://docs.oasis-open.org/ws-tx/wscoor/2006/06/Register" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+	<wsdl:service name="ActivationService">
+		<wsdl:port binding="wscoor:ActivationPortTypeBinding"
+			name="ActivationCoordinator">
+			<soap:address
+				location="http://localhost:8081/axis2/services/ActivationCoordinator" />
+		</wsdl:port>
+	</wsdl:service>
+	<wsdl:service name="RegistrationService">
+		<wsdl:port binding="wscoor:RegistrationPortTypeBinding"
+			name="RegistrationCoordinator">
+			<soap:address
+				location="http://localhost:8081/axis2/services/RegistrationCoordinator" />
+		</wsdl:port>
+	</wsdl:service>
+
+</wsdl:definitions>
\ No newline at end of file

Added: webservices/kandula/trunk/java/schema/wscoor.xsd
URL: http://svn.apache.org/viewvc/webservices/kandula/trunk/java/schema/wscoor.xsd?view=auto&rev=489372
==============================================================================
--- webservices/kandula/trunk/java/schema/wscoor.xsd (added)
+++ webservices/kandula/trunk/java/schema/wscoor.xsd Thu Dec 21 06:31:56 2006
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (c) OASIS Open 2006.  -->
+<xsd:schema targetNamespace="http://docs.oasis-open.org/ws-tx/wscoor/2006/06" xmlns:wscoor="http://docs.oasis-open.org/ws-tx/wscoor/2006/06" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
+  <!-- Replaced wsa:endpointnreference with xsd:any due to Axis2 ADB not being able parse ws-addr.xsd..  -->
+  <!-- xsd:import namespace="http://www.w3.org/2005/08/addressing" schemaLocation="ws-addr.xsd"/-->
+  <xsd:element name="Expires">
+    <xsd:complexType>
+      <xsd:simpleContent>
+        <xsd:extension base="xsd:unsignedInt">
+          <xsd:anyAttribute namespace="##other"/>
+        </xsd:extension>
+      </xsd:simpleContent>
+    </xsd:complexType>
+  </xsd:element>
+  <xsd:complexType name="CoordinationContextType">
+    <xsd:sequence>
+      <xsd:element name="Identifier">
+        <xsd:complexType>
+          <xsd:simpleContent>
+            <xsd:extension base="xsd:anyURI">
+              <xsd:anyAttribute namespace="##other"/>
+            </xsd:extension>
+          </xsd:simpleContent>
+        </xsd:complexType>
+      </xsd:element>
+      <xsd:element ref="wscoor:Expires" minOccurs="0"/>
+      <xsd:element name="CoordinationType" type="xsd:anyURI"/>
+      <xsd:element name="RegistrationService" type="xsd:anyType"/>
+    </xsd:sequence>
+    <xsd:anyAttribute namespace="##other" processContents="lax"/>
+  </xsd:complexType>
+  <xsd:element name="CoordinationContext">
+    <xsd:complexType>
+      <xsd:complexContent>
+        <xsd:extension base="wscoor:CoordinationContextType">
+          <xsd:sequence>
+            <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+          </xsd:sequence>
+        </xsd:extension>
+      </xsd:complexContent>
+    </xsd:complexType>
+  </xsd:element>
+  <xsd:complexType name="CreateCoordinationContextType">
+    <xsd:sequence>
+      <xsd:element ref="wscoor:Expires" minOccurs="0"/>
+      <xsd:element name="CurrentContext" minOccurs="0">
+        <xsd:complexType>
+          <xsd:complexContent>
+            <xsd:extension base="wscoor:CoordinationContextType">
+              <xsd:sequence>
+                <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+              </xsd:sequence>
+            </xsd:extension>
+          </xsd:complexContent>
+        </xsd:complexType>
+      </xsd:element>
+      <xsd:element name="CoordinationType" type="xsd:anyURI"/>
+      <xsd:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+    </xsd:sequence>
+    <xsd:anyAttribute namespace="##other" processContents="lax"/>
+  </xsd:complexType>
+  <xsd:element name="CreateCoordinationContext" type="wscoor:CreateCoordinationContextType"/>
+  <xsd:complexType name="CreateCoordinationContextResponseType">
+    <xsd:sequence>
+      <xsd:element ref="wscoor:CoordinationContext"/>
+      <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+    </xsd:sequence>
+    <xsd:anyAttribute namespace="##other" processContents="lax"/>
+  </xsd:complexType>
+  <xsd:element name="CreateCoordinationContextResponse" type="wscoor:CreateCoordinationContextResponseType"/>
+  <xsd:complexType name="RegisterType">
+    <xsd:sequence>
+      <xsd:element name="ProtocolIdentifier" type="xsd:anyURI"/>
+      <xsd:element name="ParticipantProtocolService" type="xsd:anyType"/>
+      <xsd:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+    </xsd:sequence>
+    <xsd:anyAttribute namespace="##other" processContents="lax"/>
+  </xsd:complexType>
+  <xsd:element name="Register" type="wscoor:RegisterType"/>
+  <xsd:complexType name="RegisterResponseType">
+    <xsd:sequence>
+      <xsd:element name="CoordinatorProtocolService" type="xsd:anyType"/>
+      <xsd:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+    </xsd:sequence>
+    <xsd:anyAttribute namespace="##other" processContents="lax"/>
+  </xsd:complexType>
+  <xsd:element name="RegisterResponse" type="wscoor:RegisterResponseType"/>
+  <xsd:simpleType name="ErrorCodes">
+    <xsd:restriction base="xsd:QName">
+      <xsd:enumeration value="wscoor:InvalidParameters"/>
+      <xsd:enumeration value="wscoor:InvalidProtocol"/>
+      <xsd:enumeration value="wscoor:InvalidState"/>
+      <xsd:enumeration value="wscoor:CannotCreateContext"/>
+      <xsd:enumeration value="wscoor:CannotRegisterParticipant"/>
+    </xsd:restriction>
+  </xsd:simpleType>
+</xsd:schema>
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org