Author: ruwan
Date: Tue May 18 13:22:27 2010
New Revision: 945643
URL: http://svn.apache.org/viewvc?rev=945643&view=rev
Log:
partially completed the default endpoint
Modified:
synapse/trunk/java/repository/schema/endpoint.xsd
Modified: synapse/trunk/java/repository/schema/endpoint.xsd
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/endpoint.xsd?rev=945643&r1=945642&r2=945643&view=diff
==============================================================================
--- synapse/trunk/java/repository/schema/endpoint.xsd (original)
+++ synapse/trunk/java/repository/schema/endpoint.xsd Tue May 18 13:22:27 2010
@@ -25,7 +25,7 @@
<xs:element name="endpoint" type="NamedEndpoint">
<xs:annotation>
<xs:documentation source="description">
- Endpoint description
+ <endpoint> declarations for the synapse configuration
</xs:documentation>
</xs:annotation>
</xs:element>
@@ -58,12 +58,10 @@
<xs:group name="leafEndpoints">
<xs:choice>
+ <xs:element name="default" type="DefaultEndpoint"/>
<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>
@@ -85,4 +83,52 @@
</xs:choice>
</xs:group>
+ <xs:complexType name="DefaultEndpoint">
+ <xs:annotation>
+ <xs:documentation source="description">
+ This is the type declaration of the default endpoint
+ </xs:documentation>
+ </xs:annotation>
+ <xs:all>
+ <xs:element name="enableRM" minOccurs="0" maxOccurs="1">
+ <xs:complexType>
+ <xs:attribute name="policy" type="xs:string"
use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="enableSec" minOccurs="0" maxOccurs="1">
+ <xs:complexType>
+ <xs:attribute name="policy" type="xs:string"
use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="enableAddressing" minOccurs="0" maxOccurs="1">
+ <xs:complexType>
+ <xs:attribute name="version" use="optional"
default="final">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="final"/>
+ <xs:enumeration value="submission"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="separateListener" use="optional"
type="xs:boolean" default="false"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="timeout" minOccurs="0" maxOccurs="1">
+ <xs:complexType>
+ <xs:all>
+ <xs:element name="duration" minOccurs="0"
maxOccurs="1" type="xs:long"/>
+ <xs:element name="action" minOccurs="0" maxOccurs="1">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="discard"/>
+ <xs:enumeration value="fault"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:element>
+ </xs:all>
+ </xs:complexType>
+ </xs:element>
+ </xs:all>
+ </xs:complexType>
+
</xs:schema>
\ No newline at end of file