You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by as...@apache.org on 2007/03/17 17:18:47 UTC
svn commit: r519363 [15/16] - in /webservices/synapse/trunk/java:
modules/core/ modules/core/src/main/java/org/apache/synapse/
modules/core/src/main/java/org/apache/synapse/config/
modules/core/src/main/java/org/apache/synapse/config/xml/ modules/core/...
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_103.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_103.xml?view=diff&rev=519363&r1=519362&r2=519363
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_103.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_103.xml Sat Mar 17 09:18:32 2007
@@ -1,63 +1,63 @@
-<!--
- ~ 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.
- -->
-
-<synapse xmlns="http://ws.apache.org/ns/synapse">
-
- <!-- attaching service level WS-Security policies to proxy services -->
- <definitions>
- <set-property name="proxy_wsdl"
- src="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
- <set-property name="sec_policy"
- src="file:repository/conf/sample/resources/policy/policy_3.xml"/>
- </definitions>
-
- <proxies>
- <proxy name="StockQuoteProxy">
- <target>
- <inSequence>
- <header name="wsse:Security" action="remove"
- xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
- <send>
- <endpoint>
- <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
- </endpoint>
- </send>
- </inSequence>
- </target>
- <publishWSDL key="proxy_wsdl"/>
- <policy key="sec_policy"/>
- </proxy>
- </proxies>
-
- <rules>
- <in>
- <header name="wsse:Security" action="remove"
- xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
- <send>
- <endpoint>
- <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
- </endpoint>
- </send>
- </in>
- <out>
- <send/>
- </out>
- </rules>
-
+<!--
+ ~ 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.
+ -->
+
+<synapse xmlns="http://ws.apache.org/ns/synapse">
+
+ <!-- attaching service level WS-Security policies to proxy services -->
+ <definitions>
+ <set-property name="proxy_wsdl"
+ src="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
+ <set-property name="sec_policy"
+ src="file:repository/conf/sample/resources/policy/policy_3.xml"/>
+ </definitions>
+
+ <proxies>
+ <proxy name="StockQuoteProxy">
+ <target>
+ <inSequence>
+ <header name="wsse:Security" action="remove"
+ xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
+ <send>
+ <endpoint>
+ <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
+ </endpoint>
+ </send>
+ </inSequence>
+ </target>
+ <publishWSDL key="proxy_wsdl"/>
+ <policy key="sec_policy"/>
+ </proxy>
+ </proxies>
+
+ <rules>
+ <in>
+ <header name="wsse:Security" action="remove"
+ xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
+ <send>
+ <endpoint>
+ <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
+ </endpoint>
+ </send>
+ </in>
+ <out>
+ <send/>
+ </out>
+ </rules>
+
</synapse>
Propchange: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_103.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_104.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_105.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_105.xml?view=diff&rev=519363&r1=519362&r2=519363
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_105.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_105.xml Sat Mar 17 09:18:32 2007
@@ -1,82 +1,82 @@
-<!--
- ~ 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.
- -->
-
-<synapse xmlns="http://ws.apache.org/ns/synapse">
-
- <!-- demonstrate JMS raw Text / POX message support -->
- <definitions>
- <sequence name="text_proxy">
- <header name="Action" value="urn:placeOrder"/>
- <script.js><![CDATA[
- var args = mc.getPayloadXML().toString().split(" ");
- mc.setPayloadXML(
- <m:placeOrder xmlns:m="http://services.samples/xsd">
- <m:order>
- <m:price>{args[0]}</m:price>
- <m:quantity>{args[1]}</m:quantity>
- <m:symbol>{args[2]}</m:symbol>
- </m:order>
- </m:placeOrder>);
- ]]></script.js>
- <send>
- <endpoint>
- <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
- </endpoint>
- </send>
- </sequence>
-
- <sequence name="mtom_proxy">
- <header name="Action" value="urn:uploadFileUsingMTOM"/>
- <send>
- <endpoint>
- <address uri="http://localhost:9000/axis2/services/MTOMSampleService" optimize="mtom"/>
- </endpoint>
- </send>
- </sequence>
-
- <sequence name="pox_proxy">
- <header name="Action" value="urn:placeOrder"/>
- <send>
- <endpoint>
- <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService" force="soap"/>
- </endpoint>
- </send>
- </sequence>
- </definitions>
-
- <proxies>
- <proxy name="JMSFileUploadProxy" transports="jms">
- <target inSequence="mtom_proxy"/>
- <parameter name="transport.jms.Wrapper">{http://services.samples/xsd}element</parameter>
- </proxy>
- <proxy name="JMSTextProxy" transports="jms">
- <target inSequence="text_proxy"/>
- <parameter name="transport.jms.Wrapper">{http://services.samples/xsd}text</parameter>
- </proxy>
- <proxy name="JMSPoxProxy" transports="jms">
- <target inSequence="pox_proxy"/>
- </proxy>
- </proxies>
-
- <rules>
- <log level="full"/>
- <drop/>
- </rules>
-
+<!--
+ ~ 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.
+ -->
+
+<synapse xmlns="http://ws.apache.org/ns/synapse">
+
+ <!-- demonstrate JMS raw Text / POX message support -->
+ <definitions>
+ <sequence name="text_proxy">
+ <header name="Action" value="urn:placeOrder"/>
+ <script.js><![CDATA[
+ var args = mc.getPayloadXML().toString().split(" ");
+ mc.setPayloadXML(
+ <m:placeOrder xmlns:m="http://services.samples/xsd">
+ <m:order>
+ <m:price>{args[0]}</m:price>
+ <m:quantity>{args[1]}</m:quantity>
+ <m:symbol>{args[2]}</m:symbol>
+ </m:order>
+ </m:placeOrder>);
+ ]]></script.js>
+ <send>
+ <endpoint>
+ <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
+ </endpoint>
+ </send>
+ </sequence>
+
+ <sequence name="mtom_proxy">
+ <header name="Action" value="urn:uploadFileUsingMTOM"/>
+ <send>
+ <endpoint>
+ <address uri="http://localhost:9000/axis2/services/MTOMSampleService" optimize="mtom"/>
+ </endpoint>
+ </send>
+ </sequence>
+
+ <sequence name="pox_proxy">
+ <header name="Action" value="urn:placeOrder"/>
+ <send>
+ <endpoint>
+ <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService" force="soap"/>
+ </endpoint>
+ </send>
+ </sequence>
+ </definitions>
+
+ <proxies>
+ <proxy name="JMSFileUploadProxy" transports="jms">
+ <target inSequence="mtom_proxy"/>
+ <parameter name="transport.jms.Wrapper">{http://services.samples/xsd}element</parameter>
+ </proxy>
+ <proxy name="JMSTextProxy" transports="jms">
+ <target inSequence="text_proxy"/>
+ <parameter name="transport.jms.Wrapper">{http://services.samples/xsd}text</parameter>
+ </proxy>
+ <proxy name="JMSPoxProxy" transports="jms">
+ <target inSequence="pox_proxy"/>
+ </proxy>
+ </proxies>
+
+ <rules>
+ <log level="full"/>
+ <drop/>
+ </rules>
+
</synapse>
Propchange: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_105.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_11.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_11.xml?view=diff&rev=519363&r1=519362&r2=519363
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_11.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_11.xml Sat Mar 17 09:18:32 2007
@@ -1,32 +1,32 @@
-<!--
- ~ 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.
- -->
-
-<synapse xmlns="http://ws.apache.org/ns/synapse">
-
- <!-- a full registry based configuration -->
-
- <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
- <!-- the root property of the simple URL registry helps resolve a resource URL as root + key -->
- <parameter name="root">file:./../../repository/</parameter>
- <!-- all resources loaded from the URL registry would be cached for this number of milli seconds -->
- <parameter name="cachableDuration">15000</parameter>
- </registry>
-
-
+<!--
+ ~ 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.
+ -->
+
+<synapse xmlns="http://ws.apache.org/ns/synapse">
+
+ <!-- a full registry based configuration -->
+
+ <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
+ <!-- the root property of the simple URL registry helps resolve a resource URL as root + key -->
+ <parameter name="root">file:./../../repository/</parameter>
+ <!-- all resources loaded from the URL registry would be cached for this number of milli seconds -->
+ <parameter name="cachableDuration">15000</parameter>
+ </registry>
+
+
</synapse>
Propchange: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_11.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_110.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_110.xml?view=diff&rev=519363&r1=519362&r2=519363
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_110.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_110.xml Sat Mar 17 09:18:32 2007
@@ -1,47 +1,47 @@
-<!--
- ~ 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.
- -->
-
-<synapse xmlns="http://ws.apache.org/ns/synapse">
-
- <!-- attaching service level WS-Security policies to proxy services -->
- <definitions>
- <set-property name="proxy_wsdl"
- src="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
- </definitions>
-
- <proxies>
- <proxy name="StockQuoteProxy" transports="jms">
- <wsdl key="proxy_wsdl"/>
- </proxy>
- </proxies>
-
- <rules>
- <in>
- <send>
- <endpoint>
- <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
- </endpoint>
- </send>
- </in>
- <out>
- <send/>
- </out>
- </rules>
-
+<!--
+ ~ 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.
+ -->
+
+<synapse xmlns="http://ws.apache.org/ns/synapse">
+
+ <!-- attaching service level WS-Security policies to proxy services -->
+ <definitions>
+ <set-property name="proxy_wsdl"
+ src="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
+ </definitions>
+
+ <proxies>
+ <proxy name="StockQuoteProxy" transports="jms">
+ <wsdl key="proxy_wsdl"/>
+ </proxy>
+ </proxies>
+
+ <rules>
+ <in>
+ <send>
+ <endpoint>
+ <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
+ </endpoint>
+ </send>
+ </in>
+ <out>
+ <send/>
+ </out>
+ </rules>
+
</synapse>
Propchange: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_110.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_111.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_111.xml?view=diff&rev=519363&r1=519362&r2=519363
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_111.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_111.xml Sat Mar 17 09:18:32 2007
@@ -1,47 +1,47 @@
-<!--
- ~ 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.
- -->
-
-<synapse xmlns="http://ws.apache.org/ns/synapse">
-
- <!-- attaching service level WS-Security policies to proxy services -->
- <definitions>
- <set-property name="proxy_wsdl"
- src="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
- </definitions>
-
- <proxies>
- <proxy name="StockQuoteProxy" transports="http">
- <wsdl key="proxy_wsdl"/>
- </proxy>
- </proxies>
-
- <rules>
- <in>
- <send>
- <endpoint>
- <address uri="jms:/SimpleStockQuoteService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616"/>
- </endpoint>
- </send>
- </in>
- <out>
- <send/>
- </out>
- </rules>
-
+<!--
+ ~ 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.
+ -->
+
+<synapse xmlns="http://ws.apache.org/ns/synapse">
+
+ <!-- attaching service level WS-Security policies to proxy services -->
+ <definitions>
+ <set-property name="proxy_wsdl"
+ src="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
+ </definitions>
+
+ <proxies>
+ <proxy name="StockQuoteProxy" transports="http">
+ <wsdl key="proxy_wsdl"/>
+ </proxy>
+ </proxies>
+
+ <rules>
+ <in>
+ <send>
+ <endpoint>
+ <address uri="jms:/SimpleStockQuoteService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616"/>
+ </endpoint>
+ </send>
+ </in>
+ <out>
+ <send/>
+ </out>
+ </rules>
+
</synapse>
Propchange: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_111.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_2.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_2.xml?view=diff&rev=519363&r1=519362&r2=519363
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_2.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_2.xml Sat Mar 17 09:18:32 2007
@@ -1,51 +1,51 @@
-<!--
- ~ 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.
- -->
-
-<!-- switch-case mediator and setting and reading of local properties on a message -->
-<definitions xmlns="http://ws.apache.org/ns/synapse">
-
- <!-- introduction to switch-case-default mediator -->
- <switch source="//m0:getQuote/m0:request/m0:symbol" xmlns:m0="http://services.samples/xsd">
- <case regex="IBM">
- <!-- the property mediator sets a local property on the *current* message -->
- <property name="symbol" value="Great stock - IBM"/>
- </case>
- <case regex="MSFT">
- <property name="symbol" value="Are you sure? - MSFT"/>
- </case>
- <default>
- <!-- it is possible to assign the result of an XPath expression as well -->
- <property name="symbol"
- expression="fn:concat('Normal Stock - ', //m0:getQuote/m0:request/m0:symbol)"
- xmlns:m0="http://services.samples/xsd"/>
- </default>
- </switch>
-
- <log level="custom">
- <!-- the get-property() XPath extension function allows the lookup of local message properties
- as well as properties from the Axis2 or Transport contexts (i.e. transport headers) -->
- <property name="symbol" expression="get-property('symbol')"/>
- <!-- the get-property() function supports the implicit message headers To/From/Action/FaultTo/ReplyTo -->
- <property name="epr" expression="get-property('To')"/>
- </log>
-
- <!-- Send the messages where they are destined to (i.e. the 'To' EPR of the message) -->
- <send/>
-
+<!--
+ ~ 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.
+ -->
+
+<!-- switch-case mediator and setting and reading of local properties on a message -->
+<definitions xmlns="http://ws.apache.org/ns/synapse">
+
+ <!-- introduction to switch-case-default mediator -->
+ <switch source="//m0:getQuote/m0:request/m0:symbol" xmlns:m0="http://services.samples/xsd">
+ <case regex="IBM">
+ <!-- the property mediator sets a local property on the *current* message -->
+ <property name="symbol" value="Great stock - IBM"/>
+ </case>
+ <case regex="MSFT">
+ <property name="symbol" value="Are you sure? - MSFT"/>
+ </case>
+ <default>
+ <!-- it is possible to assign the result of an XPath expression as well -->
+ <property name="symbol"
+ expression="fn:concat('Normal Stock - ', //m0:getQuote/m0:request/m0:symbol)"
+ xmlns:m0="http://services.samples/xsd"/>
+ </default>
+ </switch>
+
+ <log level="custom">
+ <!-- the get-property() XPath extension function allows the lookup of local message properties
+ as well as properties from the Axis2 or Transport contexts (i.e. transport headers) -->
+ <property name="symbol" expression="get-property('symbol')"/>
+ <!-- the get-property() function supports the implicit message headers To/From/Action/FaultTo/ReplyTo -->
+ <property name="epr" expression="get-property('To')"/>
+ </log>
+
+ <!-- Send the messages where they are destined to (i.e. the 'To' EPR of the message) -->
+ <send/>
+
</definitions>
Propchange: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_3.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_3.xml?view=diff&rev=519363&r1=519362&r2=519363
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_3.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_3.xml Sat Mar 17 09:18:32 2007
@@ -1,58 +1,58 @@
-<!--
- ~ 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.
- -->
-
-<!-- illustration of local registry entry definitions, and reusable endpoints and sequences -->
-<definitions xmlns="http://ws.apache.org/ns/synapse">
-
- <!-- define a string resource entry to the local registry -->
- <localEntry key="version">0.1</localEntry>
-
- <!-- define a reuseable endpoint definition -->
- <endpoint name="simple">
- <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
- </endpoint>
-
- <!-- define a reusable sequence -->
- <sequence name="stockquote">
-
- <!-- log the message using the custom log level. illustrates custom properties for log -->
- <log level="custom">
- <property name="Text" value="Sending quote request"/>
- <property name="version" expression="get-property('version')"/>
- <property name="direction" expression="get-property('direction')"/>
- </log>
-
- <!-- send message to real endpoint referenced by key "simple" endpoint definition -->
- <send>
- <endpoint key="simple"/>
- </send>
- </sequence>
-
- <sequence name="main">
- <in>
- <property name="direction" value="incoming"/>
- <sequence key="stockquote"/>
- </in>
- <out>
- <!-- Send the messages where they have been sent (i.e. implicit To EPR) -->
- <send/>
- </out>
- </sequence>
-
-</definitions>
+<!--
+ ~ 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.
+ -->
+
+<!-- illustration of local registry entry definitions, and reusable endpoints and sequences -->
+<definitions xmlns="http://ws.apache.org/ns/synapse">
+
+ <!-- define a string resource entry to the local registry -->
+ <localEntry key="version">0.1</localEntry>
+
+ <!-- define a reuseable endpoint definition -->
+ <endpoint name="simple">
+ <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
+ </endpoint>
+
+ <!-- define a reusable sequence -->
+ <sequence name="stockquote">
+
+ <!-- log the message using the custom log level. illustrates custom properties for log -->
+ <log level="custom">
+ <property name="Text" value="Sending quote request"/>
+ <property name="version" expression="get-property('version')"/>
+ <property name="direction" expression="get-property('direction')"/>
+ </log>
+
+ <!-- send message to real endpoint referenced by key "simple" endpoint definition -->
+ <send>
+ <endpoint key="simple"/>
+ </send>
+ </sequence>
+
+ <sequence name="main">
+ <in>
+ <property name="direction" value="incoming"/>
+ <sequence key="stockquote"/>
+ </in>
+ <out>
+ <!-- Send the messages where they have been sent (i.e. implicit To EPR) -->
+ <send/>
+ </out>
+ </sequence>
+
+</definitions>
Propchange: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_3.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_4.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_4.xml?view=diff&rev=519363&r1=519362&r2=519363
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_4.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_4.xml Sat Mar 17 09:18:32 2007
@@ -1,72 +1,72 @@
-<!--
- ~ 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.
- -->
-
-<!-- introduction to error handling -->
-<definitions xmlns="http://ws.apache.org/ns/synapse">
-
- <!-- the default fault handling sequence used by Synapse - named 'fault' -->
- <sequence name="fault">
- <log level="custom">
- <property name="text" value="An unexpected error occured"/>
- <property name="message" expression="get-property('ERROR_MESSAGE')"/>
- </log>
- <drop/>
- </sequence>
-
- <sequence name="sunErrorHandler">
- <log level="custom">
- <property name="text" value="An unexpected error occured for stock SUN"/>
- <property name="message" expression="get-property('ERROR_MESSAGE')"/>
- </log>
- <drop/>
- </sequence>
-
- <!-- default message handling sequence used by Synapse - named 'main' -->
- <sequence name="main">
- <in>
- <switch source="//m0:getQuote/m0:request/m0:symbol" xmlns:m0="http://services.samples/xsd">
- <case regex="IBM">
- <send>
- <endpoint><address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/></endpoint>
- </send>
- </case>
- <case regex="MSFT">
- <send>
- <endpoint key="bogus"/>
- </send>
- </case>
- <case regex="SUN">
- <sequence key="sunSequence"/>
- </case>
- </switch>
- <drop/>
- </in>
-
- <out>
- <send/>
- </out>
- </sequence>
-
- <sequence name="sunSequence" onError="sunErrorHandler">
- <send>
- <endpoint key="sunPort"/>
- </send>
- </sequence>
-
+<!--
+ ~ 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.
+ -->
+
+<!-- introduction to error handling -->
+<definitions xmlns="http://ws.apache.org/ns/synapse">
+
+ <!-- the default fault handling sequence used by Synapse - named 'fault' -->
+ <sequence name="fault">
+ <log level="custom">
+ <property name="text" value="An unexpected error occured"/>
+ <property name="message" expression="get-property('ERROR_MESSAGE')"/>
+ </log>
+ <drop/>
+ </sequence>
+
+ <sequence name="sunErrorHandler">
+ <log level="custom">
+ <property name="text" value="An unexpected error occured for stock SUN"/>
+ <property name="message" expression="get-property('ERROR_MESSAGE')"/>
+ </log>
+ <drop/>
+ </sequence>
+
+ <!-- default message handling sequence used by Synapse - named 'main' -->
+ <sequence name="main">
+ <in>
+ <switch source="//m0:getQuote/m0:request/m0:symbol" xmlns:m0="http://services.samples/xsd">
+ <case regex="IBM">
+ <send>
+ <endpoint><address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/></endpoint>
+ </send>
+ </case>
+ <case regex="MSFT">
+ <send>
+ <endpoint key="bogus"/>
+ </send>
+ </case>
+ <case regex="SUN">
+ <sequence key="sunSequence"/>
+ </case>
+ </switch>
+ <drop/>
+ </in>
+
+ <out>
+ <send/>
+ </out>
+ </sequence>
+
+ <sequence name="sunSequence" onError="sunErrorHandler">
+ <send>
+ <endpoint key="sunPort"/>
+ </send>
+ </sequence>
+
</definitions>
Propchange: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_4.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_400.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_400.xml?view=diff&rev=519363&r1=519362&r2=519363
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_400.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_400.xml Sat Mar 17 09:18:32 2007
@@ -1,87 +1,87 @@
-<!--
- ~ 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.
- -->
-<definitions xmlns="http://ws.apache.org/ns/synapse"
- xmlns:throttle="http://ws.apache.org/ns/synapse/throttle">
- <sequence name="main">
- <in>
- <throttle:throttle>
- <policy>
- <!-- define throttle policy -->
- <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
- xmlns:throttle="http://www.wso2.org/products/wso2commons/throttle">
- <throttle:ThrottleAssertion>
- <wsp:All>
- <throttle:ID throttle:type="IP">Other</throttle:ID>
- <wsp:ExactlyOne>
- <wsp:All>
- <throttle:MaximumCount>4</throttle:MaximumCount>
- <throttle:UnitTime>800000</throttle:UnitTime>
- <throttle:ProhibitTimePeriod wsp:Optional="true">10000</throttle:ProhibitTimePeriod>
- </wsp:All>
- <throttle:IsAllow>true</throttle:IsAllow>
- </wsp:ExactlyOne>
- </wsp:All>
- <wsp:All>
- <throttle:ID throttle:type="IP">192.168.8.200-192.168.8.222</throttle:ID>
- <wsp:ExactlyOne>
- <wsp:All>
- <throttle:MaximumCount>8</throttle:MaximumCount>
- <throttle:UnitTime>800000</throttle:UnitTime>
- <throttle:ProhibitTimePeriod wsp:Optional="true">10</throttle:ProhibitTimePeriod>
- </wsp:All>
- <throttle:IsAllow>true</throttle:IsAllow>
- </wsp:ExactlyOne>
- </wsp:All>
- <wsp:All>
- <throttle:ID throttle:type="IP">192.168.8.201</throttle:ID>
- <wsp:ExactlyOne>
- <wsp:All>
- <throttle:MaximumCount>200</throttle:MaximumCount>
- <throttle:UnitTime>600000</throttle:UnitTime>
- <throttle:ProhibitTimePeriod wsp:Optional="true"></throttle:ProhibitTimePeriod>
- </wsp:All>
- <throttle:IsAllow>true</throttle:IsAllow>
- </wsp:ExactlyOne>
- </wsp:All>
- <wsp:All>
- <throttle:ID throttle:type="IP">192.168.8.198</throttle:ID>
- <wsp:ExactlyOne>
- <wsp:All>
- <throttle:MaximumCount>50</throttle:MaximumCount>
- <throttle:UnitTime>500000</throttle:UnitTime>
- <throttle:ProhibitTimePeriod wsp:Optional="true"></throttle:ProhibitTimePeriod>
- </wsp:All>
- <throttle:IsAllow>true</throttle:IsAllow>
- </wsp:ExactlyOne>
- </wsp:All>
- </throttle:ThrottleAssertion>
- </wsp:Policy>
- </policy>
- </throttle:throttle>
- <send>
- <endpoint>
- <address uri="http://localhost:8082/axis2/services/SimpleStockQuoteService"/>
- </endpoint>
- </send>
- </in>
- <out>
- <send/>
- </out>
- </sequence>
-</definitions>
+<!--
+ ~ 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.
+ -->
+<definitions xmlns="http://ws.apache.org/ns/synapse"
+ xmlns:throttle="http://ws.apache.org/ns/synapse/throttle">
+ <sequence name="main">
+ <in>
+ <throttle:throttle>
+ <policy>
+ <!-- define throttle policy -->
+ <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+ xmlns:throttle="http://www.wso2.org/products/wso2commons/throttle">
+ <throttle:ThrottleAssertion>
+ <wsp:All>
+ <throttle:ID throttle:type="IP">Other</throttle:ID>
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <throttle:MaximumCount>4</throttle:MaximumCount>
+ <throttle:UnitTime>800000</throttle:UnitTime>
+ <throttle:ProhibitTimePeriod wsp:Optional="true">10000</throttle:ProhibitTimePeriod>
+ </wsp:All>
+ <throttle:IsAllow>true</throttle:IsAllow>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ <wsp:All>
+ <throttle:ID throttle:type="IP">192.168.8.200-192.168.8.222</throttle:ID>
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <throttle:MaximumCount>8</throttle:MaximumCount>
+ <throttle:UnitTime>800000</throttle:UnitTime>
+ <throttle:ProhibitTimePeriod wsp:Optional="true">10</throttle:ProhibitTimePeriod>
+ </wsp:All>
+ <throttle:IsAllow>true</throttle:IsAllow>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ <wsp:All>
+ <throttle:ID throttle:type="IP">192.168.8.201</throttle:ID>
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <throttle:MaximumCount>200</throttle:MaximumCount>
+ <throttle:UnitTime>600000</throttle:UnitTime>
+ <throttle:ProhibitTimePeriod wsp:Optional="true"></throttle:ProhibitTimePeriod>
+ </wsp:All>
+ <throttle:IsAllow>true</throttle:IsAllow>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ <wsp:All>
+ <throttle:ID throttle:type="IP">192.168.8.198</throttle:ID>
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <throttle:MaximumCount>50</throttle:MaximumCount>
+ <throttle:UnitTime>500000</throttle:UnitTime>
+ <throttle:ProhibitTimePeriod wsp:Optional="true"></throttle:ProhibitTimePeriod>
+ </wsp:All>
+ <throttle:IsAllow>true</throttle:IsAllow>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </throttle:ThrottleAssertion>
+ </wsp:Policy>
+ </policy>
+ </throttle:throttle>
+ <send>
+ <endpoint>
+ <address uri="http://localhost:8082/axis2/services/SimpleStockQuoteService"/>
+ </endpoint>
+ </send>
+ </in>
+ <out>
+ <send/>
+ </out>
+ </sequence>
+</definitions>
Propchange: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_400.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_401.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_401.xml?view=diff&rev=519363&r1=519362&r2=519363
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_401.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_401.xml Sat Mar 17 09:18:32 2007
@@ -1,47 +1,47 @@
-<!--
- ~ 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.
- -->
-<definitions xmlns="http://ws.apache.org/ns/synapse"
- xmlns:throttle="http://ws.apache.org/ns/synapse/throttle">
- <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
- <!-- the root property of the simple URL registry helps resolve a resource URL as root + key -->
- <parameter name="root">file:./../../repository/</parameter>
- <!-- all resources loaded from the URL registry would be cached for this number of milli seconds -->
- <parameter name="cachableDuration">15000</parameter>
- </registry>
-
-
- <localEntry key="thottlePolicy"
- src="file:./repository/conf/sample/resources/policy/throttle_policy.xml"/>
-
- <sequence name="main">
- <in>
- <throttle:throttle>
- <policy key="thottlePolicy"/>
- </throttle:throttle>
- <send>
- <endpoint>
- <address uri="http://localhost:8082/axis2/services/SimpleStockQuoteService"/>
- </endpoint>
- </send>
- </in>
- <out>
- <send/>
- </out>
- </sequence>
-</definitions>
+<!--
+ ~ 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.
+ -->
+<definitions xmlns="http://ws.apache.org/ns/synapse"
+ xmlns:throttle="http://ws.apache.org/ns/synapse/throttle">
+ <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
+ <!-- the root property of the simple URL registry helps resolve a resource URL as root + key -->
+ <parameter name="root">file:./../../repository/</parameter>
+ <!-- all resources loaded from the URL registry would be cached for this number of milli seconds -->
+ <parameter name="cachableDuration">15000</parameter>
+ </registry>
+
+
+ <localEntry key="thottlePolicy"
+ src="file:./repository/conf/sample/resources/policy/throttle_policy.xml"/>
+
+ <sequence name="main">
+ <in>
+ <throttle:throttle>
+ <policy key="thottlePolicy"/>
+ </throttle:throttle>
+ <send>
+ <endpoint>
+ <address uri="http://localhost:8082/axis2/services/SimpleStockQuoteService"/>
+ </endpoint>
+ </send>
+ </in>
+ <out>
+ <send/>
+ </out>
+ </sequence>
+</definitions>
Propchange: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_401.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_5.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_5.xml?view=diff&rev=519363&r1=519362&r2=519363
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_5.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_5.xml Sat Mar 17 09:18:32 2007
@@ -1,78 +1,78 @@
-<!--
- ~ 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.
- -->
-
-<synapse xmlns="http://ws.apache.org/ns/synapse">
-
- <!-- error handling within a sequence using the 'onError' sequence -->
- <definitions>
-
- <!-- define an endpoint for the stock quote service -->
- <endpoint name="simple">
- <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
- </endpoint>
-
- <!-- define a non-existent endpoint to test error handling -->
- <endpoint name="bogus">
- <address uri="http://localhost:9009/axis2/services/NonExistentStockQuoteService"/>
- </endpoint>
-
- <!-- demonstrate the specification of an error handler sequence for a sequence -->
- <sequence name="stockquote" onError="errorHandler">
- <switch source="//m0:getQuote/m0:request/m0:symbol"
- xmlns:m0="http://services.samples/xsd">
- <case regex="IBM">
- <send>
- <endpoint ref="simple"/>
- </send>
- </case>
- <case regex="MSFT">
- <send>
- <endpoint ref="bogus"/>
- </send>
- </case>
- </switch>
- </sequence>
-
- <!-- define a sequence to be used for error handling -->
- <sequence name="errorHandler">
-
- <!-- Log the error -->
- <log level="custom">
- <property name="text" value="An unexpected error occured"/>
- <property name="message" expression="get-property('ERROR_MESSAGE')"/>
- <property name="detail" expression="get-property('ERROR_DETAIL')"/>
- </log>
-
- <!-- create a custom fault message -->
- <makefault>
- <code value="tns:Receiver" xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
- <reason expression="get-property('ERROR_MESSAGE')"/>
- </makefault>
-
- <send/>
- </sequence>
-
- </definitions>
-
- <rules>
- <sequence ref="stockquote"/>
- <send/>
- </rules>
-
+<!--
+ ~ 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.
+ -->
+
+<synapse xmlns="http://ws.apache.org/ns/synapse">
+
+ <!-- error handling within a sequence using the 'onError' sequence -->
+ <definitions>
+
+ <!-- define an endpoint for the stock quote service -->
+ <endpoint name="simple">
+ <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
+ </endpoint>
+
+ <!-- define a non-existent endpoint to test error handling -->
+ <endpoint name="bogus">
+ <address uri="http://localhost:9009/axis2/services/NonExistentStockQuoteService"/>
+ </endpoint>
+
+ <!-- demonstrate the specification of an error handler sequence for a sequence -->
+ <sequence name="stockquote" onError="errorHandler">
+ <switch source="//m0:getQuote/m0:request/m0:symbol"
+ xmlns:m0="http://services.samples/xsd">
+ <case regex="IBM">
+ <send>
+ <endpoint ref="simple"/>
+ </send>
+ </case>
+ <case regex="MSFT">
+ <send>
+ <endpoint ref="bogus"/>
+ </send>
+ </case>
+ </switch>
+ </sequence>
+
+ <!-- define a sequence to be used for error handling -->
+ <sequence name="errorHandler">
+
+ <!-- Log the error -->
+ <log level="custom">
+ <property name="text" value="An unexpected error occured"/>
+ <property name="message" expression="get-property('ERROR_MESSAGE')"/>
+ <property name="detail" expression="get-property('ERROR_DETAIL')"/>
+ </log>
+
+ <!-- create a custom fault message -->
+ <makefault>
+ <code value="tns:Receiver" xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
+ <reason expression="get-property('ERROR_MESSAGE')"/>
+ </makefault>
+
+ <send/>
+ </sequence>
+
+ </definitions>
+
+ <rules>
+ <sequence ref="stockquote"/>
+ <send/>
+ </rules>
+
</synapse>
Propchange: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_5.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_50.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_50.xml?view=diff&rev=519363&r1=519362&r2=519363
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_50.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_50.xml Sat Mar 17 09:18:32 2007
@@ -1,48 +1,48 @@
-<!--
- ~ 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.
- -->
-
-<synapse xmlns="http://ws.apache.org/ns/synapse">
-
- <!-- Connecting to endpoints with WS-Security for outgoing messages -->
- <definitions>
- <set-property name="sec_policy" src="file:repository/conf/sample/resources/policy/policy_3.xml"/>
-
- <endpoint name="secure">
- <address uri="http://localhost:9000/axis2/services/SecureStockQuoteService3">
- <enableSec policy="sec_policy"/>
- <enableAddressing/>
- </address>
- </endpoint>
- </definitions>
-
- <rules>
- <in>
- <header name="To" value="http://localhost:9000/axis2/services/SecureStockQuoteService3"/>
- <send>
- <endpoint ref="secure"/>
- </send>
- </in>
- <out>
- <header name="wsse:Security" action="remove"
- xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
- <send/>
- </out>
- </rules>
-
+<!--
+ ~ 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.
+ -->
+
+<synapse xmlns="http://ws.apache.org/ns/synapse">
+
+ <!-- Connecting to endpoints with WS-Security for outgoing messages -->
+ <definitions>
+ <set-property name="sec_policy" src="file:repository/conf/sample/resources/policy/policy_3.xml"/>
+
+ <endpoint name="secure">
+ <address uri="http://localhost:9000/axis2/services/SecureStockQuoteService3">
+ <enableSec policy="sec_policy"/>
+ <enableAddressing/>
+ </address>
+ </endpoint>
+ </definitions>
+
+ <rules>
+ <in>
+ <header name="To" value="http://localhost:9000/axis2/services/SecureStockQuoteService3"/>
+ <send>
+ <endpoint ref="secure"/>
+ </send>
+ </in>
+ <out>
+ <header name="wsse:Security" action="remove"
+ xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
+ <send/>
+ </out>
+ </rules>
+
</synapse>
Propchange: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_50.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_6.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_6.xml?view=diff&rev=519363&r1=519362&r2=519363
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_6.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_6.xml Sat Mar 17 09:18:32 2007
@@ -1,49 +1,49 @@
-<!--
- ~ 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.
- -->
-
-<synapse xmlns="http://ws.apache.org/ns/synapse">
-
- <!-- illustration of various mediators : header, in and out mediators -->
- <rules>
- <!-- the in mediator applies only to 'incoming' messages (requests) into synapse -->
- <in>
- <filter source="//m0:getQuote/m0:request/m0:symbol" regex="IBM"
- xmlns:m0="http://services.samples/xsd">
- <!-- set the message header for the 'To' EPR to the supplied value -->
- <header name="To"
- value="http://localhost:9000/axis2/services/SimpleStockQuoteService1"/>
- <send/>
- </filter>
-
- <!-- drop (i.e. abort processing of) any other messages -->
- <drop/>
- </in>
-
- <!-- the out mediator applies only to 'outgoing' messages (responses) from synapse -->
- <out>
- <!-- display a log message at the time a response passes through synapse -->
- <log level="custom">
- <property name="message" value="sending back the response"/>
- </log>
-
- <send/>
- </out>
- </rules>
-
+<!--
+ ~ 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.
+ -->
+
+<synapse xmlns="http://ws.apache.org/ns/synapse">
+
+ <!-- illustration of various mediators : header, in and out mediators -->
+ <rules>
+ <!-- the in mediator applies only to 'incoming' messages (requests) into synapse -->
+ <in>
+ <filter source="//m0:getQuote/m0:request/m0:symbol" regex="IBM"
+ xmlns:m0="http://services.samples/xsd">
+ <!-- set the message header for the 'To' EPR to the supplied value -->
+ <header name="To"
+ value="http://localhost:9000/axis2/services/SimpleStockQuoteService1"/>
+ <send/>
+ </filter>
+
+ <!-- drop (i.e. abort processing of) any other messages -->
+ <drop/>
+ </in>
+
+ <!-- the out mediator applies only to 'outgoing' messages (responses) from synapse -->
+ <out>
+ <!-- display a log message at the time a response passes through synapse -->
+ <log level="custom">
+ <property name="message" value="sending back the response"/>
+ </log>
+
+ <send/>
+ </out>
+ </rules>
+
</synapse>
Propchange: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_6.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_7.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_7.xml?view=diff&rev=519363&r1=519362&r2=519363
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_7.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_7.xml Sat Mar 17 09:18:32 2007
@@ -1,89 +1,89 @@
-<!--
- ~ 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.
- -->
-
-<synapse xmlns="http://ws.apache.org/ns/synapse">
-
- <!-- introduction of static inline XML properties and the validation mediator -->
- <definitions>
-
- <!-- define a static property for an XSD schema resource as an inline XML fragment -->
- <set-property name="validate_schema">
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns="http://www.apache-synapse.org/test" elementFormDefault="qualified"
- attributeFormDefault="unqualified"
- targetNamespace="http://services.samples/xsd">
- <xs:element name="getQuote">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="request">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="stocksymbol" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:schema>
- </set-property>
-
- <endpoint name="stockquote">
- <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
- </endpoint>
-
- <sequence name="customrequest">
- <!-- is this a valid custom request ? -->
- <validate>
- <schema key="validate_schema"/>
- <on-fail>
- <!-- if the request does not validate againt schema throw a fault -->
- <makefault>
- <code value="tns:Receiver"
- xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
- <reason value="Invalid custom quote request"/>
- </makefault>
-
- <!-- send the fault and stop processing -->
- <send/>
- </on-fail>
- </validate>
-
- <!-- send message to real endpoint referenced by name "stockquote" and stop -->
- <send>
- <endpoint ref="stockquote"/>
- </send>
- </sequence>
-
- </definitions>
-
- <rules>
- <in>
- <!-- is this a custom stock quote message? -->
- <filter xpath="//m0:getQuote" xmlns:m0="http://services.samples/xsd">
- <sequence ref="customrequest"/>
- </filter>
- </in>
-
- <!-- just let the message flow through -->
- <send/>
-
- </rules>
-
+<!--
+ ~ 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.
+ -->
+
+<synapse xmlns="http://ws.apache.org/ns/synapse">
+
+ <!-- introduction of static inline XML properties and the validation mediator -->
+ <definitions>
+
+ <!-- define a static property for an XSD schema resource as an inline XML fragment -->
+ <set-property name="validate_schema">
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns="http://www.apache-synapse.org/test" elementFormDefault="qualified"
+ attributeFormDefault="unqualified"
+ targetNamespace="http://services.samples/xsd">
+ <xs:element name="getQuote">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="request">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="stocksymbol" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:schema>
+ </set-property>
+
+ <endpoint name="stockquote">
+ <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
+ </endpoint>
+
+ <sequence name="customrequest">
+ <!-- is this a valid custom request ? -->
+ <validate>
+ <schema key="validate_schema"/>
+ <on-fail>
+ <!-- if the request does not validate againt schema throw a fault -->
+ <makefault>
+ <code value="tns:Receiver"
+ xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
+ <reason value="Invalid custom quote request"/>
+ </makefault>
+
+ <!-- send the fault and stop processing -->
+ <send/>
+ </on-fail>
+ </validate>
+
+ <!-- send message to real endpoint referenced by name "stockquote" and stop -->
+ <send>
+ <endpoint ref="stockquote"/>
+ </send>
+ </sequence>
+
+ </definitions>
+
+ <rules>
+ <in>
+ <!-- is this a custom stock quote message? -->
+ <filter xpath="//m0:getQuote" xmlns:m0="http://services.samples/xsd">
+ <sequence ref="customrequest"/>
+ </filter>
+ </in>
+
+ <!-- just let the message flow through -->
+ <send/>
+
+ </rules>
+
</synapse>
Propchange: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_7.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_8.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_8.xml?view=diff&rev=519363&r1=519362&r2=519363
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_8.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_8.xml Sat Mar 17 09:18:32 2007
@@ -1,71 +1,71 @@
-<!--
- ~ 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.
- -->
-
-<synapse xmlns="http://ws.apache.org/ns/synapse">
-
- <!-- introduction to URL source properties, registry based properties and the XSLT mediator -->
-
- <!-- the SimpleURLRegistry allows access to a URL based resource store such as the -->
- <!-- file system (file://) or a web server (http://) -->
- <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
- <!-- the root property of the simple URL registry helps resolve a resource URL as root + key -->
- <parameter name="root">file:./../../repository/</parameter>
- <!-- all resources loaded from the URL registry would be cached for this number of milli seconds -->
- <parameter name="cachableDuration">15000</parameter>
- </registry>
-
-
- <definitions>
-
- <!-- define a static property for the first XSLT resource as an URL source (could be any URL src) -->
- <set-property name="xslt-key-req"
- src="file:repository/conf/sample/resources/transform/transform.xslt"/>
-
- <!-- define a dynamic property for the second XSLT resource as a key reference to the registry -->
- <!-- the key is just a unique identifier for a resource on the registry. It is treated as a string literal -->
- <set-property name="xslt-key-resp" key="transform/transform_back.xslt"/>
-
- <!-- define a reuseable endpoint definition and use it within config -->
- <endpoint name="stockquote">
- <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
- </endpoint>
-
- </definitions>
-
- <rules>
- <in>
- <!-- transform the custom quote request into a standard quote requst expected by the service -->
- <xslt key="xslt-key-req"/>
-
- <!-- send message to real endpoint referenced by name "stockquote" and stop -->
- <send>
- <endpoint ref="stockquote"/>
- </send>
- </in>
-
- <out>
- <!-- transform the standard response back into the custom format the client expects -->
- <xslt key="xslt-key-resp"/>
-
- <!-- now send the custom response back to the client and stop -->
- <send/>
- </out>
- </rules>
-
+<!--
+ ~ 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.
+ -->
+
+<synapse xmlns="http://ws.apache.org/ns/synapse">
+
+ <!-- introduction to URL source properties, registry based properties and the XSLT mediator -->
+
+ <!-- the SimpleURLRegistry allows access to a URL based resource store such as the -->
+ <!-- file system (file://) or a web server (http://) -->
+ <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
+ <!-- the root property of the simple URL registry helps resolve a resource URL as root + key -->
+ <parameter name="root">file:./../../repository/</parameter>
+ <!-- all resources loaded from the URL registry would be cached for this number of milli seconds -->
+ <parameter name="cachableDuration">15000</parameter>
+ </registry>
+
+
+ <definitions>
+
+ <!-- define a static property for the first XSLT resource as an URL source (could be any URL src) -->
+ <set-property name="xslt-key-req"
+ src="file:repository/conf/sample/resources/transform/transform.xslt"/>
+
+ <!-- define a dynamic property for the second XSLT resource as a key reference to the registry -->
+ <!-- the key is just a unique identifier for a resource on the registry. It is treated as a string literal -->
+ <set-property name="xslt-key-resp" key="transform/transform_back.xslt"/>
+
+ <!-- define a reuseable endpoint definition and use it within config -->
+ <endpoint name="stockquote">
+ <address uri="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
+ </endpoint>
+
+ </definitions>
+
+ <rules>
+ <in>
+ <!-- transform the custom quote request into a standard quote requst expected by the service -->
+ <xslt key="xslt-key-req"/>
+
+ <!-- send message to real endpoint referenced by name "stockquote" and stop -->
+ <send>
+ <endpoint ref="stockquote"/>
+ </send>
+ </in>
+
+ <out>
+ <!-- transform the standard response back into the custom format the client expects -->
+ <xslt key="xslt-key-resp"/>
+
+ <!-- now send the custom response back to the client and stop -->
+ <send/>
+ </out>
+ </rules>
+
</synapse>
Propchange: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_8.xml
------------------------------------------------------------------------------
svn:eol-style = native
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org