You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ch...@apache.org on 2005/07/14 09:57:29 UTC

svn commit: r219007 [1/3] - in /webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias: ./ SOAP12Testing/ SOAP12Testing/src/ SOAP12Testing/src/org/ SOAP12Testing/src/org/apache/ SOAP12Testing/src/org/apache/axis2/ SOAP12Testing/src/org/apac...

Author: chinthaka
Date: Thu Jul 14 00:57:23 2005
New Revision: 219007

URL: http://svn.apache.org/viewcvs?rev=219007&view=rev
Log:
Adding SOAP 1.2 Testing stuff on behalf of Anushka, Thilakarathne and Dias

Added:
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/MessageComparator.java
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/SOAP12TestClient.java
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/SOAPComparator.java
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/SOAPCreater.java
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/HeaderConstants.java
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12InFlowHandlerDefault.java
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12InFlowHandlerDefaultB.java
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12InFlowHandlerDefaultC.java
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12OutFaultFlowHandlerDefault.java
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12OutFlowHandlerDefault.java
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/server/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/server/SimpleServer.java
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/webservices/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/webservices/SOAP12TestWebServiceDefault.java
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ReqT24.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT1.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT10.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT11.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT12.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT13.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT14.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT15.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT16.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT17_B.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT18_C.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT19.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT2.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT21_B.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT22.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT23.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT24.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT25.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT26.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT29.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT3.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT30.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT31.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT32.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT33.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT34.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT35.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT36.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT37.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT38_1.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT38_2.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT39.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT4.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT40.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT5.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT62_C.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT63.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT66.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT67.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT68.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT69.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT74.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT78.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/test.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT1.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT10.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT11.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT12.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT13.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT14.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT15.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT16.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT17_A.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT18_A.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT18_B.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT19.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT2.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT20.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT21_A.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT22.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT23.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT24.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT25.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT26.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT29.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT3.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT30.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT31.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT32.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT33.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT34.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT35.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT36.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT37.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT38_1.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT38_2.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT39.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT4.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT40.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT5.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT62_A.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT62_B.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT63.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT66.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT67.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT68.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT69.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT6_A.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT6_B.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT74.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT75.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT78.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT7_A.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT7_B.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT8_A.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT8_B.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT9_A.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT9_B.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/axis2.xml
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/modules/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/modules/SOAP12TestModuleB.mar   (with props)
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/modules/SOAP12TestModuleC.mar   (with props)
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/services/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/services/SOAP12TestServiceB.aar   (with props)
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/services/SOAP12TestServiceC.aar   (with props)
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/soap12testsuite/
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/soap12testsuite/SOAP12Test.java
    webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/soap12testsuite/SOAP12TestWithFaults.java

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/MessageComparator.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/MessageComparator.java?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/MessageComparator.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/MessageComparator.java Thu Jul 14 00:57:23 2005
@@ -0,0 +1,55 @@
+/*
+* Copyright 2001-2004 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.axis2.soap12testing.client;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder;
+import org.apache.axis2.om.OMXMLParserWrapper;
+import org.apache.axis2.om.impl.llom.exception.XMLComparisonException;
+
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamException;
+import java.io.*;
+
+public class MessageComparator {
+    public boolean compare(String testNumber, InputStream replyMessage) {
+        SOAPEnvelope replyMessageEnvelope;
+        SOAPEnvelope requiredMessageEnvelope;
+        try {
+            File file = new File("test-resources\\SOAP12Testing\\ReplyMessages\\SOAP12ResT" + testNumber + ".xml");
+            XMLStreamReader requiredMessageParser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(file));
+            OMXMLParserWrapper requiredMessageBuilder = new StAXSOAPModelBuilder(requiredMessageParser);
+            requiredMessageEnvelope = (SOAPEnvelope) requiredMessageBuilder.getDocumentElement();
+
+            XMLStreamReader replyMessageParser = XMLInputFactory.newInstance().createXMLStreamReader(replyMessage);
+            OMXMLParserWrapper replyMessageBuilder = new StAXSOAPModelBuilder(replyMessageParser);
+            replyMessageEnvelope = (SOAPEnvelope) replyMessageBuilder.getDocumentElement();
+
+            SOAPComparator soapComparator = new SOAPComparator();
+            return soapComparator.compare(requiredMessageEnvelope,replyMessageEnvelope);
+
+        } catch (XMLStreamException e) {
+            e.printStackTrace();
+        } catch (FileNotFoundException e) {
+            e.printStackTrace();
+        } catch (XMLComparisonException e) {
+            e.printStackTrace();
+        }
+        return false;
+    }
+}

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/SOAP12TestClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/SOAP12TestClient.java?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/SOAP12TestClient.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/SOAP12TestClient.java Thu Jul 14 00:57:23 2005
@@ -0,0 +1,79 @@
+/*
+* Copyright 2001-2004 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.axis2.soap12testing.client;
+
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.net.*;
+import java.io.*;
+import java.util.Iterator;
+
+public class SOAP12TestClient {            
+    public String getReply(int port, String webserviceName,String testNumber) {
+        String replyMessage = "";
+        try {
+            URL netUrl = new URL("http://localhost:"+port+"/axis2/services/"+webserviceName+"/echo");
+            HttpURLConnection connection = (HttpURLConnection) netUrl.openConnection();
+            connection.setDoOutput(true);
+
+            SOAPCreater soapCreater = new SOAPCreater();
+            String requestMessage = soapCreater.getStringFromSOAPMessage(testNumber);
+            PrintWriter out = new PrintWriter(
+                              connection.getOutputStream());
+
+            out.println(requestMessage);
+	        out.close();
+
+            BufferedReader reader = new BufferedReader( new InputStreamReader(connection.getInputStream()));
+            StringBuffer sb = new StringBuffer();
+            String response = reader.readLine();
+            while( null != response ) {
+                sb.append(response.trim());
+                response = reader.readLine();
+            }
+            replyMessage = sb.toString();
+            connection.disconnect();
+
+        } catch (MalformedURLException e) {
+            e.printStackTrace();
+        } catch (IOException e) {
+            e.printStackTrace();
+        }
+        return replyMessage;
+    }
+
+    public InputStream getRelpy(int port,String webserviceName,String testNumber) {
+        try {
+            URL netUrl = new URL("http://localhost:"+port+"/axis2/services/"+webserviceName+"/echo");
+            HttpURLConnection connection = (HttpURLConnection) netUrl.openConnection();
+            connection.setDoOutput(true);
+
+            SOAPCreater soapCreater = new SOAPCreater();
+            String requestMessage = soapCreater.getStringFromSOAPMessage(testNumber);
+            PrintWriter out = new PrintWriter(connection.getOutputStream());
+            out.println(requestMessage);
+	        out.close();
+            return connection.getInputStream();
+        } catch (MalformedURLException e) {
+            e.printStackTrace();
+        } catch (IOException e) {
+            e.printStackTrace();
+        }
+        return null;
+    }
+
+}
\ No newline at end of file

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/SOAPComparator.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/SOAPComparator.java?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/SOAPComparator.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/SOAPComparator.java Thu Jul 14 00:57:23 2005
@@ -0,0 +1,68 @@
+/*
+* Copyright 2001-2004 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.
+*/
+
+/*Speacial Notice : -
+  This SOAPComparator was implementd for only SOAP 1.2 Tests. Chekings are concerend on specific
+  tests in SOAP 1.2 Testing. Therefore this can not be used for comman soap comparisons.
+*/
+
+package org.apache.axis2.soap12testing.client;
+
+import org.apache.axis2.om.impl.llom.exception.XMLComparisonException;
+import org.apache.axis2.om.impl.llom.util.XMLComparator;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFault;
+
+public class SOAPComparator extends XMLComparator {
+
+    public boolean compare(SOAPEnvelope expectedEnvelope, SOAPEnvelope ReplyEnvelope) throws XMLComparisonException {
+
+        if (expectedEnvelope.getNamespace().getName().equals(ReplyEnvelope.getNamespace().getName())) {
+            //a!=null && b==null
+            if ((expectedEnvelope.getHeader() != null && ReplyEnvelope.getHeader() != null) ||
+                    (expectedEnvelope.getHeader() == null && ReplyEnvelope.getHeader() == null)) {
+
+                if (expectedEnvelope.getHeader() != null)
+                    super.compare(ReplyEnvelope.getHeader(), expectedEnvelope.getHeader());
+
+                if (expectedEnvelope.getBody().hasFault()) {
+                    SOAPFault replyFault = ReplyEnvelope.getBody().getFault();
+                    SOAPFault expectedFault = expectedEnvelope.getBody().getFault();
+
+                    super.compare(replyFault.getCode(), expectedFault.getCode());
+                    super.compare(replyFault.getReason(), expectedFault.getReason());
+
+                    if (expectedFault.getRole() != null) {
+                        super.compare(replyFault.getRole(), expectedFault.getRole());
+                    }
+                    if (expectedFault.getNode() != null) {
+                        super.compare(replyFault.getNode(), expectedFault.getNode());
+                    }
+                    if (expectedFault.getDetail() != null) {
+                        super.compare(replyFault.getDetail(), expectedFault.getDetail());
+                    }
+                } else {
+                    super.compare(ReplyEnvelope.getBody(), expectedEnvelope.getBody());
+                }
+            } else {
+                throw new XMLComparisonException("Envelope headers mismatched...!");
+            }
+        } else {
+            throw new XMLComparisonException("Envelope namespaces mismatched...!");
+        }
+        return true;
+    }
+}

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/SOAPCreater.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/SOAPCreater.java?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/SOAPCreater.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/client/SOAPCreater.java Thu Jul 14 00:57:23 2005
@@ -0,0 +1,56 @@
+/*
+* Copyright 2001-2004 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.axis2.soap12testing.client;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder;
+import org.apache.axis2.om.OMXMLParserWrapper;
+
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLInputFactory;
+import java.io.*;
+
+public class SOAPCreater {
+    public String getStringFromSOAPMessage(String testNumber) {
+        File file = new File("test-resources\\SOAP12Testing\\RequestMessages\\SOAP12ReqT" + testNumber + ".xml");
+        try {
+            FileInputStream stream = new FileInputStream(file);
+            BufferedInputStream bf = new BufferedInputStream(stream);
+            DataInputStream ds = new DataInputStream(bf);
+            StringBuffer sb = new StringBuffer();
+            String record;
+            while ((record = ds.readLine()) != null) {
+                sb.append(record.trim());
+            }
+            return sb.toString();
+        } catch (Exception e) {
+            return "";
+        }
+    }
+
+    public SOAPEnvelope getEnvelopeFromSOAPMessage(String pathAndFileName) {
+        File file = new File(pathAndFileName);
+        try {
+            XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(file));
+            OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser);
+            return (SOAPEnvelope) builder.getDocumentElement();            
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return null;
+    }
+}

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/HeaderConstants.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/HeaderConstants.java?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/HeaderConstants.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/HeaderConstants.java Thu Jul 14 00:57:23 2005
@@ -0,0 +1,31 @@
+/*
+* Copyright 2001-2004 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.axis2.soap12testing.handlers;
+
+public interface HeaderConstants {
+
+    public final String REQUEST_HEADERBLOCK_NAME = "echoOk";
+    public final String RESPONSE_HEADERBLOCK_NAME = "responseOk";
+    public final String SAMPLE_ROLE = "http://example.org/ts-tests";
+    public final String SOAP12_ROLE = "http://www.w3.org/2003/05/soap-envelope/role";
+    public final String ULTIMATERECEIVER_ROLE = "ultimateReceiver";
+    public final String NEXT_ROLE = "next";
+    public final String NONE_ROLE = "none";
+    public final String ROLE_BY_B = "B";
+    public final String ROLE_BY_C = "C";
+
+}

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12InFlowHandlerDefault.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12InFlowHandlerDefault.java?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12InFlowHandlerDefault.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12InFlowHandlerDefault.java Thu Jul 14 00:57:23 2005
@@ -0,0 +1,159 @@
+/*
+* Copyright 2001-2004 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.axis2.soap12testing.handlers;
+
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.soap.*;
+import org.apache.axis2.soap.impl.llom.SOAPProcessingException;
+import org.apache.axis2.soap.impl.llom.soap12.SOAP12Constants;
+import org.apache.axis2.om.OMAttribute;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.handlers.AbstractHandler;
+import org.apache.axis2.engine.AxisFault;
+
+
+import java.util.Iterator;
+
+
+public class SOAP12InFlowHandlerDefault extends AbstractHandler implements HeaderConstants {
+    private OMNamespace attributeNS;
+    private boolean attributePresent = false;
+    Integer headerBlockPresent = new Integer(0);
+
+
+    public void revoke(MessageContext msgContext) {
+
+    }
+
+    public void invoke(MessageContext msgContext) throws AxisFault {
+        SOAPEnvelope envelope = msgContext.getEnvelope();
+        SOAPHeader header = envelope.getHeader();
+        if (header != null) {
+            SOAPHeaderBlock headerBlock = (SOAPHeaderBlock) envelope.getHeader().getFirstElement();
+
+            Iterator attributes = headerBlock.getAttributes();
+
+            if (attributes.hasNext()) {
+                OMAttribute firstAttribute = (OMAttribute) attributes.next();
+                attributeNS = firstAttribute.getNamespace();
+                attributePresent = true;
+            }
+
+            String roleValue = headerBlock.getRole();
+            boolean mustUnderstand = headerBlock.getMustUnderstand();
+            String elementName = headerBlock.getLocalName();
+            OMNamespace headerBlockNamespace = headerBlock.getNamespace();
+
+            if (elementName.equals(REQUEST_HEADERBLOCK_NAME)) {
+                if (roleValue == null || roleValue.equals(SAMPLE_ROLE + "/" + ROLE_BY_C) || roleValue.equals(SOAP12_ROLE + "/" + ULTIMATERECEIVER_ROLE) ||
+                        roleValue.equals(SOAP12_ROLE + "/" + NEXT_ROLE)) {
+                    headerBlock.setLocalName(RESPONSE_HEADERBLOCK_NAME);
+                    if (attributePresent) {
+                        headerBlock.removeAttribute((OMAttribute) headerBlock.getAttributes().next());
+                        attributePresent = false;
+                    }
+                    headerBlockPresent = new Integer(1);
+                    msgContext.getOperationContext().setProperty("HEADER_BLOCK_PRESENT", headerBlockPresent, true);
+                    msgContext.getOperationContext().setProperty("HEADER_BLOCK", headerBlock, true);
+                } else if (roleValue.equals(SOAP12_ROLE + "/" + NONE_ROLE)) {
+                    if (mustUnderstand) {
+                        headerBlockPresent = new Integer(0);
+                        msgContext.getOperationContext().setProperty("HEADER_BLOCK_PRESENT", headerBlockPresent, true);
+                    }
+                } else if (roleValue.equals(SAMPLE_ROLE + "/" + ROLE_BY_B)) {
+                    if (!mustUnderstand) {
+                        headerBlockPresent = new Integer(0);
+                        msgContext.getOperationContext().setProperty("HEADER_BLOCK_PRESENT", headerBlockPresent, true);
+                    }
+                } else {
+                    headerBlockPresent = new Integer(0);
+                    msgContext.getOperationContext().setProperty("HEADER_BLOCK_PRESENT", headerBlockPresent, true);
+                }
+            } else {
+                if (roleValue == null || roleValue.equals(SAMPLE_ROLE + "/" + ROLE_BY_B) || roleValue.equals(SAMPLE_ROLE + "/" + ROLE_BY_C) ||
+                        roleValue.equals(SOAP12_ROLE + "/" + ULTIMATERECEIVER_ROLE) || roleValue.equals(SOAP12_ROLE + "/" + NEXT_ROLE)) {
+                    if (mustUnderstand) {
+                        SOAPFactory factory = OMAbstractFactory.getSOAP12Factory();
+                        SOAPBody body = factory.createSOAPBody(envelope);
+                        if (attributePresent && attributeNS.getName() == "http://schemas.xmlsoap.org/soap/envelope/") {
+                            headerBlockPresent = new Integer(0);
+                            msgContext.getOperationContext().setProperty("HEADER_BLOCK_PRESENT", headerBlockPresent, true);
+
+                        } else {
+
+                            try {
+                                SOAPFault fault = factory.createSOAPFault(body);
+                                SOAPFaultCode code = factory.createSOAPFaultCode(fault);
+                                SOAPFaultValue value = factory.createSOAPFaultValue(code);
+                                value.setText("env:MustUnderstand");
+                                SOAPFaultReason reason = factory.createSOAPFaultReason(fault);
+                                SOAPFaultText text = factory.createSOAPFaultText(reason);
+                                text.setLang("en-US");
+                                text.setText("Header not understood");
+                                reason.setSOAPText(text);
+                                fault.setReason(reason);
+                                if (roleValue.equals(SAMPLE_ROLE + "/" + ROLE_BY_B)) {
+                                    SOAPFaultNode node = factory.createSOAPFaultNode(fault);
+                                    node.setNodeValue(SAMPLE_ROLE + "/" + ROLE_BY_B);
+                                    SOAPFaultRole role = factory.createSOAPFaultRole(fault);
+                                    role.setRoleValue(SAMPLE_ROLE + "/" + ROLE_BY_B);
+                                    msgContext.setProperty(SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME, node, true);
+                                    msgContext.setProperty(SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME, role, true);
+
+                                }
+                                msgContext.setProperty(SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME, code, true);
+                                msgContext.setProperty(SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME, reason, true);
+
+                                throw new AxisFault("Intentional Failure from SOAP 1.2 testing ...");
+
+                            } catch (SOAPProcessingException e) {
+                                e.printStackTrace();
+                            }
+
+                            headerBlock.discard();
+                            SOAPHeaderBlock newHeaderBlock = null;
+                            try {
+                                newHeaderBlock = envelope.getHeader().addHeaderBlock("NotUnderstood", envelope.getNamespace());
+                                newHeaderBlock.declareNamespace(headerBlockNamespace);
+                                newHeaderBlock.addAttribute("qname", headerBlockNamespace.getName() + ":" + elementName, null);
+                            } catch (SOAPProcessingException e) {
+                                e.printStackTrace();
+                            }
+                            headerBlockPresent = new Integer(1);
+                            msgContext.getOperationContext().setProperty("HEADER_BLOCK_PRESENT", headerBlockPresent, true);
+                            msgContext.getOperationContext().setProperty("HEADER_BLOCK", newHeaderBlock, true);
+                        }
+                    } else {
+
+                        headerBlockPresent = new Integer(0);
+                        msgContext.getOperationContext().setProperty("HEADER_BLOCK_PRESENT", headerBlockPresent, true);
+
+                    }
+
+                } else if (roleValue.equals(SOAP12_ROLE + "/" + NONE_ROLE)) {
+                    if (mustUnderstand) {
+
+                        headerBlockPresent = new Integer(0);
+                        msgContext.getOperationContext().setProperty("HEADER_BLOCK_PRESENT", headerBlockPresent, true);
+
+                    }
+                }
+            }
+        }
+    }
+}

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12InFlowHandlerDefaultB.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12InFlowHandlerDefaultB.java?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12InFlowHandlerDefaultB.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12InFlowHandlerDefaultB.java Thu Jul 14 00:57:23 2005
@@ -0,0 +1,150 @@
+/*
+* Copyright 2001-2004 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.axis2.soap12testing.handlers;
+
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.soap.*;
+import org.apache.axis2.soap.impl.llom.SOAPProcessingException;
+import org.apache.axis2.soap.impl.llom.soap12.SOAP12Constants;
+import org.apache.axis2.om.OMAttribute;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.handlers.AbstractHandler;
+import org.apache.axis2.engine.AxisFault;
+
+
+import java.util.Iterator;
+
+public class SOAP12InFlowHandlerDefaultB extends AbstractHandler implements HeaderConstants {
+    private OMNamespace attributeNS;
+    private boolean attributePresent = false;
+    Integer headerBlockPresent = new Integer(0);
+
+    SOAPHeaderBlock headerBlock;
+
+
+    public void revoke(MessageContext msgContext) {
+
+    }
+
+    public void invoke(MessageContext msgContext) throws AxisFault {
+        SOAPEnvelope envelope = msgContext.getEnvelope();
+        SOAPFactory factory = OMAbstractFactory.getSOAP12Factory();
+        SOAPHeader headerAdd = factory.createSOAPHeader(envelope);
+        if (envelope.getHeader() != null) {
+            Iterator headerBlocks = envelope.getHeader().examineAllHeaderBlocks();
+            while (headerBlocks.hasNext()) {
+                try {
+                    headerBlock = (SOAPHeaderBlock) headerBlocks.next();
+                } catch (ClassCastException e) {
+                    continue;
+                }
+                Iterator attributes = headerBlock.getAttributes();
+
+                if (attributes.hasNext()) {
+                    OMAttribute firstAttribute = (OMAttribute) attributes.next();
+                    attributeNS = firstAttribute.getNamespace();
+                    attributePresent = true;
+                }
+
+                String roleValue = headerBlock.getRole();
+                boolean mustUnderstand = headerBlock.getMustUnderstand();
+                String elementName = headerBlock.getLocalName();
+                OMNamespace headerBlockNamespace = headerBlock.getNamespace();
+
+                if (elementName.equals(REQUEST_HEADERBLOCK_NAME)) {
+                    if (roleValue == null || roleValue.equals(SAMPLE_ROLE + "/" + ROLE_BY_B) || roleValue.equals(SOAP12_ROLE + "/" + ULTIMATERECEIVER_ROLE) ||
+                            roleValue.equals(SOAP12_ROLE + "/" + NEXT_ROLE)) {
+                        headerBlock.setLocalName(RESPONSE_HEADERBLOCK_NAME);
+                        if (attributePresent)
+                            headerBlock.removeAttribute((OMAttribute) headerBlock.getAttributes().next());
+                        headerBlockPresent = new Integer(1);
+                        msgContext.getOperationContext().setProperty("HEADER_BLOCK_PRESENT", headerBlockPresent, true);
+                        headerAdd.addChild(headerBlock);
+                        msgContext.getOperationContext().setProperty("HEADER_BLOCK", headerAdd, true);
+
+                    }
+                } else {
+                    if (roleValue == null || roleValue.equals(SAMPLE_ROLE + "/" + ROLE_BY_B) || roleValue.equals(SAMPLE_ROLE + "/" + ROLE_BY_C) ||
+                            roleValue.equals(SOAP12_ROLE + "/" + ULTIMATERECEIVER_ROLE) || roleValue.equals(SOAP12_ROLE + "/" + NEXT_ROLE)) {
+                        if (mustUnderstand) {
+
+                            SOAPBody body = factory.getDefaultEnvelope().getBody();
+                            if (attributePresent && attributeNS.getName() == "http://schemas.xmlsoap.org/soap/envelope/") {
+
+                            } else {
+
+                                try {
+                                    SOAPFault fault = factory.createSOAPFault(body);
+                                    SOAPFaultCode code = factory.createSOAPFaultCode(fault);
+                                    SOAPFaultValue value = factory.createSOAPFaultValue(code);
+                                    value.setText("env:MustUnderstand");
+                                    SOAPFaultReason reason = factory.createSOAPFaultReason(fault);
+                                    SOAPFaultText text = factory.createSOAPFaultText(reason);
+                                    text.setLang("en-US");
+                                    text.setText("Header not understood");
+                                    reason.setSOAPText(text);
+                                    //fault.setReason(reason);
+                                    if (roleValue != null && roleValue.equals(SAMPLE_ROLE + "/" + ROLE_BY_B)) {
+                                        SOAPFaultNode node = factory.createSOAPFaultNode(fault);
+                                        node.setNodeValue(SAMPLE_ROLE + "/" + ROLE_BY_B);
+                                        SOAPFaultRole role = factory.createSOAPFaultRole(fault);
+                                        role.setRoleValue(SAMPLE_ROLE + "/" + ROLE_BY_B);
+                                        msgContext.setProperty(SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME, node);
+                                        msgContext.setProperty(SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME, role);
+                                    }
+
+                                    msgContext.setProperty(SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME, code);
+                                    msgContext.setProperty(SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME, reason);
+
+                                } catch (SOAPProcessingException e) {
+                                    e.printStackTrace();
+                                }
+
+                                headerBlock.discard();
+                                SOAPHeaderBlock newHeaderBlock = null;
+                                try {
+                                    newHeaderBlock = envelope.getHeader().addHeaderBlock("NotUnderstood", envelope.getNamespace());
+                                    newHeaderBlock.declareNamespace(headerBlockNamespace);
+                                    newHeaderBlock.addAttribute("qname", headerBlockNamespace.getName() + ":" + elementName, null);
+                                } catch (SOAPProcessingException e) {
+                                    e.printStackTrace();
+                                }
+                                headerBlockPresent = new Integer(1);
+                                msgContext.getOperationContext().setProperty("HEADER_BLOCK_PRESENT", headerBlockPresent, true);
+                                headerAdd.addChild(newHeaderBlock);
+                                msgContext.getOperationContext().setProperty("HEADER_BLOCK", headerAdd, true);
+
+                                throw new AxisFault("Intentional Failure from SOAP 1.2 testing ...");
+                            }
+                        } else {
+                            headerBlockPresent = new Integer(0);
+                        }
+
+                    }
+                }
+            }
+            if (headerBlockPresent.equals(new Integer(0))) {
+                msgContext.getOperationContext().setProperty("HEADER_BLOCK_PRESENT", headerBlockPresent, true);
+            }
+            headerBlockPresent = new Integer(0);
+        } else {
+            headerBlockPresent = new Integer(0);
+            msgContext.getOperationContext().setProperty("HEADER_BLOCK_PRESENT", headerBlockPresent, true);
+        }
+    }
+}

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12InFlowHandlerDefaultC.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12InFlowHandlerDefaultC.java?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12InFlowHandlerDefaultC.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12InFlowHandlerDefaultC.java Thu Jul 14 00:57:23 2005
@@ -0,0 +1,153 @@
+/*
+* Copyright 2001-2004 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.axis2.soap12testing.handlers;
+
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.soap.*;
+import org.apache.axis2.soap.impl.llom.SOAPProcessingException;
+import org.apache.axis2.soap.impl.llom.soap12.SOAP12Constants;
+import org.apache.axis2.om.OMAttribute;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.handlers.AbstractHandler;
+import org.apache.axis2.engine.AxisFault;
+
+
+import java.util.Iterator;
+
+public class SOAP12InFlowHandlerDefaultC extends AbstractHandler implements HeaderConstants {
+    private OMNamespace attributeNS;
+    private boolean attributePresent = false;
+    Integer headerBlockPresent = new Integer(0);
+    SOAPHeaderBlock headerBlock;
+
+
+    public void revoke(MessageContext msgContext) {
+
+    }
+
+    public void invoke(MessageContext msgContext) throws AxisFault {
+        SOAPEnvelope envelope = msgContext.getEnvelope();
+        if (envelope.getHeader() != null) {
+            Iterator headerBlocks = envelope.getHeader().examineAllHeaderBlocks();
+            SOAPFactory factory = OMAbstractFactory.getSOAP12Factory();
+            SOAPHeader headerAdd = factory.createSOAPHeader(envelope);
+
+            while (headerBlocks.hasNext()) {
+                try {
+                    headerBlock = (SOAPHeaderBlock) headerBlocks.next();
+                } catch (ClassCastException e) {
+                    continue;
+                }
+                Iterator attributes = headerBlock.getAttributes();
+
+                if (attributes.hasNext()) {
+                    OMAttribute firstAttribute = (OMAttribute) attributes.next();
+                    attributeNS = firstAttribute.getNamespace();
+                    attributePresent = true;
+                }
+
+                String roleValue = headerBlock.getRole();
+                boolean mustUnderstand = headerBlock.getMustUnderstand();
+                String elementName = headerBlock.getLocalName();
+                OMNamespace headerBlockNamespace = headerBlock.getNamespace();
+
+                if (elementName.equals(REQUEST_HEADERBLOCK_NAME)) {
+                    if (roleValue == null || roleValue.equals(SAMPLE_ROLE + "/" + ROLE_BY_C) || roleValue.equals(SOAP12_ROLE + "/" + ULTIMATERECEIVER_ROLE) ||
+                            roleValue.equals(SOAP12_ROLE + "/" + NEXT_ROLE)) {
+                        headerBlock.setLocalName(RESPONSE_HEADERBLOCK_NAME);
+                        if (attributePresent) {
+                            headerBlock.removeAttribute((OMAttribute) headerBlock.getAttributes().next());
+                            attributePresent = false;
+                        }
+                        headerBlockPresent = new Integer(1);
+                        msgContext.getOperationContext().setProperty("HEADER_BLOCK_PRESENT", headerBlockPresent, true);
+                        headerAdd.addChild(headerBlock);
+                        msgContext.getOperationContext().setProperty("HEADER_BLOCK", headerAdd, true);
+
+                    }
+                } else {
+                    if (roleValue == null || roleValue.equals(SAMPLE_ROLE + "/" + ROLE_BY_C) ||
+                            roleValue.equals(SOAP12_ROLE + "/" + ULTIMATERECEIVER_ROLE) || roleValue.equals(SOAP12_ROLE + "/" + NEXT_ROLE)) {
+
+                        if (mustUnderstand) {
+
+                            SOAPBody body = factory.getDefaultEnvelope().getBody();
+                            if (attributePresent && attributeNS.getName() == "http://schemas.xmlsoap.org/soap/envelope/") {
+
+                            } else {
+
+                                try {
+                                    SOAPFault fault = factory.createSOAPFault(body);
+                                    SOAPFaultCode code = factory.createSOAPFaultCode(fault);
+                                    SOAPFaultValue value = factory.createSOAPFaultValue(code);
+                                    value.setText("env:MustUnderstand");
+                                    SOAPFaultReason reason = factory.createSOAPFaultReason(fault);
+                                    SOAPFaultText text = factory.createSOAPFaultText(reason);
+                                    text.setLang("en-US");
+                                    text.setText("Header not understood");
+                                    reason.setSOAPText(text);
+                                    //fault.setReason(reason);
+                                    if (roleValue != null && roleValue.equals(SAMPLE_ROLE + "/" + ROLE_BY_B)) {
+                                        SOAPFaultNode node = factory.createSOAPFaultNode(fault);
+                                        node.setNodeValue(SAMPLE_ROLE + "/" + ROLE_BY_B);
+                                        SOAPFaultRole role = factory.createSOAPFaultRole(fault);
+                                        role.setRoleValue(SAMPLE_ROLE + "/" + ROLE_BY_B);
+                                        msgContext.setProperty(SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME, node, true);
+                                        msgContext.setProperty(SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME, role, true);
+                                    }
+
+                                    msgContext.setProperty(SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME, code);
+                                    msgContext.setProperty(SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME, reason);
+
+                                } catch (SOAPProcessingException e) {
+                                    e.printStackTrace();
+                                }
+
+
+                                headerBlock.discard();
+                                SOAPHeaderBlock newHeaderBlock = null;
+                                try {
+                                    newHeaderBlock = envelope.getHeader().addHeaderBlock("NotUnderstood", envelope.getNamespace());
+                                    newHeaderBlock.declareNamespace(headerBlockNamespace);
+                                    newHeaderBlock.addAttribute("qname", headerBlockNamespace.getName() + ":" + elementName, null);
+                                } catch (SOAPProcessingException e) {
+                                    e.printStackTrace();
+                                }
+                                headerBlockPresent = new Integer(1);
+                                msgContext.getOperationContext().setProperty("HEADER_BLOCK_PRESENT", headerBlockPresent, true);
+                                headerAdd.addChild(newHeaderBlock);
+                                msgContext.getOperationContext().setProperty("HEADER_BLOCK", headerAdd, true);
+                                throw new AxisFault("Intentional Failure from SOAP 1.2 testing ...");
+                            }
+                        }
+
+                    }
+                }
+            }
+            if (headerBlockPresent.equals(new Integer(0))) {
+                msgContext.getOperationContext().setProperty("HEADER_BLOCK_PRESENT", headerBlockPresent, true);
+            }
+
+            headerBlockPresent = new Integer(0);
+
+        } else {
+            headerBlockPresent = new Integer(0);
+            msgContext.getOperationContext().setProperty("HEADER_BLOCK_PRESENT", headerBlockPresent, true);
+        }
+    }
+}

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12OutFaultFlowHandlerDefault.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12OutFaultFlowHandlerDefault.java?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12OutFaultFlowHandlerDefault.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12OutFaultFlowHandlerDefault.java Thu Jul 14 00:57:23 2005
@@ -0,0 +1,46 @@
+/*
+* Copyright 2001-2004 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.axis2.soap12testing.handlers;
+
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.soap.SOAPHeaderBlock;
+import org.apache.axis2.soap.SOAPHeader;
+import org.apache.axis2.handlers.AbstractHandler;
+
+import java.util.Iterator;
+
+public class SOAP12OutFaultFlowHandlerDefault extends AbstractHandler {
+
+
+    public void revoke(MessageContext msgContext) {
+
+    }
+
+    public void invoke(MessageContext msgContext) {
+        Integer headerBlockPresent = (Integer) msgContext.getOperationContext().getProperty("HEADER_BLOCK_PRESENT", true);
+        if (headerBlockPresent.equals(new Integer(1))) {
+            SOAPHeader headerAdd = (SOAPHeader) msgContext.getOperationContext().getProperty("HEADER_BLOCK", true);
+           Iterator headerBlocks = headerAdd.examineAllHeaderBlocks();
+            while(headerBlocks.hasNext()){
+                SOAPHeaderBlock headerBlock=(SOAPHeaderBlock) headerBlocks.next();
+                msgContext.getEnvelope().getHeader().addChild(headerBlock);
+            }
+        } else {
+            msgContext.getEnvelope().getHeader().discard();
+        }
+    }
+}

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12OutFlowHandlerDefault.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12OutFlowHandlerDefault.java?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12OutFlowHandlerDefault.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/handlers/SOAP12OutFlowHandlerDefault.java Thu Jul 14 00:57:23 2005
@@ -0,0 +1,46 @@
+/*
+* Copyright 2001-2004 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.axis2.soap12testing.handlers;
+
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.soap.SOAPHeaderBlock;
+import org.apache.axis2.soap.SOAPHeader;
+import org.apache.axis2.handlers.AbstractHandler;
+
+import java.util.Iterator;
+
+public class SOAP12OutFlowHandlerDefault extends AbstractHandler {
+
+
+    public void revoke(MessageContext msgContext) {
+
+    }
+
+    public void invoke(MessageContext msgContext) {
+        Integer headerBlockPresent = (Integer) msgContext.getOperationContext().getProperty("HEADER_BLOCK_PRESENT", true);
+        if (headerBlockPresent.equals(new Integer(1))) {
+            SOAPHeader headerAdd = (SOAPHeader) msgContext.getOperationContext().getProperty("HEADER_BLOCK", true);
+           Iterator headerBlocks = headerAdd.examineAllHeaderBlocks();
+            while(headerBlocks.hasNext()){
+                SOAPHeaderBlock headerBlock=(SOAPHeaderBlock) headerBlocks.next();
+                msgContext.getEnvelope().getHeader().addChild(headerBlock);
+            }
+        } else {
+            msgContext.getEnvelope().getHeader().discard();
+        }
+    }
+}

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/server/SimpleServer.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/server/SimpleServer.java?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/server/SimpleServer.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/server/SimpleServer.java Thu Jul 14 00:57:23 2005
@@ -0,0 +1,48 @@
+/*
+* Copyright 2001-2004 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.axis2.soap12testing.server;
+
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.transport.http.SimpleHTTPServer;
+
+import java.io.File;
+import java.net.ServerSocket;
+
+public class SimpleServer {
+    private int port;
+
+    public SimpleServer() {
+        this.port = 8008;
+    }
+
+    public SimpleServer(int port) {
+        this.port = port;
+    }
+
+    public void start() {
+        try {
+            ServerSocket serverSoc = null;
+            serverSoc = new ServerSocket(port);
+            SimpleHTTPServer reciver = new SimpleHTTPServer("test\\org\\apache\\axis2\\soap12testing\\Repository", serverSoc);
+            Thread thread = new Thread(reciver);
+            thread.setDaemon(true);
+            thread.start();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+}

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/webservices/SOAP12TestWebServiceDefault.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/webservices/SOAP12TestWebServiceDefault.java?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/webservices/SOAP12TestWebServiceDefault.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/src/org/apache/axis2/soap12testing/webservices/SOAP12TestWebServiceDefault.java Thu Jul 14 00:57:23 2005
@@ -0,0 +1,33 @@
+/*
+* Copyright 2001-2004 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.axis2.soap12testing.webservices;
+
+import org.apache.axis2.om.OMElement;
+
+public class SOAP12TestWebServiceDefault {
+    public OMElement echo(OMElement element) {
+        if (element != null) {
+            if (element.getLocalName().equals("echoOk")) {
+                element.setLocalName("responseOk");
+
+            } else if (element.getLocalName().equals("returnVoid")) {
+                element.setLocalName("returnVoidResponse");
+            }
+        }
+        return element;
+    }
+}

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ReqT24.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ReqT24.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ReqT24.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ReqT24.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,8 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://wrong-version/"> 
+  <env:Body>
+    <test:echoOk xmlns:test="http://example.org/ts-tests">
+      foo
+    </test:echoOk>
+  </env:Body>
+</env:Envelope>

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT1.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT1.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT1.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT1.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,10 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> 
+ <env:Header>
+  <test:responseOk xmlns:test="http://example.org/ts-tests">
+    foo
+  </test:responseOk>
+ </env:Header>
+ <env:Body>
+ </env:Body>
+</env:Envelope>

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT10.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT10.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT10.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT10.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,5 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
+    <env:Body>
+    </env:Body>
+</env:Envelope>

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT11.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT11.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT11.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT11.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,5 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
+    <env:Body>
+    </env:Body>
+</env:Envelope>

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT12.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT12.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT12.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT12.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,17 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
+  <env:Header>
+    <env:NotUnderstood qname="test:Unknown"
+       xmlns:test="http://example.org/ts-tests" />
+  </env:Header>
+  <env:Body>
+    <env:Fault>
+      <env:Code>
+        <env:Value>env:MustUnderstand</env:Value>
+      </env:Code>
+      <env:Reason>
+        <env:Text xml:lang="en-US"> Header not understood </env:Text>
+      </env:Reason>
+    </env:Fault>
+  </env:Body>
+</env:Envelope>

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT13.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT13.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT13.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT13.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,19 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
+  <env:Header>
+    <env:NotUnderstood qname="test:Unknown"
+       xmlns:test="http://example.org/ts-tests" />
+  </env:Header>
+  <env:Body>
+    <env:Fault>
+      <env:Code>
+        <env:Value>env:MustUnderstand</env:Value>
+      </env:Code>
+      <env:Reason>
+        <env:Text xml:lang="en-US">
+          Header not understood
+        </env:Text>
+      </env:Reason>
+    </env:Fault>
+  </env:Body>
+</env:Envelope>

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT14.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT14.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT14.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT14.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,15 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
+  <env:Body>
+    <env:Fault>
+      <env:Code>
+        <env:Value>env:Sender</env:Value>
+       </env:Code>
+       <env:Reason>
+        <env:Text xml:lang="en-US">
+          env:mustUnderstand value is not boolean
+        </env:Text>
+       </env:Reason>
+     </env:Fault>
+  </env:Body>
+</env:Envelope>

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT15.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT15.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT15.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT15.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,5 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">    
+    <env:Body>
+    </env:Body>
+</env:Envelope>

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT16.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT16.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT16.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT16.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,17 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
+  <env:Header>
+    <env:NotUnderstood qname="test:Unknown"
+       xmlns:test="http://example.org/ts-tests" />
+  </env:Header>
+  <env:Body>
+    <env:Fault>
+      <env:Code>
+        <env:Value>env:MustUnderstand</env:Value>
+      </env:Code>
+      <env:Reason>
+        <env:Text xml:lang="en-US"> Header not understood </env:Text>
+      </env:Reason>
+    </env:Fault>
+  </env:Body>
+</env:Envelope>

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT17_B.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT17_B.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT17_B.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT17_B.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,17 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
+  <env:Header>
+    <env:NotUnderstood qname="test:Unknown"
+       xmlns:test="http://example.org/ts-tests"/>
+  </env:Header>
+  <env:Body>
+    <env:Fault>
+      <env:Code>
+        <env:Value>env:MustUnderstand</env:Value>
+      </env:Code>
+      <env:Reason>
+        <env:Text xml:lang="en-US"> Header not understood </env:Text>
+      </env:Reason>
+    </env:Fault>
+  </env:Body>
+</env:Envelope>
\ No newline at end of file

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT18_C.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT18_C.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT18_C.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT18_C.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,7 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
+    <env:Header>
+    </env:Header>
+  <env:Body>
+  </env:Body>
+</env:Envelope>

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT19.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT19.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT19.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT19.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,5 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
+  <env:Body>
+  </env:Body>
+</env:Envelope>

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT2.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT2.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT2.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT2.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,10 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
+ <env:Header>
+  <test:responseOk xmlns:test="http://example.org/ts-tests">
+    foo
+  </test:responseOk>
+ </env:Header>
+ <env:Body>
+ </env:Body>
+</env:Envelope>

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT21_B.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT21_B.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT21_B.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/ReplyMessages/SOAP12ResT21_B.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,19 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
+  <env:Header>
+    <env:NotUnderstood qname="test:Unknown" 
+       xmlns:test="http://example.org/ts-tests" />
+  </env:Header>
+  <env:Body>
+    <env:Fault>
+      <env:Code>
+        <env:Value>env:MustUnderstand</env:Value>
+      </env:Code>
+      <env:Reason>
+        <env:Text xml:lang="en-US"> Header not understood </env:Text>
+      </env:Reason>
+      <env:Node>http://example.org/ts-tests/B</env:Node>
+      <env:Role>http://example.org/ts-tests/B</env:Role>
+    </env:Fault>
+  </env:Body>
+</env:Envelope>
\ No newline at end of file