Author: ruwan
Date: Sat May 15 18:59:18 2010
New Revision: 944698
URL: http://svn.apache.org/viewvc?rev=944698&view=rev
Log:
improvements to schema
Modified:
synapse/trunk/java/repository/schema/endpoint.xsd
synapse/trunk/java/repository/schema/misc/target.xsd
Modified: synapse/trunk/java/repository/schema/endpoint.xsd
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/endpoint.xsd?rev=944698&r1=944697&r2=944698&view=diff
==============================================================================
--- synapse/trunk/java/repository/schema/endpoint.xsd (original)
+++ synapse/trunk/java/repository/schema/endpoint.xsd Sat May 15 18:59:18 2010
@@ -32,8 +32,57 @@
<xs:complexType name="NamedEndpoint">
<xs:annotation>
+ <xs:documentation source="description">
+ This is a named endpoint which will come on the top level
synapse configuration
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="Endpoint">
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="Endpoint">
+ <xs:annotation>
+ <xs:documentation source="description">
+ This is a representation of an endpoint
+ </xs:documentation>
</xs:annotation>
+ <xs:choice minOccurs="1">
+ <xs:group ref="leafEndpoints" minOccurs="0" maxOccurs="1"/>
+ <xs:group ref="aggregatedEndpoints" minOccurs="0" maxOccurs="1"/>
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string" use="optional"/>
</xs:complexType>
+ <xs:group name="leafEndpoints">
+ <xs:choice>
+ <xs:element name="address">
+ <!-- TODO : address endpoint -->
+ </xs:element>
+ <xs:element name="default">
+ <!-- TODO : default endpoint -->
+ </xs:element>
+ <xs:element name="wsdl">
+ <!-- TODO : WSDL endpoint -->
+ </xs:element>
+ </xs:choice>
+ </xs:group>
+
+ <xs:group name="aggregatedEndpoints">
+ <xs:choice>
+ <xs:element name="loadbalance">
+ <xs:complexType>
+ <xs:group ref="leafEndpoints" minOccurs="1"
maxOccurs="unbounded"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="failover">
+ <xs:complexType>
+ <xs:group ref="leafEndpoints" minOccurs="1"
maxOccurs="unbounded"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ </xs:group>
+
</xs:schema>
\ No newline at end of file
Modified: synapse/trunk/java/repository/schema/misc/target.xsd
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/misc/target.xsd?rev=944698&r1=944697&r2=944698&view=diff
==============================================================================
--- synapse/trunk/java/repository/schema/misc/target.xsd (original)
+++ synapse/trunk/java/repository/schema/misc/target.xsd Sat May 15 18:59:18
2010
@@ -22,6 +22,8 @@
targetNamespace="http://synapse.apache.org/ns/2010/04/configuration"
xmlns="http://synapse.apache.org/ns/2010/04/configuration">
+ <xs:include schemaLocation="../endpoint.xsd"/>
+
<xs:element name="target" type="Target">
<xs:annotation>
<xs:documentation source="description">
@@ -34,6 +36,15 @@
<xs:annotation>
</xs:annotation>
+ <xs:all>
+ <xs:element name="inSequence" minOccurs="0" maxOccurs="1">
+
+ </xs:element>
+ <xs:element name="outSequence" minOccurs="0" maxOccurs="1">
+
+ </xs:element>
+ <xs:element name="endpoint" type="Endpoint" minOccurs="0"
maxOccurs="1"/>
+ </xs:all>
</xs:complexType>
</xs:schema>
\ No newline at end of file