You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mi...@apache.org on 2008/10/18 02:19:56 UTC

svn commit: r705821 - in /ode/branches/APACHE_ODE_1.X: ./ axis2-war/src/main/webapp/WEB-INF/conf/ axis2-war/src/test/java/org/apache/ode/axis2/ axis2-war/src/test/java/org/apache/rampart/samples/sample02/ axis2-war/src/test/java/org/apache/rampart/samp...

Author: midon
Date: Fri Oct 17 17:19:54 2008
New Revision: 705821

URL: http://svn.apache.org/viewvc?rev=705821&view=rev
Log:
ODE-388: Import and adapt all the relevant "basic" samples from Rampart repo.
See https://svn.apache.org/repos/asf/webservices/rampart/trunk/java/modules/rampart-samples/basic/

Added:
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/RampartBasicTest.java
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample02/
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample02/PWCBHandler.java
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample03/
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample03/PWCBHandler.java
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample04/
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample04/PWCBHandler.java
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample05/
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample05/PWCBHandler.java
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample06/
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample06/PWCBHandler.java
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample07/
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample07/PWCBHandler.java
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample08/
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample08/PWCBHandler.java
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample09/
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample09/PWCBHandler.java
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample10/
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample10/PWCBHandler.java
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample02.txt
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample03.txt
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample04.txt
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample05.txt
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample06.txt
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample07.txt
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample08.txt
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample09.txt
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample10.txt
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/client.jks
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/client.properties
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/HelloWorld2.bpel
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/HelloWorld2.wsdl
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/deploy.xml
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/echo-service.wsdl
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/testRequest.soap
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/readme.txt
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample02.axis2
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample03.axis2
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample04.axis2
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample05.axis2
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample06.axis2
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample07.axis2
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample08.axis2
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample09.axis2
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample10.axis2
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample02.aar
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample03.aar
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample04.aar
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample05.aar
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample06.aar
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample07.aar
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample08.aar
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample09.aar
    ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample10.aar
Modified:
    ode/branches/APACHE_ODE_1.X/Rakefile
    ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/WEB-INF/conf/axis2.xml

Modified: ode/branches/APACHE_ODE_1.X/Rakefile
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/Rakefile?rev=705821&r1=705820&r2=705821&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/Rakefile (original)
+++ ode/branches/APACHE_ODE_1.X/Rakefile Fri Oct 17 17:19:54 2008
@@ -245,6 +245,43 @@
         end
       end
     end
+
+    test.setup task(:prepare_rampart_basic_test) do |task|
+      # test_dir will be the Axis2 Repo dir
+      test_dir = _("target/test-classes/TestRampartBasic")
+      # copy the required modules
+      mkdir "#{test_dir}/modules" unless File.directory? "#{test_dir}/modules"
+      artifacts(AXIS2_MODULES.mods).map {|a| a.invoke }
+      cp AXIS2_MODULES.mods.map {|a| repositories.locate(a)} , _("#{test_dir}/modules")
+      # generate one process per test
+      Dir.chdir(test_dir) do
+        Dir["sample*.axis2"].each do |axis2_file| 
+          sample_name = axis2_file.gsub(".axis2","")
+          # create process directory
+          proc_dir = "process-basic-#{sample_name}"
+          mkdir proc_dir unless File.directory? proc_dir
+          # copy files
+          [axis2_file, "README-#{sample_name}.txt"].each{|f| cp f, proc_dir }
+         # cp axis2_file, "#{proc_dir}/"
+          # copy files from template and replace variable names
+          Dir["process-template/*"].each do |file|
+            lines = IO.readlines(file)
+            # copy file and replace template values
+            File.open("#{proc_dir}/#{File.basename(file)}", 'w') { |f| 
+              lines.each { |l| 
+                sample_id = sample_name[-2,2]
+                l.gsub!("{sample.namespace}", "http://sample#{sample_id}.samples.rampart.apache.org")
+                l.gsub!("{sample.service.name}", sample_name)
+                f<<l
+              }
+            }
+          end
+        end
+      end
+    end
+
+
+
   end
 
   desc "ODE APIs"

Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/WEB-INF/conf/axis2.xml
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/WEB-INF/conf/axis2.xml?rev=705821&r1=705820&r2=705821&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/WEB-INF/conf/axis2.xml (original)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/WEB-INF/conf/axis2.xml Fri Oct 17 17:19:54 2008
@@ -214,6 +214,8 @@
     <!--<parameter name="addressingPara" locked="false">N/A</parameter>-->
     <!--</moduleConfig>-->
 
+    <module ref="rampart" />
+
     <!-- ================================================= -->
     <!-- Phases  -->
     <!-- ================================================= -->
@@ -228,6 +230,10 @@
                      class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher">
                 <order phase="Transport"/>
             </handler>
+            <handler name="ODEAxisDispatcher"
+                     class="org.apache.ode.axis2.hooks.ODEAxisDispatcher">
+                <order phase="Transport"/>
+            </handler>
         </phase>
         <phase name="Addressing">
             <handler name="AddressingBasedDispatcher"
@@ -244,11 +250,6 @@
                      class="org.apache.axis2.dispatchers.RequestURIOperationDispatcher"/>
             <handler name="HTTPLocationBasedDispatcher"
                      class="org.apache.axis2.dispatchers.HTTPLocationBasedDispatcher"/>
