Added: synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample700.xml URL: http://svn.apache.org/viewvc/synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample700.xml?rev=1039812&view=auto ============================================================================== --- synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample700.xml (added) +++ synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample700.xml Sun Nov 28 02:19:07 2010 @@ -0,0 +1,90 @@ +<?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. + --> + +<document> + <properties> + <title>Apache Synapse - Sample X</title> + </properties> + <body> + <section name="Sample X: "> + <div class="xmlConf"><definitions xmlns="http://ws.apache.org/ns/synapse"> + <!--Simple in Memory Message Store with name foo --> + <messageStore name="foo" sequence="bar"> + <redelivery> + <!--retry interval 1 sec --> + <interval>1</interval> + <!--Message will be stored after 2 redeliveries --> + <maximumRedeliveries>2</maximumRedeliveries> + <exponentialBackoff>true</exponentialBackoff> + <backoffMutiplier>2</backoffMutiplier> + </redelivery> + </messageStore> + + <!-- filtering of messages with XPath and regex matches --> + <filter source="get-property('To')" regex=".*/StockQuote.*"> + <send> + <endpoint key="SampleEndpoint"/> + </send> + <drop/> + </filter> + <send/> + <!-- Endpoint named SampleEndpoint--> + <endpoint name="SampleEndpoint" onFault="foo"> + <address uri="http://localhost:9000/services/SimpleStockQuoteService"> + <suspendDurationOnFailure>2</suspendDurationOnFailure> + </address> + </endpoint> + + <sequence name="bar"> + <log level="full"/> + </sequence> +</definitions></div> + <subsection name="Objective"> + <p> + + </p> + </subsection> + <subsection name="Pre-requisites"> + <p> + <ul> + <li> + Deploy the SimpleStockQuoteService in the sample Axis2 server and start Axis2 + </li> + <li> + Start Synapse using the configuration numbered X (repository/conf/sample/synapse_sample_X.xml) + <div class="command"> + Unix/Linux: sh synapse.sh -sample X<br/> + Windows: synapse.bat -sample X + </div> + </li> + </ul> + </p> + </subsection> + <subsection name="Executing the Client"> + <div class="command">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/</div> + + <div class="consoleOutput">Sat Nov 18 21:01:23 IST 2006 SimpleStockQuoteService :: Generating quote for : IBM</div> + + <div class="consoleOutput">Standard :: Stock price = $95.26454380258552</div> + </subsection> + </section> + <p><a href="../samples.html">Back to Catalog</a></p> + </body> +</document> \ No newline at end of file
Added: synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample8.xml URL: http://svn.apache.org/viewvc/synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample8.xml?rev=1039812&view=auto ============================================================================== --- synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample8.xml (added) +++ synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample8.xml Sun Nov 28 02:19:07 2010 @@ -0,0 +1,85 @@ +<?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. + --> + +<document> + <properties> + <title>Apache Synapse - Sample X</title> + </properties> + <body> + <section name="Sample X: "> + <div class="xmlConf"><definitions xmlns="http://ws.apache.org/ns/synapse"> + + <!-- the SimpleURLRegistry allows access to a URL based registry (e.g. file:/// or 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/conf/sample/resources/</parameter> + <!-- all resources loaded from the URL registry would be cached for this number of milli seconds --> + <parameter name="cachableDuration">15000</parameter> + </registry> + + <!-- define the request processing XSLT resource as a static URL source --> + <localEntry key="xslt-key-req" src="file:repository/conf/sample/resources/transform/transform.xslt"/> + + <sequence name="main"> + <in> + <!-- transform the custom quote request into a standard quote requst expected by the service --> + <xslt key="xslt-key-req"/> + </in> + <out> + <!-- transform the standard response back into the custom format the client expects --> + <!-- the key is looked up in the remote registry and loaded as a 'dynamic' registry resource --> + <xslt key="transform/transform_back.xslt"/> + </out> + <send/> + </sequence> + +</definitions></div> + <subsection name="Objective"> + <p> + + </p> + </subsection> + <subsection name="Pre-requisites"> + <p> + <ul> + <li> + Deploy the SimpleStockQuoteService in the sample Axis2 server and start Axis2 + </li> + <li> + Start Synapse using the configuration numbered X (repository/conf/sample/synapse_sample_X.xml) + <div class="command"> + Unix/Linux: sh synapse.sh -sample X<br/> + Windows: synapse.bat -sample X + </div> + </li> + </ul> + </p> + </subsection> + <subsection name="Executing the Client"> + <div class="command">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/</div> + + <div class="consoleOutput">Sat Nov 18 21:01:23 IST 2006 SimpleStockQuoteService :: Generating quote for : IBM</div> + + <div class="consoleOutput">Standard :: Stock price = $95.26454380258552</div> + </subsection> + </section> + <p><a href="../samples.html">Back to Catalog</a></p> + </body> +</document> \ No newline at end of file Added: synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample9.xml URL: http://svn.apache.org/viewvc/synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample9.xml?rev=1039812&view=auto ============================================================================== --- synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample9.xml (added) +++ synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample9.xml Sun Nov 28 02:19:07 2010 @@ -0,0 +1,70 @@ +<?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. + --> + +<document> + <properties> + <title>Apache Synapse - Sample X</title> + </properties> + <body> + <section name="Sample X: "> + <div class="xmlConf"><definitions xmlns="http://ws.apache.org/ns/synapse"> + + <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry"> + <parameter name="root">file:./repository/conf/sample/resources/</parameter> + <parameter name="cachableDuration">15000</parameter> + </registry> + + <sequence name="main"> + <sequence key="sequence/dynamic_seq_1.xml"/> + </sequence> + +</definitions></div> + <subsection name="Objective"> + <p> + + </p> + </subsection> + <subsection name="Pre-requisites"> + <p> + <ul> + <li> + Deploy the SimpleStockQuoteService in the sample Axis2 server and start Axis2 + </li> + <li> + Start Synapse using the configuration numbered X (repository/conf/sample/synapse_sample_X.xml) + <div class="command"> + Unix/Linux: sh synapse.sh -sample X<br/> + Windows: synapse.bat -sample X + </div> + </li> + </ul> + </p> + </subsection> + <subsection name="Executing the Client"> + <div class="command">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/</div> + + <div class="consoleOutput">Sat Nov 18 21:01:23 IST 2006 SimpleStockQuoteService :: Generating quote for : IBM</div> + + <div class="consoleOutput">Standard :: Stock price = $95.26454380258552</div> + </subsection> + </section> + <p><a href="../samples.html">Back to Catalog</a></p> + </body> +</document> \ No newline at end of file
