Modified: incubator/synapse/branches/MVN2/repository/conf/sample/synapse_sample_4.xml URL: http://svn.apache.org/viewvc/incubator/synapse/branches/MVN2/repository/conf/sample/synapse_sample_4.xml?view=diff&rev=475394&r1=475380&r2=475394 ============================================================================== --- incubator/synapse/branches/MVN2/repository/conf/sample/synapse_sample_4.xml (original) +++ incubator/synapse/branches/MVN2/repository/conf/sample/synapse_sample_4.xml Wed Nov 15 12:11:08 2006 @@ -1,70 +1,60 @@ <synapse xmlns="http://ws.apache.org/ns/synapse"> - - <definitions> - <endpoint name="WsSecurity10_scenario_1" useWSA="true" useWSSec="true" useWSRM="false" address="http://localhost:9090/ssj/pingservice/Ping1"> - <parameter name="OutflowSecurity"> - <action> - <items>UsernameToken</items> - <user>Chris</user> - <passwordCallbackClass>samples.qos.security.WSSecInteropPWCallback</passwordCallbackClass> - <passwordType>PasswordText</passwordType> - </action> - </parameter> - </endpoint> - - <endpoint name="WsSecurity10_scenario_3" useWSA="true" useWSSec="true" useWSRM="false" address="http://localhost:9090/ssj/pingservice/Ping3"> - <parameter name="OutflowSecurity"> - <action> + <!-- illustration of various mediators : try-catch-finally and makefault mediators --> + <definitions> + + <!-- define an endpoint for the stock quote service --> + <endpoint name="simple" address="http://localhost:9000/axis2/services/SimpleStockQuoteService"/> + + <!-- define a non-existent endpoint to test error handling --> + <endpoint name="bogus" address="http://localhost:9000/axis2/services/NonExistentStockQuoteService"/> - <items>Timestamp Signature Encrypt</items> - <user>7dbc945b2ea9f2a8e5d163d80682a78fec42cbd0</user> - <passwordCallbackClass>samples.qos.security.WSSecInteropPWCallback</passwordCallbackClass> - <signaturePropFile>interop-client.properties</signaturePropFile> - <signatureKeyIdentifier>DirectReference</signatureKeyIdentifier> - <encryptionKeyIdentifier>DirectReference</encryptionKeyIdentifier> - <encryptionPropFile>interop-server.properties</encryptionPropFile> - <encryptionUser>38f376d22dc95f6329e43a91c6e8bedc22d044ff</encryptionUser> - - </action> - </parameter> - - <parameter name="InflowSecurity"> - <action> - <items>Encrypt Signature Timestamp</items> - <passwordCallbackClass>samples.qos.security.WSSecInteropPWCallback</passwordCallbackClass> - <signaturePropFile>interop-client.properties</signaturePropFile> - <!--<decryptionPropFile>interop-server.properties</decryptionPropFile> --> - <!--<decryptionUser>38f376d22dc95f6329e43a91c6e8bedc22d044ff</decryptionUser>--> - </action> - </parameter> - </endpoint> - - </definitions> + <!-- 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 value="get-property('ERROR_MESSAGE')"/> + </makefault> + + <send/> + </sequence> <rules> - <out> - <send/> - </out> - <in> - <switch source="get-property('Action')"> - <case regex="Ping1"> - <header name="Action" value="http://xmlsoap.org/Ping"/> - <send> - <endpoint ref="WsSecurity10_scenario_1"/> - </send> - </case> - <case regex="Ping3"> - <header name="Action" value="http://xmlsoap.org/Ping"/> - <send> - <endpoint ref="WsSecurity10_scenario_3"/> - </send> - </case> - <default> - <send/> - </default> - </switch> - </in> + + <try> + <sequence> + <switch source="//m0:CheckPriceRequest/m0:Code" xmlns:m0="http://www.apache-synapse.org/test"> + <case regex="IBM"> + <send> + <endpoint ref="simple"/> + </send> + </case> + <case regex="MSFT"> + <send> + <endpoint ref="bogus"/> + </send> + </case> + </switch> + </sequence> + <onError> + <sequence ref="errorHandler"/> + </onError> + <finally> + <log level="custom"> + <property name="message" value="Processed request"/> + </log> + </finally> + </try> + </rules> </synapse>
Modified: incubator/synapse/branches/MVN2/repository/conf/sample/synapse_sample_5.xml URL: http://svn.apache.org/viewvc/incubator/synapse/branches/MVN2/repository/conf/sample/synapse_sample_5.xml?view=diff&rev=475394&r1=475380&r2=475394 ============================================================================== --- incubator/synapse/branches/MVN2/repository/conf/sample/synapse_sample_5.xml (original) +++ incubator/synapse/branches/MVN2/repository/conf/sample/synapse_sample_5.xml Wed Nov 15 12:11:08 2006 @@ -1,35 +1,51 @@ <synapse xmlns="http://ws.apache.org/ns/synapse"> - + + <!-- illustration of various mediators : try-catch-finally and makefault mediators --> <definitions> - - <set-property name="policy_1" src="file:synapse_repository/conf/sample/policy_1.xml"/> - <set-property name="policy_3" src="file:synapse_repository/conf/sample/policy_3.xml"/> - - <endpoint name="secureEndpoint1" address="http://localhost:9000/axis2/services/SecureStockQuoteService1"> - <enableSec policy="policy_1"/> - </endpoint> - - <endpoint name="secureEndpoint3" address="http://localhost:9000/axis2/services/SecureStockQuoteService3"> - <enableSec policy="policy_3"/> - </endpoint> + + <!-- define an endpoint for the stock quote service --> + <endpoint name="simple" address="http://localhost:9000/axis2/services/SimpleStockQuoteService"/> + + <!-- define a non-existent endpoint to test error handling --> + <endpoint name="bogus" address="http://localhost:9000/axis2/services/NonExistentStockQuoteService"/> - </definitions> + <!-- demonstrate the specification of an error handler sequence for a sequence --> + <sequence onError="errorHandler"> + <switch source="//m0:CheckPriceRequest/m0:Code" xmlns:m0="http://www.apache-synapse.org/test"> + <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 value="get-property('ERROR_MESSAGE')"/> + </makefault> + + <send/> + </sequence> + <rules> - <filter source="get-property('To')" regex=".*/SecureStockQuoteService1.*"> - <send> - <endpoint ref="secureEndpoint1"/> - </send> - <drop/> - </filter> - - <filter source="get-property('To')" regex=".*/SecureStockQuoteService3.*"> - <send> - <endpoint ref="secureEndpoint3"/> - </send> - <drop/> - </filter> - <send/> + <sequence ref="stockquote"/> </rules> </synapse> Added: incubator/synapse/branches/MVN2/repository/conf/sample/synapse_sample_6.xml URL: http://svn.apache.org/viewvc/incubator/synapse/branches/MVN2/repository/conf/sample/synapse_sample_6.xml?view=auto&rev=475394 ============================================================================== --- incubator/synapse/branches/MVN2/repository/conf/sample/synapse_sample_6.xml (added) +++ incubator/synapse/branches/MVN2/repository/conf/sample/synapse_sample_6.xml Wed Nov 15 12:11:08 2006 @@ -0,0 +1,30 @@ +<synapse xmlns="http://ws.apache.org/ns/synapse"> + + <!-- illustration of various mediators : header, in and out mediators --> + <definitions> + + <rules> + <!-- the in mediator applies only to 'incoming' messages (requests) into synapse --> + <in> + <filter source="//m0:CheckPriceRequest/m0:Code" regex="IBM" xmlns:m0="http://www.apache-synapse.org/test"> + <!-- 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> \ No newline at end of file Added: incubator/synapse/branches/MVN2/src/main/assembly/bin.xml URL: http://svn.apache.org/viewvc/incubator/synapse/branches/MVN2/src/main/assembly/bin.xml?view=auto&rev=475394 ============================================================================== --- incubator/synapse/branches/MVN2/src/main/assembly/bin.xml (added) +++ incubator/synapse/branches/MVN2/src/main/assembly/bin.xml Wed Nov 15 12:11:08 2006 @@ -0,0 +1,102 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * 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. +--> +<assembly> + <id>bin</id> + <includeBaseDirectory>false</includeBaseDirectory> + <formats> + <!--<format>tar.gz</format>--> + <format>zip</format> + </formats> + + <fileSets> + <fileSet> + <directory>src/main/release</directory> + <outputDirectory>synapse-${synapse.version}</outputDirectory> + <includes> + <include>DISCLAIMER.txt</include> + <include>LICENSE.txt</include> + <include>NOTICE.txt</include> + <include>README.txt</include> + <include>BUILDING.txt</include> + <include>licenses/*.*</include> + </includes> + </fileSet> + <fileSet> + <directory>src/main/bin</directory> + <outputDirectory>synapse-${synapse.version}/bin</outputDirectory> + <fileMode>755</fileMode> + </fileSet> + <fileSet> + <directory>repository</directory> + <outputDirectory>synapse-${synapse.version}/repository</outputDirectory> + </fileSet> + <fileSet> + <directory>src/main/release/docs</directory> + <outputDirectory>synapse-${synapse.version}/docs</outputDirectory> + <includes> + <include>release_notes.txt</include> + </includes> + </fileSet> + <fileSet> + <directory>modules/samples</directory> + <outputDirectory>synapse-${synapse.version}/samples</outputDirectory> + <excludes> + <exclude>**/target</exclude> + <exclude>**/target/**/*</exclude> + </excludes> + </fileSet> + <!--<fileSet>--> + <!--<directory>target/javadoc</directory>--> + <!--<outputDirectory>synapse-${synapse.version}/docs/api</outputDirectory>--> + <!--<includes>--> + <!--<include>**/*</include>--> + <!--</includes>--> + <!--</fileSet>--> + <!--<fileSet>--> + <!--<directory>target/additional-libs</directory>--> + <!--<outputDirectory>synapse-${synapse.version}/lib</outputDirectory>--> + <!--<includes>--> + <!--<include>**/*</include>--> + <!--</includes>--> + <!--</fileSet>--> + <!--<fileSet>--> + <!--<directory>target</directory>--> + <!--<outputDirectory>synapse-${synapse.version}/lib</outputDirectory>--> + <!--<includes>--> + <!--<include>synapse-incubator.jar</include>--> + <!--</includes>--> + <!--</fileSet>--> + </fileSets> + <!--<dependencySets>--> + <!--<dependencySet>--> + <!--<outputDirectory>synapse-${synapse.version}/lib</outputDirectory>--> + <!--<unpack>false</unpack>--> + <!--<excludes>--> + <!--<exclude>org.apache.synapse</exclude>--> + <!--</excludes>--> + <!--<scope>runtime</scope>--> + <!--</dependencySet>--> + <!--</dependencySets>--> + <!--<dependencySets>--> + <!--<dependencySet>--> + <!--<outputDirectory>/lib</outputDirectory>--> + <!--</dependencySet>--> + <!--</dependencySets>--> +</assembly> Added: incubator/synapse/branches/MVN2/src/main/assembly/src.xml URL: http://svn.apache.org/viewvc/incubator/synapse/branches/MVN2/src/main/assembly/src.xml?view=auto&rev=475394 ============================================================================== --- incubator/synapse/branches/MVN2/src/main/assembly/src.xml (added) +++ incubator/synapse/branches/MVN2/src/main/assembly/src.xml Wed Nov 15 12:11:08 2006 @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * 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. +--> +<assembly> + <!-- id typically identifies the "type" (src vs bin etc) of the assembly --> + <id>src</id> + <includeBaseDirectory>false</includeBaseDirectory> + <formats> + <format>tar.gz</format> + <format>zip</format> + </formats> + + <fileSets> + <fileSet> + <directory>src/main/release</directory> + <outputDirectory>synapse-${synapse.version}</outputDirectory> + <includes> + <include>DISCLAIMER.txt</include> + <include>LICENSE.txt</include> + <include>NOTICE.txt</include> + <include>README.txt</include> + <include>BUILDING.txt</include> + <include>licenses/*.*</include> + </includes> + </fileSet> + <fileSet> + <directory>..</directory> + <outputDirectory>synapse-${synapse.version}-src</outputDirectory> + <includes> + <include>**/*</include> + </includes> + <excludes> + <exclude>build.xml</exclude> + <exclude>distribution/build.xml</exclude> + <exclude>benchmark</exclude> + <exclude>benchmark/**/*</exclude> + <exclude>**/target</exclude> + <exclude>**/target/**/*</exclude> + <exclude>**/build</exclude> + <exclude>**/build/**/*</exclude> + <exclude>**/.settings</exclude> + <exclude>**/.classpath</exclude> + <exclude>**/.project</exclude> + <exclude>**/.wtpmodules</exclude> + <exclude>**/surefire*</exclude> + <exclude>**/cobertura.ser</exclude> + <exclude>bin</exclude> + <exclude>bin/*</exclude> + <exclude>**/var/journal</exclude> + <exclude>**/build.out*</exclude> + </excludes> + </fileSet> + </fileSets> +</assembly> Added: incubator/synapse/branches/MVN2/src/main/release/DISCLAIMER.txt URL: http://svn.apache.org/viewvc/incubator/synapse/branches/MVN2/src/main/release/DISCLAIMER.txt?view=auto&rev=475394 ============================================================================== --- incubator/synapse/branches/MVN2/src/main/release/DISCLAIMER.txt (added) +++ incubator/synapse/branches/MVN2/src/main/release/DISCLAIMER.txt Wed Nov 15 12:11:08 2006 @@ -0,0 +1,5 @@ +Apache Synapse is an effort undergoing incubation at the Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC. + +Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. + +While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF. Added: incubator/synapse/branches/MVN2/src/main/release/docs/release_notes.txt URL: http://svn.apache.org/viewvc/incubator/synapse/branches/MVN2/src/main/release/docs/release_notes.txt?view=auto&rev=475394 ============================================================================== --- incubator/synapse/branches/MVN2/src/main/release/docs/release_notes.txt (added) +++ incubator/synapse/branches/MVN2/src/main/release/docs/release_notes.txt Wed Nov 15 12:11:08 2006 @@ -0,0 +1,23 @@ +Apache Synapse XX Release Notes + +1. Overview +2. Installation Prerequisites +3. Building the Samples +4. Known Problems +5. Reporting Problems +6. Specific issues, features, and improvements fixed in the +Synapse XX release: + +Release Notes - Synapse - Version XX + +6.1 Bugs + +6.2 Improvements + +6.3 New Features + +6.4 Tasks + +6.5 Tests + +6.6 Wishes Added: incubator/synapse/branches/MVN2/src/site/site.xml URL: http://svn.apache.org/viewvc/incubator/synapse/branches/MVN2/src/site/site.xml?view=auto&rev=475394 ============================================================================== --- incubator/synapse/branches/MVN2/src/site/site.xml (added) +++ incubator/synapse/branches/MVN2/src/site/site.xml Wed Nov 15 12:11:08 2006 @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<project name="Proficio"> + + <bannerLeft> + <name>Apache Synapse</name> + <href>incubator.apache.org/synapse/</href> + </bannerLeft> + + <!--<skin>--> + <!--<groupId>org.apache.maven.skins</groupId>--> + <!--<artifactId>maven-default-skin</artifactId>--> + <!--</skin>--> + + <publishDate format="dd MMM yyyy"/> + + <body> + <links> + <item name="Apache" href="http://www.apache.org/"/> + <item name="WebServices" href="http://ws.apache.org/"/> + </links> + + <menu name="Apache Synapse"> + <item name="About" href="index.xml"/> + <item name="Downloads"> + <item name="Releases" href="download.cgi"/> + <item name="Source Code" href="source-repository.html"/> + </item> + <item name="Documentation"> + <item name="Configuration Language" href="Synapse_Configuration_Language.html"/> + <item name="User guide" href="userguide.html"/> + <item name="Javadocs" href="/apidocs/index.html"/> + <!--<item name="View Source"--> + <!--href="http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/?root=Apache-SVN"/>--> + </item> + <item name="Project Information"> + <item name="Mailing Lists" href="/mail-lists.html"/> + <item name="Project Team" href="/team-list.html"/> + <item name="Issue Tracking" href="issue-tracking.html"/> + </item> + <item name="License" href="/license.html"/> + </menu> + + </body> +</project> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
