Author: ruwan
Date: Fri Oct 29 16:45:40 2010
New Revision: 1028831
URL: http://svn.apache.org/viewvc?rev=1028831&view=rev
Log:
adding iterate mediator schema, refactoring the target schema, and fixing the
proxy schema
Added:
synapse/branches/2.0/repository/schema/mediators/eip/iterate.xsd
Modified:
synapse/branches/2.0/repository/schema/mediators/mediators.xsd
synapse/branches/2.0/repository/schema/misc/target.xsd
synapse/branches/2.0/repository/schema/proxy.xsd
Added: synapse/branches/2.0/repository/schema/mediators/eip/iterate.xsd
URL:
http://svn.apache.org/viewvc/synapse/branches/2.0/repository/schema/mediators/eip/iterate.xsd?rev=1028831&view=auto
==============================================================================
--- synapse/branches/2.0/repository/schema/mediators/eip/iterate.xsd (added)
+++ synapse/branches/2.0/repository/schema/mediators/eip/iterate.xsd Fri Oct 29
16:45:40 2010
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+ targetNamespace="http://synapse.apache.org/ns/2010/04/configuration"
+ xmlns="http://synapse.apache.org/ns/2010/04/configuration">
+
+ <xs:include schemaLocation="../../misc/target.xsd"/>
+
+ <xs:element name="iterate">
+ <xs:annotation>
+ <xs:documentation source="description">
+ Iterate mediator to iterate a message over a given xpath
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="target" minOccurs="1" maxOccurs="1"/>
+ </xs:sequence>
+ <xs:attribute name="expression" type="xs:string" use="required"/>
+ <xs:attribute name="preservePayload" type="xs:string"
use="optional"/>
+ <xs:attribute name="attachPath" type="xs:string" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+
+</xs:schema>
\ No newline at end of file
Modified: synapse/branches/2.0/repository/schema/mediators/mediators.xsd
URL:
http://svn.apache.org/viewvc/synapse/branches/2.0/repository/schema/mediators/mediators.xsd?rev=1028831&r1=1028830&r2=1028831&view=diff
==============================================================================
--- synapse/branches/2.0/repository/schema/mediators/mediators.xsd (original)
+++ synapse/branches/2.0/repository/schema/mediators/mediators.xsd Fri Oct 29
16:45:40 2010
@@ -40,6 +40,7 @@
<xs:include schemaLocation="advanced/db_mediators.xsd"/>
<xs:include schemaLocation="extension/script.xsd"/>
<xs:include schemaLocation="extension/class.xsd"/>
+ <xs:include schemaLocation="eip/iterate.xsd"/>
<xs:group name="mediatorList">
<xs:annotation>
@@ -77,6 +78,7 @@
<xs:element ref="dbreport"/>
<xs:element ref="throttle"/>
<xs:element ref="class"/>
+ <xs:element ref="iterate"/>
</xs:choice>
</xs:group>
Modified: synapse/branches/2.0/repository/schema/misc/target.xsd
URL:
http://svn.apache.org/viewvc/synapse/branches/2.0/repository/schema/misc/target.xsd?rev=1028831&r1=1028830&r2=1028831&view=diff
==============================================================================
--- synapse/branches/2.0/repository/schema/misc/target.xsd (original)
+++ synapse/branches/2.0/repository/schema/misc/target.xsd Fri Oct 29 16:45:40
2010
@@ -36,6 +36,26 @@
<xs:complexType name="Target">
<xs:annotation>
<xs:documentation>
+ This denotes the target for various mediators
+ </xs:documentation>
+ </xs:annotation>
+ <xs:all>
+ <xs:element name="sequence" minOccurs="0" maxOccurs="1">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:group ref="mediatorList" minOccurs="1"
maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="endpoint" type="Endpoint" minOccurs="0"
maxOccurs="1"/>
+ </xs:all>
+ <xs:attribute name="sequence" type="xs:string" use="optional"/>
+ <xs:attribute name="endpoint" type="xs:string" use="optional"/>
+ </xs:complexType>
+
+ <xs:complexType name="ProxyTarget">
+ <xs:annotation>
+ <xs:documentation>
This denotes the target for a proxy or for various mediators
</xs:documentation>
</xs:annotation>
Modified: synapse/branches/2.0/repository/schema/proxy.xsd
URL:
http://svn.apache.org/viewvc/synapse/branches/2.0/repository/schema/proxy.xsd?rev=1028831&r1=1028830&r2=1028831&view=diff
==============================================================================
--- synapse/branches/2.0/repository/schema/proxy.xsd (original)
+++ synapse/branches/2.0/repository/schema/proxy.xsd Fri Oct 29 16:45:40 2010
@@ -40,8 +40,8 @@
in the Synapse Configuration
</xs:documentation>
</xs:annotation>
- <xs:sequence>
- <xs:element ref="target" minOccurs="1" maxOccurs="1"/>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element name="target" type="ProxyTarget" minOccurs="1"
maxOccurs="1"/>
<xs:element name="publishWSDL" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation source="description">
@@ -75,7 +75,7 @@
</xs:complexType>
</xs:element>
<xs:element ref="parameter" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
+ </xs:choice>
<xs:attributeGroup ref="monitoringAspect"/>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="transports" type="xs:string" use="optional"/>