-
-            <handler name="ODEAxisDispatcher"
-                     class="org.apache.ode.axis2.hooks.ODEAxisDispatcher">
-                <order phase="Dispatch"/>
-            </handler>
         </phase>
         <!--  System pre defined phases       -->
         <!--   After Postdispatch phase module author or or service author can add any phase he want      -->

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/RampartBasicTest.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/RampartBasicTest.java?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/RampartBasicTest.java (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/RampartBasicTest.java Fri Oct 17 17:19:54 2008
@@ -0,0 +1,96 @@
+/*
+ * 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.
+ */
+
+package org.apache.ode.axis2;
+
+import org.apache.axis2.transport.http.SimpleHTTPServer;
+import org.testng.annotations.Test;
+import org.testng.annotations.Factory;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.DataProvider;
+import org.testng.annotations.AfterMethod;
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.BeforeClass;
+import static org.testng.AssertJUnit.assertTrue;
+
+import java.net.URL;
+import java.io.File;
+import java.io.FilenameFilter;
+import java.io.FileFilter;
+import java.util.Arrays;
+
+/**
+ *
+ *
+ */
+public class RampartBasicTest extends Axis2TestBase {
+
+    @DataProvider(name = "bundles")
+    public Object[][] testPolicySamples() throws Exception {
+        File[] policies = new File(getClass().getClassLoader().getResource("TestRampartBasic").getFile()).listFiles(new FileFilter() {
+            public boolean accept(File pathname) {
+                return pathname.isDirectory() && pathname.getName().matches("process-basic-sample\\d*");
+            }
+        });
+        Object[][] bundles = new Object[policies.length][];
+        for (int i = 0; i < policies.length; i++) {
+            bundles[i] = new Object[]{"TestRampartBasic/" + policies[i].getName()};
+        }
+//        bundles = new Object[][]{new Object[]{"TestRampartBasic/process-basic-sample02"}};
+        return bundles;
+    }
+
+
+    @BeforeClass
+    protected void setUp() throws Exception {
+        // mind the annotation above also
+        startServer("TestRampartBasic", "webapp/WEB-INF/conf/axis2.xml");
+//        try{
+//            while(true){
+//                synchronized (this){
+//                    wait(50);
+//                }
+//            }
+//        }catch(Exception e){
+//            e.printStackTrace();
+//        }
+    }
+
+    @AfterClass
+    protected void tearDown() throws Exception {
+        // simply change the annotation, see above
+        super.tearDown();
+    }
+
+    @Test(dataProvider = "bundles")
+    public void executeProcess(String bundleName) throws Exception {
+        if (server.isDeployed(new File(bundleName).getName())){
+            server.undeployProcess(bundleName);
+        }
+        server.deployProcess(bundleName);
+        try {
+            String response = server.sendRequestFile("http://localhost:8888/processes/helloWorld",
+                    bundleName, "testRequest.soap");
+            System.out.println(response);
+            assertTrue(response.contains("helloResponse") && response.contains("Hello World"));
+        } finally {
+            server.undeployProcess(bundleName);
+        }
+    }
+}
\ No newline at end of file

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample02/PWCBHandler.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample02/PWCBHandler.java?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample02/PWCBHandler.java (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample02/PWCBHandler.java Fri Oct 17 17:19:54 2008
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ */
+
+package org.apache.rampart.samples.sample02;
+
+import org.apache.ws.security.WSPasswordCallback;
+
+import javax.security.auth.callback.Callback;
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.callback.UnsupportedCallbackException;
+
+import java.io.IOException;
+
+public class PWCBHandler implements CallbackHandler {
+
+    public void handle(Callback[] callbacks) throws IOException,
+            UnsupportedCallbackException {
+        for (int i = 0; i < callbacks.length; i++) {
+            WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
+            String id = pwcb.getIdentifer();
+            if("bob".equals(id)) {
+                pwcb.setPassword("bobPW");
+            }
+        }
+    }
+
+}

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample03/PWCBHandler.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample03/PWCBHandler.java?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample03/PWCBHandler.java (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample03/PWCBHandler.java Fri Oct 17 17:19:54 2008
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ */
+
+package org.apache.rampart.samples.sample03;
+
+import org.apache.ws.security.WSPasswordCallback;
+
+import javax.security.auth.callback.Callback;
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.callback.UnsupportedCallbackException;
+
+import java.io.IOException;
+
+public class PWCBHandler implements CallbackHandler {
+
+    public void handle(Callback[] callbacks) throws IOException,
+            UnsupportedCallbackException {
+
+        for (int i = 0; i < callbacks.length; i++) {
+            
+            //When the server side need to authenticate the user
+            WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
+            if (pwcb.getUsage() == WSPasswordCallback.USERNAME_TOKEN_UNKNOWN) {
+                if(pwcb.getIdentifer().equals("bob") && pwcb.getPassword().equals("bobPW")) {
+                    //If authentication successful, simply return
+                    return;
+                } else {
+                    throw new UnsupportedCallbackException(callbacks[i], "check failed");
+                }
+            }
+            
+            //When the client requests for the password to be added in to the 
+            //UT element
+            pwcb.setPassword("bobPW");
+        }
+    }
+
+}

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample04/PWCBHandler.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample04/PWCBHandler.java?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample04/PWCBHandler.java (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample04/PWCBHandler.java Fri Oct 17 17:19:54 2008
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ */
+
+package org.apache.rampart.samples.sample04;
+
+import org.apache.ws.security.WSPasswordCallback;
+
+import javax.security.auth.callback.Callback;
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.callback.UnsupportedCallbackException;
+
+import java.io.IOException;
+
+public class PWCBHandler implements CallbackHandler {
+
+    public void handle(Callback[] callbacks) throws IOException,
+            UnsupportedCallbackException {
+        for (int i = 0; i < callbacks.length; i++) {
+            WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
+            
+            String id = pwcb.getIdentifer();
+            if("client".equals(id)) {
+                pwcb.setPassword("apache");
+            } else if("service".equals(id)) {
+                pwcb.setPassword("apache");
+            }
+        }
+    }
+
+}

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample05/PWCBHandler.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample05/PWCBHandler.java?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample05/PWCBHandler.java (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample05/PWCBHandler.java Fri Oct 17 17:19:54 2008
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ */
+
+package org.apache.rampart.samples.sample05;
+
+import org.apache.ws.security.WSPasswordCallback;
+
+import javax.security.auth.callback.Callback;
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.callback.UnsupportedCallbackException;
+
+import java.io.IOException;
+
+public class PWCBHandler implements CallbackHandler {
+
+    public void handle(Callback[] callbacks) throws IOException,
+            UnsupportedCallbackException {
+        for (int i = 0; i < callbacks.length; i++) {
+            WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
+            
+            String id = pwcb.getIdentifer();
+            if("client".equals(id)) {
+                pwcb.setPassword("apache");
+            } else if("service".equals(id)) {
+                pwcb.setPassword("apache");
+            }
+        }
+    }
+
+}

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample06/PWCBHandler.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample06/PWCBHandler.java?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample06/PWCBHandler.java (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample06/PWCBHandler.java Fri Oct 17 17:19:54 2008
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ */
+
+package org.apache.rampart.samples.sample06;
+
+import org.apache.ws.security.WSPasswordCallback;
+
+import javax.security.auth.callback.Callback;
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.callback.UnsupportedCallbackException;
+
+import java.io.IOException;
+
+public class PWCBHandler implements CallbackHandler {
+
+    public void handle(Callback[] callbacks) throws IOException,
+            UnsupportedCallbackException {
+        for (int i = 0; i < callbacks.length; i++) {
+            WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
+            
+            String id = pwcb.getIdentifer();
+            if("client".equals(id)) {
+                pwcb.setPassword("apache");
+            } else if("service".equals(id)) {
+                pwcb.setPassword("apache");
+            }
+        }
+    }
+
+}

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample07/PWCBHandler.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample07/PWCBHandler.java?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample07/PWCBHandler.java (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample07/PWCBHandler.java Fri Oct 17 17:19:54 2008
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ */
+
+package org.apache.rampart.samples.sample07;
+
+import org.apache.ws.security.WSPasswordCallback;
+
+import javax.security.auth.callback.Callback;
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.callback.UnsupportedCallbackException;
+
+import java.io.IOException;
+
+public class PWCBHandler implements CallbackHandler {
+
+    public void handle(Callback[] callbacks) throws IOException,
+            UnsupportedCallbackException {
+        for (int i = 0; i < callbacks.length; i++) {
+            WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
+            
+            String id = pwcb.getIdentifer();
+            if("client".equals(id)) {
+                pwcb.setPassword("apache");
+            } else if("service".equals(id)) {
+                pwcb.setPassword("apache");
+            }
+        }
+    }
+
+}

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample08/PWCBHandler.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample08/PWCBHandler.java?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample08/PWCBHandler.java (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample08/PWCBHandler.java Fri Oct 17 17:19:54 2008
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ */
+
+package org.apache.rampart.samples.sample08;
+
+import org.apache.ws.security.WSPasswordCallback;
+
+import javax.security.auth.callback.Callback;
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.callback.UnsupportedCallbackException;
+
+import java.io.IOException;
+
+public class PWCBHandler implements CallbackHandler {
+
+    public void handle(Callback[] callbacks) throws IOException,
+            UnsupportedCallbackException {
+        for (int i = 0; i < callbacks.length; i++) {
+            WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
+            
+            String id = pwcb.getIdentifer();
+            if("client".equals(id)) {
+                pwcb.setPassword("apache");
+            } else if("service".equals(id)) {
+                pwcb.setPassword("apache");
+            }
+        }
+    }
+
+}

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample09/PWCBHandler.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample09/PWCBHandler.java?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample09/PWCBHandler.java (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample09/PWCBHandler.java Fri Oct 17 17:19:54 2008
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ */
+
+package org.apache.rampart.samples.sample09;
+
+import org.apache.ws.security.WSPasswordCallback;
+
+import javax.security.auth.callback.Callback;
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.callback.UnsupportedCallbackException;
+
+import java.io.IOException;
+
+public class PWCBHandler implements CallbackHandler {
+
+    private static final byte[] key = {
+
+    (byte) 0x31, (byte) 0xfd, (byte) 0xcb, (byte) 0xda, (byte) 0xfb,
+
+    (byte) 0xcd, (byte) 0x6b, (byte) 0xa8, (byte) 0xe6, (byte) 0x19,
+
+    (byte) 0xa7, (byte) 0xbf, (byte) 0x51, (byte) 0xf7, (byte) 0xc7,
+
+    (byte) 0x3e };
+
+    public void handle(Callback[] callbacks) throws IOException,
+            UnsupportedCallbackException {
+        for (int i = 0; i < callbacks.length; i++) {
+            WSPasswordCallback pwcb = (WSPasswordCallback) callbacks[i];
+
+            if (pwcb.getUsage() == WSPasswordCallback.KEY_NAME) {
+                pwcb.setKey(key);
+            }
+        }
+    }
+
+}

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample10/PWCBHandler.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample10/PWCBHandler.java?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample10/PWCBHandler.java (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/rampart/samples/sample10/PWCBHandler.java Fri Oct 17 17:19:54 2008
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ */
+
+package org.apache.rampart.samples.sample10;
+
+import org.apache.ws.security.WSPasswordCallback;
+
+import javax.security.auth.callback.Callback;
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.callback.UnsupportedCallbackException;
+
+import java.io.IOException;
+
+public class PWCBHandler implements CallbackHandler {
+
+    public void handle(Callback[] callbacks) throws IOException,
+            UnsupportedCallbackException {
+        for (int i = 0; i < callbacks.length; i++) {
+            WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
+            
+            String id = pwcb.getIdentifer();
+            if("client".equals(id)) {
+                pwcb.setPassword("apache");
+            } else if("service".equals(id)) {
+                pwcb.setPassword("apache");
+            }
+        }
+    }
+
+}

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample02.txt
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample02.txt?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample02.txt (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample02.txt Fri Oct 17 17:19:54 2008
@@ -0,0 +1,10 @@
+UsernameToken authentication
+
+The client is configured to add a UsernameToken to the outgoing message.
+	- See the "OutflowSecurity" parameter in the client.axis2.xml
+	
+The service is configured to process it.
+	- See the "InflowSecurity" parameter in the services.xml
+
+Note how org.apache.rampart.samples.sample02.PWCBHandler supplies the password 
+to wss4j to compute the digest for comparison.

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample03.txt
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample03.txt?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample03.txt (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample03.txt Fri Oct 17 17:19:54 2008
@@ -0,0 +1,12 @@
+UsernameToken authentication with a plain text password
+
+The client is configured to add a UsernameToken to the outgoing message.
+	- See the "OutflowSecurity" parameter in the client.axis2.xml
+	- Note the <passwordType>PasswordText</passwordType> element
+	
+The service is configured to process it.
+	- See the "InflowSecurity" parameter in the services.xml
+
+Note how org.apache.rampart.samples.sample03.PWCBHandler authenticates the 
+password
+

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample04.txt
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample04.txt?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample04.txt (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample04.txt Fri Oct 17 17:19:54 2008
@@ -0,0 +1,7 @@
+Message integrity and non-repudiation with signature
+
+Both client and servce are configured to sign the outgoing message and to verify
+the signature of the incoming message using their key pairs.
+	- See the "OutflowSecurity" and "InflowSecurity" parameters in the 
+      client.axis2.xml and serivces.xml files
+	

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample05.txt
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample05.txt?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample05.txt (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample05.txt Fri Oct 17 17:19:54 2008
@@ -0,0 +1,7 @@
+Encrypting messages
+
+Both client and servce are configured to encrypt the outgoing message and to 
+decrypt incoming message using their key pairs.
+	- See the "OutflowSecurity" and "InflowSecurity" parameters in the 
+      client.axis2.xml and serivces.xml files
+	

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample06.txt
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample06.txt?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample06.txt (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample06.txt Fri Oct 17 17:19:54 2008
@@ -0,0 +1,8 @@
+Sign and encrypt messages
+
+Both client and servce are configured to first sign and then encrypt the 
+outgoing message and to decrypt and verify the incoming message using their 
+key pairs.
+	- See the "OutflowSecurity" and "InflowSecurity" parameters in the 
+      client.axis2.xml and serivces.xml files
+	

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample07.txt
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample07.txt?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample07.txt (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample07.txt Fri Oct 17 17:19:54 2008
@@ -0,0 +1,8 @@
+Encrypt and sign messages
+
+Both client and servce are configured to first encrypt and then sign the 
+outgoing message and to verify and decrypt the incoming message using their 
+key pairs.
+	- See the "OutflowSecurity" and "InflowSecurity" parameters in the 
+      client.axis2.xml and serivces.xml files
+	

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample08.txt
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample08.txt?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample08.txt (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample08.txt Fri Oct 17 17:19:54 2008
@@ -0,0 +1,10 @@
+Signing twice
+
+The client is configured to sign the outgoing message twice
+	- See the "OutflowSecurity" parameter in the client.axis2.xml
+	- Note the aditional <action> element that defines the second signature.
+	
+The service is configured to process it.
+	- See the "InflowSecurity" parameter in the services.xml. Not that we 
+      simply use "Signature Signature" as action items.
+

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample09.txt
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample09.txt?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample09.txt (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample09.txt Fri Oct 17 17:19:54 2008
@@ -0,0 +1,8 @@
+Encryption with a key known to both parties
+
+Both client and servce are configured to encrypt the outgoing message and to 
+decrypt incoming message using a known named key
+	- See the "OutflowSecurity" and "InflowSecurity" parameters in the 
+      client.axis2.xml and serivces.xml files
+    - Note the use of <EmbeddedKeyName>SessionKey</EmbeddedKeyName>
+    - Note that org.apache.rampart.samples.sample09.PWCBHandler sets the key

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample10.txt
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample10.txt?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample10.txt (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/README-sample10.txt Fri Oct 17 17:19:54 2008
@@ -0,0 +1,8 @@
+Sign and encrypt messages
+
+Both client and servce are configured to first sign and then encrypt the 
+outgoing message and to decrypt and verify the incoming message using their 
+key pairs.
+	- See the "OutflowSecurity" and "InflowSecurity" parameters in the 
+      client.axis2.xml and serivces.xml files
+    - Note the use of <optimizeParts>[xpath expression]</optimizeParts>

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/client.jks
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/client.jks?rev=705821&view=auto
==============================================================================
Files ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/client.jks (added) and ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/client.jks Fri Oct 17 17:19:54 2008 differ

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/client.properties
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/client.properties?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/client.properties (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/client.properties Fri Oct 17 17:19:54 2008
@@ -0,0 +1,4 @@
+org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
+org.apache.ws.security.crypto.merlin.keystore.type=jks
+org.apache.ws.security.crypto.merlin.keystore.password=apache
+org.apache.ws.security.crypto.merlin.file=TestRampartBasic/client.jks
\ No newline at end of file

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/HelloWorld2.bpel
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/HelloWorld2.bpel?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/HelloWorld2.bpel (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/HelloWorld2.bpel Fri Oct 17 17:19:54 2008
@@ -0,0 +1,73 @@
+<!--
+  ~ 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.
+  -->
+<process name="HelloWorld2"
+    targetNamespace="http://ode/bpel/unit-test" 
+    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns:tns="http://ode/bpel/unit-test"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:test="http://ode/bpel/unit-test.wsdl"
+    xmlns:dummy="{sample.namespace}"
+    queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+    expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+  <import location="HelloWorld2.wsdl"
+     namespace="http://ode/bpel/unit-test.wsdl"
+     importType="http://schemas.xmlsoap.org/wsdl/" />
+
+   <partnerLinks>
+      <partnerLink name="helloPartnerLink" 
+         partnerLinkType="test:HelloPartnerLinkType" myRole="me" />
+      <partnerLink name="samplePartnerLink"
+         partnerLinkType="test:samplePartnerLinkType" partnerRole="you" />
+   </partnerLinks>
+    
+   <variables>
+     <variable name="myVar" messageType="test:HelloMessage"/>
+     <variable name="req" messageType="dummy:echoRequest"/>
+     <variable name="resp" messageType="dummy:echoResponse"/>
+   </variables>
+
+   <sequence>
+       <receive name="start" partnerLink="helloPartnerLink" portType="test:HelloPortType"
+          operation="hello" variable="myVar" createInstance="yes"/>
+
+       <assign>
+           <copy>
+                <from><literal><dummy:echo><dummy:param0>foo</dummy:param0></dummy:echo></literal></from>
+                <to>$req.parameters</to>
+           </copy>
+           <copy>
+               <from>$myVar.TestPart</from>
+               <to>$req.parameters/dummy:param0</to>
+           </copy>
+       </assign>
+
+       <invoke partnerLink="samplePartnerLink" portType="test:{sample.service.name}PortType"
+               operation="echo" inputVariable="req" outputVariable="resp"/>
+
+       <assign>
+           <copy>
+                <from>$resp.parameters/dummy:return</from>
+               <to>$myVar.TestPart</to>
+           </copy>
+       </assign>
+       <reply name="end" partnerLink="helloPartnerLink" portType="test:HelloPortType"
+              operation="hello" variable="myVar"/>
+   </sequence>
+</process>

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/HelloWorld2.wsdl
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/HelloWorld2.wsdl?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/HelloWorld2.wsdl (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/HelloWorld2.wsdl Fri Oct 17 17:19:54 2008
@@ -0,0 +1,73 @@
+<?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.
+  -->
+
+<wsdl:definitions 
+    targetNamespace="http://ode/bpel/unit-test.wsdl"
+    xmlns="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:tns="http://ode/bpel/unit-test.wsdl"
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+    xmlns:dummy="{sample.namespace}"
+    xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+
+	<wsdl:import namespace="{sample.namespace}" location="echo-service.wsdl"/>
+
+    <wsdl:message name="HelloMessage">
+        <wsdl:part name="TestPart" type="xsd:string"/>
+    </wsdl:message>
+    
+    <wsdl:portType name="HelloPortType">
+        <wsdl:operation name="hello">
+            <wsdl:input message="tns:HelloMessage" name="TestIn"/>
+            <wsdl:output message="tns:HelloMessage" name="TestOut"/>
+        </wsdl:operation>    
+    </wsdl:portType>
+    
+     <wsdl:binding name="HelloSoapBinding" type="tns:HelloPortType">
+        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="hello">
+            <soap:operation soapAction="" style="rpc"/>
+            <wsdl:input>
+                <soap:body
+                    namespace="http://ode/bpel/unit-test.wsdl"
+                    use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body
+                    namespace="http://ode/bpel/unit-test.wsdl" 
+                    use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="HelloService">
+		<wsdl:port name="HelloPort" binding="tns:HelloSoapBinding">
+     		<soap:address location="http://localhost:8080/ode/processes/helloWorld"/>
+		</wsdl:port>
+    </wsdl:service>
+    
+   <plnk:partnerLinkType name="HelloPartnerLinkType">
+       <plnk:role name="me" portType="tns:HelloPortType"/>
+   </plnk:partnerLinkType>
+    <plnk:partnerLinkType name="samplePartnerLinkType">
+	    <plnk:role name="you" portType="dummy:{sample.service.name}PortType"/>
+    </plnk:partnerLinkType>
+</wsdl:definitions>
+

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/deploy.xml
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/deploy.xml?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/deploy.xml (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/deploy.xml Fri Oct 17 17:19:54 2008
@@ -0,0 +1,34 @@
+<!--
+  ~ 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.
+  -->
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+	xmlns:pns="http://ode/bpel/unit-test"
+	xmlns:wns="http://ode/bpel/unit-test.wsdl"
+    xmlns:dns="{sample.namespace}">
+
+
+	<process name="pns:HelloWorld2">
+		<active>true</active>
+		<provide partnerLink="helloPartnerLink">
+			<service name="wns:HelloService" port="HelloPort"/>
+		</provide>
+        <invoke partnerLink="samplePartnerLink">
+		<service name="dns:{sample.service.name}" port="{sample.service.name}SOAP11port_http"/>
+        </invoke>
+    </process>
+</deploy>

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/echo-service.wsdl
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/echo-service.wsdl?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/echo-service.wsdl (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/echo-service.wsdl Fri Oct 17 17:19:54 2008
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+                  xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
+                  xmlns:ns0="{sample.namespace}"
+                  xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
+                  xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+                  xmlns:ns1="http://org.apache.axis2/xsd"
+                  xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+                  xmlns:xs="http://www.w3.org/2001/XMLSchema"
+                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+		  targetNamespace="{sample.namespace}">
+   <wsdl:types>
+	   <xs:schema xmlns:ns="{sample.namespace}"
+                 attributeFormDefault="qualified"
+                 elementFormDefault="qualified"
+		 targetNamespace="{sample.namespace}">
+         <xs:element name="echo">
+            <xs:complexType>
+               <xs:sequence>
+                  <xs:element minOccurs="0" name="param0" nillable="true" type="xs:string"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element name="echoResponse">
+            <xs:complexType>
+               <xs:sequence>
+                  <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+      </xs:schema>
+   </wsdl:types>
+   <wsdl:message name="echoRequest">
+      <wsdl:part name="parameters" element="ns0:echo"/>
+   </wsdl:message>
+   <wsdl:message name="echoResponse">
+      <wsdl:part name="parameters" element="ns0:echoResponse"/>
+   </wsdl:message>
+   <wsdl:portType name="{sample.service.name}PortType">
+      <wsdl:operation name="echo">
+         <wsdl:input message="ns0:echoRequest" wsaw:Action="urn:echo"/>
+         <wsdl:output message="ns0:echoResponse" wsaw:Action="urn:echoResponse"/>
+      </wsdl:operation>
+   </wsdl:portType>
+   <wsdl:binding name="{sample.service.name}SOAP11Binding" type="ns0:{sample.service.name}PortType">
+      <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+      <wsdl:operation name="echo">
+         <soap:operation soapAction="urn:echo" style="document"/>
+         <wsdl:input>
+            <soap:body use="literal"/>
+         </wsdl:input>
+         <wsdl:output>
+            <soap:body use="literal"/>
+         </wsdl:output>
+      </wsdl:operation>
+   </wsdl:binding>
+   <wsdl:service name="{sample.service.name}">
+      <wsdl:port name="{sample.service.name}SOAP11port_http" binding="ns0:{sample.service.name}SOAP11Binding">
+         <soap:address location="http://localhost:8888/axis2/processes/{sample.service.name}"/>
+      </wsdl:port>
+   </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/testRequest.soap
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/testRequest.soap?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/testRequest.soap (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/process-template/testRequest.soap Fri Oct 17 17:19:54 2008
@@ -0,0 +1,28 @@
+<?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.
+  -->
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
+  <!-- test soap message -->
+  <SOAP-ENV:Body>
+    <ns1:hello xmlns:ns1="http://ode/bpel/unit-test.wsdl">
+        <TestPart xmlns="">Hello World</TestPart>
+    </ns1:hello>
+  </SOAP-ENV:Body>
+</SOAP-ENV:Envelope>

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/readme.txt
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/readme.txt?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/readme.txt (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/readme.txt Fri Oct 17 17:19:54 2008
@@ -0,0 +1,19 @@
+
+
+How does TestRampart bundle work?
+========================================
+
+The goal of this test is to make sure Rampart is integrated properly.
+Rampart comes with a set of samples [1]. The same service is packaged with different policies.
+
+Here we reuse the policy samples and for each of them generate a process bundle based on the TestRampart/process-template.
+The qname of the services vary so two variables are replaced:
+{sample.namespace}
+{sample.service.name}
+
+This is done before running the tests in the Rakefile, see task :prepare_rampart_test.
+
+The external services are packaged as Axis archives in TestRampart/services.
+The Password Callback Handler classes are in src/test/java.
+
+[1] https://svn.apache.org/repos/asf/webservices/rampart/trunk/java/modules/rampart-samples/policy/
\ No newline at end of file

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample02.axis2
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample02.axis2?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample02.axis2 (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample02.axis2 Fri Oct 17 17:19:54 2008
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ !
+ ! Copyright 2006 The Apache Software Foundation.
+ !
+ ! Licensed 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.
+ !-->
+<service>
+
+    <module ref="rampart"/>
+
+    <parameter name="OutflowSecurity">
+        <action>
+            <items>UsernameToken Timestamp</items>
+            <user>bob</user>
+            <passwordCallbackClass>org.apache.rampart.samples.sample02.PWCBHandler</passwordCallbackClass>
+        </action>
+    </parameter>
+
+</service>
\ No newline at end of file

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample03.axis2
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample03.axis2?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample03.axis2 (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample03.axis2 Fri Oct 17 17:19:54 2008
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ !
+ ! Copyright 2006 The Apache Software Foundation.
+ !
+ ! Licensed 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.
+ !-->
+<service>
+	<module ref="rampart" />
+	
+    <parameter name="OutflowSecurity">
+      <action>
+        <items>UsernameToken</items>
+        <user>bob</user>
+        <passwordCallbackClass>org.apache.rampart.samples.sample03.PWCBHandler</passwordCallbackClass>
+        <passwordType>PasswordText</passwordType>
+      </action>
+    </parameter>
+    	
+</service>
\ No newline at end of file

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample04.axis2
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample04.axis2?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample04.axis2 (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample04.axis2 Fri Oct 17 17:19:54 2008
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ !
+ ! Copyright 2006 The Apache Software Foundation.
+ !
+ ! Licensed 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.
+ !-->
+<service>
+
+	<module ref="rampart" />
+	
+	<parameter name="OutflowSecurity">
+      <action>
+        <items>Timestamp Signature</items>
+        <user>client</user>
+        <signaturePropFile>TestRampartBasic/client.properties</signaturePropFile>
+        <passwordCallbackClass>org.apache.rampart.samples.sample04.PWCBHandler</passwordCallbackClass>
+        <signatureKeyIdentifier>DirectReference</signatureKeyIdentifier>
+      </action>
+    </parameter>
+
+    <parameter name="InflowSecurity">
+      <action>
+        <items>Timestamp Signature</items>
+        <signaturePropFile>TestRampartBasic/client.properties</signaturePropFile>
+      </action>
+    </parameter>
+    
+ </service>
\ No newline at end of file

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample05.axis2
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample05.axis2?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample05.axis2 (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample05.axis2 Fri Oct 17 17:19:54 2008
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ !
+ ! Copyright 2006 The Apache Software Foundation.
+ !
+ ! Licensed 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.
+ !-->
+<service>
+
+	<module ref="rampart" />
+
+	<parameter name="OutflowSecurity">
+      <action>
+        <items>Encrypt</items>
+        <encryptionUser>service</encryptionUser>
+        <encryptionPropFile>TestRampartBasic/client.properties</encryptionPropFile>
+      </action>
+    </parameter>
+
+    <parameter name="InflowSecurity">
+      <action>
+        <items>Encrypt</items>
+        <passwordCallbackClass>org.apache.rampart.samples.sample05.PWCBHandler</passwordCallbackClass>
+        <decryptionPropFile>TestRampartBasic/client.properties</decryptionPropFile>
+      </action>
+    </parameter>
+</service>
\ No newline at end of file

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample06.axis2
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample06.axis2?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample06.axis2 (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample06.axis2 Fri Oct 17 17:19:54 2008
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ !
+ ! Copyright 2006 The Apache Software Foundation.
+ !
+ ! Licensed 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.
+ !-->
+<service>
+    
+    <!--Signature and Encryption : Using the request's certificate-->
+	
+	<module ref="rampart" />
+	
+    <parameter name="OutflowSecurity">
+      <action>
+        <items>Timestamp Signature Encrypt</items>
+        <user>client</user>
+        <passwordCallbackClass>org.apache.rampart.samples.sample06.PWCBHandler</passwordCallbackClass>
+        <signaturePropFile>TestRampartBasic/client.properties</signaturePropFile>
+        <signatureKeyIdentifier>DirectReference</signatureKeyIdentifier>
+        <encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
+        <encryptionUser>service</encryptionUser>
+      </action>
+    </parameter>
+
+    <parameter name="InflowSecurity">
+      <action>
+        <items>Timestamp Signature Encrypt</items>
+        <passwordCallbackClass>org.apache.rampart.samples.sample06.PWCBHandler</passwordCallbackClass>
+        <signaturePropFile>TestRampartBasic/client.properties</signaturePropFile>
+      </action>
+    </parameter>
+    
+ </service>
\ No newline at end of file

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample07.axis2
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample07.axis2?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample07.axis2 (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample07.axis2 Fri Oct 17 17:19:54 2008
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ !
+ ! Copyright 2006 The Apache Software Foundation.
+ !
+ ! Licensed 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.
+ !-->
+<service>
+
+	<module ref="rampart" />
+	
+    <parameter name="OutflowSecurity">
+      <action>
+        <items>Timestamp Encrypt Signature</items>
+        <user>client</user>
+        <passwordCallbackClass>org.apache.rampart.samples.sample07.PWCBHandler</passwordCallbackClass>
+        <signaturePropFile>TestRampartBasic/client.properties</signaturePropFile>
+        <signatureKeyIdentifier>DirectReference</signatureKeyIdentifier>
+        <encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
+        <encryptionUser>service</encryptionUser>
+      </action>
+    </parameter>
+
+    <parameter name="InflowSecurity">
+      <action>
+        <items>Timestamp Encrypt Signature</items>
+        <passwordCallbackClass>org.apache.rampart.samples.sample07.PWCBHandler</passwordCallbackClass>
+        <signaturePropFile>TestRampartBasic/client.properties</signaturePropFile>
+      </action>
+    </parameter>
+</service>
\ No newline at end of file

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample08.axis2
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample08.axis2?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample08.axis2 (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample08.axis2 Fri Oct 17 17:19:54 2008
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ !
+ ! Copyright 2006 The Apache Software Foundation.
+ !
+ ! Licensed 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.
+ !-->
+<service>
+
+    <module ref="rampart" />
+
+	<!-- sample-8 : Double Signature -->
+	<parameter name="OutflowSecurity">
+
+        <action>
+            <items>Timestamp Signature NoSerialization</items>
+            <user>client</user>
+            <passwordCallbackClass>org.apache.rampart.samples.sample08.PWCBHandler</passwordCallbackClass>
+            <signatureKeyIdentifier>DirectReference</signatureKeyIdentifier>
+            <signatureParts>{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp</signatureParts>
+            <signaturePropFile>TestRampartBasic/client.properties</signaturePropFile>
+        </action>
+
+        <action>
+            <items>Signature</items>
+            <user>client</user>
+            <passwordCallbackClass>org.apache.rampart.samples.sample08.PWCBHandler</passwordCallbackClass>
+            <signaturePropFile>TestRampartBasic/client.properties</signaturePropFile>
+        </action>
+
+    </parameter>
+</service>
\ No newline at end of file

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample09.axis2
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample09.axis2?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample09.axis2 (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample09.axis2 Fri Oct 17 17:19:54 2008
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ !
+ ! Copyright 2006 The Apache Software Foundation.
+ !
+ ! Licensed 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.
+ !-->
+<service>
+
+	<module ref="rampart" />
+
+    <parameter name="OutflowSecurity">
+        <action>
+            <items>Encrypt</items>
+            <user>client</user>
+            <encryptionKeyIdentifier>EmbeddedKeyName</encryptionKeyIdentifier>
+            <EmbeddedKeyCallbackClass>org.apache.rampart.samples.sample09.PWCBHandler</EmbeddedKeyCallbackClass>
+            <encryptionPropFile>TestRampartBasic/client.properties</encryptionPropFile>
+            <EmbeddedKeyName>SessionKey</EmbeddedKeyName>
+        </action>
+    </parameter>
+
+    <parameter name="InflowSecurity">
+        <action>
+            <items>Encrypt</items>
+            <passwordCallbackClass>org.apache.rampart.samples.sample09.PWCBHandler</passwordCallbackClass>
+            <decryptionPropFile>TestRampartBasic/client.properties</decryptionPropFile>
+        </action>
+    </parameter>
+
+ </service>
\ No newline at end of file

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample10.axis2
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample10.axis2?rev=705821&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample10.axis2 (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/sample10.axis2 Fri Oct 17 17:19:54 2008
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ !
+ ! Copyright 2006 The Apache Software Foundation.
+ !
+ ! Licensed 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.
+ !-->
+<service>
+
+	<module ref="rampart" />
+
+	<!-- sample-10 : MTOM optimize encrypted content -->
+	
+    <parameter name="OutflowSecurity">
+      <action>
+        <items>Timestamp Signature Encrypt</items>
+        <user>client</user>
+        <passwordCallbackClass>org.apache.rampart.samples.sample10.PWCBHandler</passwordCallbackClass>
+        <signaturePropFile>TestRampartBasic/client.properties</signaturePropFile>
+        <signatureKeyIdentifier>DirectReference</signatureKeyIdentifier>
+        <encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
+        <encryptionUser>service</encryptionUser>
+        
+        <optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
+        
+      </action>
+    </parameter>
+
+    <parameter name="InflowSecurity">
+      <action>
+        <items>Timestamp Signature Encrypt</items>
+        <passwordCallbackClass>org.apache.rampart.samples.sample10.PWCBHandler</passwordCallbackClass>
+        <signaturePropFile>TestRampartBasic/client.properties</signaturePropFile>
+      </action>
+    </parameter>
+
+ </service>
\ No newline at end of file

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample02.aar
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample02.aar?rev=705821&view=auto
==============================================================================
Files ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample02.aar (added) and ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample02.aar Fri Oct 17 17:19:54 2008 differ

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample03.aar
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample03.aar?rev=705821&view=auto
==============================================================================
Files ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample03.aar (added) and ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample03.aar Fri Oct 17 17:19:54 2008 differ

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample04.aar
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample04.aar?rev=705821&view=auto
==============================================================================
Files ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample04.aar (added) and ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample04.aar Fri Oct 17 17:19:54 2008 differ

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample05.aar
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample05.aar?rev=705821&view=auto
==============================================================================
Files ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample05.aar (added) and ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample05.aar Fri Oct 17 17:19:54 2008 differ

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample06.aar
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample06.aar?rev=705821&view=auto
==============================================================================
Files ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample06.aar (added) and ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample06.aar Fri Oct 17 17:19:54 2008 differ

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample07.aar
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample07.aar?rev=705821&view=auto
==============================================================================
Files ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample07.aar (added) and ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample07.aar Fri Oct 17 17:19:54 2008 differ

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample08.aar
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample08.aar?rev=705821&view=auto
==============================================================================
Files ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample08.aar (added) and ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample08.aar Fri Oct 17 17:19:54 2008 differ

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample09.aar
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample09.aar?rev=705821&view=auto
==============================================================================
Files ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample09.aar (added) and ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample09.aar Fri Oct 17 17:19:54 2008 differ

Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample10.aar
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample10.aar?rev=705821&view=auto
==============================================================================
Files ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample10.aar (added) and ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestRampartBasic/services/sample10.aar Fri Oct 17 17:19:54 2008 differ