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

svn commit: r219007 [3/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...

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

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT75.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT75.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT75.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT75.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,14 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
+ <env:Header>
+  <test:echoResolvedRef xmlns:test="http://example.org/ts-tests"
+        env:role="http://www.w3.org/2003/05/soap-envelope/role/next"
+        env:mustUnderstand="1">
+    <test:RelativeReference xml:base="http://example.org/today/"
+          xlink:href="new.xml"
+          xmlns:xlink="http://www.w3.org/1999/xlink" />
+  </test:echoResolvedRef>
+ </env:Header>
+ <env:Body>
+ </env:Body>
+</env:Envelope>

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

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT7_A.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT7_A.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT7_A.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT7_A.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,11 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> 
+  <env:Header>
+    <test:Ignore xmlns:test="http://example.org/ts-tests"
+          env:role="http://example.org/ts-tests/B">
+      foo
+    </test:echoOk>
+  </env:Header>
+  <env:Body>
+  </env:Body>
+</env:Envelope>
\ No newline at end of file

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT7_B.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT7_B.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT7_B.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT7_B.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>
\ No newline at end of file

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT8_A.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT8_A.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT8_A.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT8_A.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,18 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> 
+  <env:Header>
+    <test:echoOk xmlns:test="http://example.org/ts-tests">
+      foo
+    </test:echoOk>
+    <test:Ignore xmlns:test="http://example.org/ts-tests" 
+          env:role="http://example.org/ts-tests/B">
+      foo
+    </test:echoOk>
+    <test:echoOk xmlns:test="http://example.org/ts-tests"
+          env:role="http://www.w3.org/2003/05/soap-envelope/role/none">
+      foo
+    </test:echoOk>
+  </env:Header>
+  <env:Body>
+  </env:Body>
+</env:Envelope>
\ No newline at end of file

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

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT9_A.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT9_A.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT9_A.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT9_A.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,11 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> 
+  <env:Header>
+    <test:echoOk xmlns:test="http://example.org/ts-tests"
+          env:role="http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver">
+      foo
+    </test:echoOk>
+  </env:Header>
+  <env:Body>
+  </env:Body>
+</env:Envelope>
\ No newline at end of file

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT9_B.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT9_B.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT9_B.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test-resources/SOAP12Testing/RequestMessages/SOAP12ReqT9_B.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,11 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> 
+  <env:Header>
+    <test:echoOk xmlns:test="http://example.org/ts-tests"
+          env:role="http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver">
+      foo
+    </test:echoOk>
+  </env:Header>
+  <env:Body>
+  </env:Body>
+</env:Envelope>
\ No newline at end of file

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/axis2.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/axis2.xml?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/axis2.xml (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/axis2.xml Thu Jul 14 00:57:23 2005
@@ -0,0 +1,92 @@
+<axisconfig name="AxisJava2.0">
+   <!-- ================================================= -->
+   <!-- Parameters -->
+   <!-- ================================================= -->
+    <parameter name="hotdeployment" locked="xsd:false">true</parameter>
+    <parameter name="hotupdate" locked="xsd:false">false</parameter>
+    <!-- Uncomment this to enable REST support -->
+<!--    <parameter name="enableREST" locked="xsd:false">true</parameter>-->
+
+
+
+    <parameter name="userName" locked="xsd:false">admin</parameter>
+    <parameter name="password" locked="xsd:false">axis2</parameter>
+
+
+
+   <!-- ================================================= -->
+   <!-- Message Receivers -->
+   <!-- ================================================= -->
+    <!-- This is the Deafult Message Receiver for the Request Response style Operations -->
+    <messageReceiver mep="INOUT" class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+
+   <!-- ================================================= -->
+   <!-- Transport Ins -->
+   <!-- ================================================= -->
+    <transportReceiver name="http" class="org.apache.axis2.transport.http.SimpleHTTPServer">
+        <parameter name="port" locked="xsd:false">6060</parameter>
+    </transportReceiver>
+
+  <!-- Uncomment this one with the appropriate papameters to enable the SMTP transport Receiver
+  <transportReceiver name="mail" class="org.apache.axis2.transport.mail.SimpleMailListener">
+        <parameter name="transport.mail.pop3.host" locked="xsd:false">127.0.0.1</parameter>
+        <parameter name="transport.mail.pop3.user" locked="xsd:false">axis2</parameter>
+        <parameter name="transport.mail.pop3.password" locked="xsd:false">axis2</parameter>
+        <parameter name="transport.mail.pop3.port" locked="xsd:false">110</parameter>
+        <parameter name="transport.mail.replyToAddress" locked="xsd:false">axis2@127.0.0.1</parameter>
+    </transportReceiver> -->
+
+    <transportReceiver name="tcp" class="org.apache.axis2.transport.tcp.TCPServer">
+        <parameter name="port" locked="xsd:false">6060</parameter>
+    </transportReceiver>
+
+   <!-- ================================================= -->
+   <!-- Transport Outs -->
+   <!-- ================================================= -->
+
+    <transportSender name="http" class="org.apache.axis2.transport.http.HTTPTransportSender"/>
+    <transportSender name="tcp" class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
+    <transportSender name="local" class="org.apache.axis2.transport.local.LocalTransportSender"/>
+
+     <!-- Uncomment this one with the appropriate papameters to enable the SMTP transport Receiver
+    <transportSender name="mail" class="org.apache.axis2.transport.mail.MailTransportSender">
+        <parameter name="transport.mail.smtp.host" locked="xsd:false">127.0.0.1</parameter>
+        <parameter name="transport.mail.smtp.user" locked="xsd:false">axis2</parameter>
+        <parameter name="transport.mail.smtp.password" locked="xsd:false">axis2</parameter>
+        <parameter name="transport.mail.smtp.port" locked="xsd:false">25</parameter>
+    </transportSender>
+    -->
+
+   <!-- ================================================= -->
+   <!-- Global Modules  -->
+   <!-- ================================================= -->
+    <!-- Uncomment this to enable Addressing
+    <module ref="addressing"/> -->
+
+   <!-- ================================================= -->
+   <!-- Phases  -->
+   <!-- ================================================= -->
+    <phaseOrder type="inflow">
+        <!--  System pre defined phases       -->
+        <phase name="TransportIn"/>
+        <phase name="PreDispatch"/>
+        <phase name="Dispatch"/>
+        <phase name="PostDispatch"/>
+        <!--  System pre defined phases       -->
+        <!--   After Postdispatch phase module author or or service author can add any phase he want      -->
+        <phase name="userphase1"/>
+    </phaseOrder>
+    <phaseOrder type="outflow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="userphase1"/>
+    </phaseOrder>
+    <phaseOrder type="INfaultflow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="userphase1"/>
+    </phaseOrder>
+    <phaseOrder type="Outfaultflow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="userphase1"/>
+    </phaseOrder>
+</axisconfig>
+

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/modules/SOAP12TestModuleB.mar
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/modules/SOAP12TestModuleB.mar?rev=219007&view=auto
==============================================================================
Binary file - no diff available.

Propchange: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/modules/SOAP12TestModuleB.mar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/modules/SOAP12TestModuleC.mar
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/modules/SOAP12TestModuleC.mar?rev=219007&view=auto
==============================================================================
Binary file - no diff available.

Propchange: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/modules/SOAP12TestModuleC.mar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/services/SOAP12TestServiceB.aar
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/services/SOAP12TestServiceB.aar?rev=219007&view=auto
==============================================================================
Binary file - no diff available.

Propchange: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/services/SOAP12TestServiceB.aar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/services/SOAP12TestServiceC.aar
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/services/SOAP12TestServiceC.aar?rev=219007&view=auto
==============================================================================
Binary file - no diff available.

Propchange: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/Repository/services/SOAP12TestServiceC.aar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/soap12testsuite/SOAP12Test.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/soap12testsuite/SOAP12Test.java?rev=219007&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/soap12testsuite/SOAP12Test.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/soap12testsuite/SOAP12Test.java Thu Jul 14 00:57:23 2005
@@ -0,0 +1,147 @@
+/*
+* 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.soap12testsuite;
+
+import junit.framework.TestCase;
+import org.apache.axis2.soap12testing.server.SimpleServer;
+import org.apache.axis2.soap12testing.client.SOAP12TestClient;
+import org.apache.axis2.soap12testing.client.MessageComparator;
+
+import java.io.InputStream;
+
+public class SOAP12Test extends TestCase {
+    private SimpleServer server;
+    private MessageComparator comparator;
+    private SOAP12TestClient client;
+
+    public SOAP12Test() {
+        server = new SimpleServer();
+        server.start();
+        comparator = new MessageComparator();
+        client = new SOAP12TestClient();
+    }
+
+    protected void setUp() {
+
+    }
+
+    public void testWithoutFaults() {
+        //System.out.println(client.getReply("SOAP12TestServiceC", "12"));
+        assertTrue("SOAP 1.2 Test : - Test No. 1  Failed", comparator.compare("1", client.getRelpy(8008,"SOAP12TestServiceC", "1")));
+        assertTrue("SOAP 1.2 Test : - Test No. 2  Failed", comparator.compare("2", client.getRelpy(8008,"SOAP12TestServiceC", "2")));
+        assertTrue("SOAP 1.2 Test : - Test No. 3  Failed", comparator.compare("3", client.getRelpy(8008,"SOAP12TestServiceC", "3")));
+        assertTrue("SOAP 1.2 Test : - Test No. 4  Failed", comparator.compare("4", client.getRelpy(8008,"SOAP12TestServiceC", "4")));
+        assertTrue("SOAP 1.2 Test : - Test No. 5  Failed", comparator.compare("5", client.getRelpy(8008,"SOAP12TestServiceC", "5")));
+
+        //Test No. 6 to 9 : - There are intermediaries
+
+        assertTrue("SOAP 1.2 Test : - Test No. 10  Failed", comparator.compare("10", client.getRelpy(8008,"SOAP12TestServiceC", "10")));
+        assertTrue("SOAP 1.2 Test : - Test No. 11  Failed", comparator.compare("11", client.getRelpy(8008,"SOAP12TestServiceC", "11")));
+
+        //Test No. 12 - 14 : - Reply message has fault
+        //assertTrue("SOAP 1.2 Test : - Test No. 12  Failed", comparator.compare("12", client.getRelpy(8008,"SOAP12TestServiceC", "12")));
+        //assertTrue("SOAP 1.2 Test : - Test No. 13  Failed", comparator.compare("13", client.getRelpy(8008,"SOAP12TestServiceC", "13")));
+        //assertTrue("SOAP 1.2 Test : - Test No. 14  Failed", comparator.compare("14", client.getRelpy("SOAP12TestService", "14")));
+
+        assertTrue("SOAP 1.2 Test : - Test No. 15  Failed", comparator.compare("15", client.getRelpy(8008,"SOAP12TestServiceC", "15")));
+
+        //Reply message has fault
+        //assertTrue("SOAP 1.2 Test : - Test No. 16  Failed", comparator.compare("16", client.getRelpy("SOAP12TestServiceC", "16")));
+
+        //Request sends to B and reply has a fault
+        //assertTrue("SOAP 1.2 Test : - Test No. 17  Failed", comparator.compare("17", client.getRelpy("SOAP12TestServiceC", "17")));
+        //There are intermediaries
+        //assertTrue("SOAP 1.2 Test : - Test No. 18  Failed", comparator.compare("18", client.getRelpy("SOAP12TestServiceC", "18")));
+
+        assertTrue("SOAP 1.2 Test : - Test No. 19  Failed", comparator.compare("19", client.getRelpy(8008,"SOAP12TestServiceC", "19")));
+
+
+        //Test No. 20 missing
+
+        //Request sends to B and reply has a fault
+        //assertTrue("SOAP 1.2 Test : - Test No. 21  Failed", comparator.compare("21", client.getRelpy("SOAP12TestServiceC", "21")));
+
+        assertTrue("SOAP 1.2 Test : - Test No. 22  Failed", comparator.compare("22", client.getRelpy(8008,"SOAP12TestServiceC", "22")));
+
+        //mustUnderstand value is "wrong" and reply has a fault
+        //assertTrue("SOAP 1.2 Test : - Test No. 23  Failed", comparator.compare("23", client.getRelpy("SOAP12TestServiceC", "23")));
+
+        //soap envelope namespace uri incorrect  and reply has a fault
+        //assertTrue("SOAP 1.2 Test : - Test No. 24  Failed", comparator.compare("24", client.getRelpy("SOAP12TestServiceC", "24")));
+
+        //Has DTD  and reply has a fault
+        //assertTrue("SOAP 1.2 Test : - Test No. 25  Failed", comparator.compare("25", client.getRelpy("SOAP12TestServiceC", "25")));
+
+        //Has style sheet and reply has a fault
+        //assertTrue("SOAP 1.2 Test : - Test No. 26  Failed", comparator.compare("26", client.getRelpy("SOAP12TestServiceC", "26")));
+
+        assertTrue("SOAP 1.2 Test : - Test No. 29  Failed", comparator.compare("29", client.getRelpy(8008,"SOAP12TestServiceC", "29")));
+
+        //Test 30 is not here, because Axis 2 is supported both SOAP 1.1 and SOAP 1.2
+
+        assertTrue("SOAP 1.2 Test : - Test No. 31  Failed", comparator.compare("31", client.getRelpy(8008,"SOAP12TestServiceC", "31")));
+
+        //In Test No. 32, headerblock value should be inserted to body
+        //assertTrue("SOAP 1.2 Test : - Test No. 32  Failed", comparator.compare("32", client.getRelpy("SOAP12TestServiceC", "32")));
+
+        //Test No. 33, body element has an error
+        //assertTrue("SOAP 1.2 Test : - Test No. 33  Failed", comparator.compare("33", client.getRelpy("SOAP12TestServiceC", "33")));
+
+        assertTrue("SOAP 1.2 Test : - Test No. 34  Failed", comparator.compare("34", client.getRelpy(8008,"SOAP12TestServiceC", "34")));
+
+        //Test No. 35 - 36 : - Reply message has fault
+        //assertTrue("SOAP 1.2 Test : - Test No. 35  Failed", comparator.compare("35", client.getRelpy("SOAP12TestServiceC", "35")));
+        //assertTrue("SOAP 1.2 Test : - Test No. 36  Failed", comparator.compare("36", client.getRelpy("SOAP12TestServiceC", "36")));
+
+        assertTrue("SOAP 1.2 Test : - Test No. 37  Failed", comparator.compare("37", client.getRelpy(8008,"SOAP12TestServiceC", "37")));
+
+        //Test No. 38 has intermediaries
+
+        //Test No. 39, mustUnderstand value is "9"
+        //assertTrue("SOAP 1.2 Test : - Test No. 39  Failed", comparator.compare("39", client.getRelpy("SOAP12TestServiceC", "39")));
+
+        assertTrue("SOAP 1.2 Test : - Test No. 40  Failed", comparator.compare("40", client.getRelpy(8008,"SOAP12TestServiceC", "40")));
+
+        //Test No. 62 has intermediaries
+
+        //Test No. 63, headerblock name is validateCountryCode
+
+        //Test No. 64 has <!NOTATION ...>
+
+        //Test No. 65 has <!ELEMENT ..> ..<
+        assertTrue("SOAP 1.2 Test : - Test No. 66  Failed", comparator.compare("66", client.getRelpy(8008,"SOAP12TestServiceC", "66")));
+
+        //Test No. 65 has <?xml version='1.0' standalone='yes'?>
+        //assertTrue("SOAP 1.2 Test : - Test No. 67  Failed", comparator.compare("67", client.getRelpy("SOAP12TestServiceC", "67")));
+
+        assertTrue("SOAP 1.2 Test : - Test No. 68  Failed", comparator.compare("68", client.getRelpy(8008,"SOAP12TestServiceC", "68")));
+
+        //Test No. 69 sends message without body
+
+        //Test No. 70 sends message with an element after the body element
+
+        //Test No 71 sends message with non namespace qualified attribute in envelope element
+
+        assertTrue("SOAP 1.2 Test : - Test No. 74  Failed", comparator.compare("74", client.getRelpy(8008,"SOAP12TestServiceC", "74")));
+
+        //Test no. 75 sends a message with headerblock echoResolvedRef containing a relative reference
+        assertTrue("SOAP 1.2 Test : - Test No. 78  Failed", comparator.compare("78", client.getRelpy(8008,"SOAP12TestServiceC", "78")));
+
+        //Test No. 79 has intermediaries
+        //System.out.println(client.getReply("SOAP12TestServiceC", "68"));
+    }
+}

Added: webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/soap12testsuite/SOAP12TestWithFaults.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Anushka_Chinthaka_Dias/SOAP12Testing/test/org/apache/axis2/soap12testing/soap12testsuite/SOAP12TestWithFaults.java?rev=219007&view=auto
==============================================================================
--- 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/test/org/apache/axis2/soap12testing/soap12testsuite/SOAP12TestWithFaults.java Thu Jul 14 00:57:23 2005
@@ -0,0 +1,147 @@
+/*
+* 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.soap12testsuite;
+
+import junit.framework.TestCase;
+import org.apache.axis2.soap12testing.server.SimpleServer;
+import org.apache.axis2.soap12testing.client.SOAP12TestClient;
+import org.apache.axis2.soap12testing.client.MessageComparator;
+
+import java.io.InputStream;
+
+public class SOAP12TestWithFaults extends TestCase {
+    private SimpleServer server;
+    private MessageComparator comparator;
+    private SOAP12TestClient client;
+
+    public SOAP12TestWithFaults() {
+        server = new SimpleServer(8007);
+        server.start();
+        comparator = new MessageComparator();
+        client = new SOAP12TestClient();
+    }
+
+    protected void setUp() {
+
+    }
+
+    public void testWithFaults() {
+        //assertTrue("SOAP 1.2 Test : - Test No. 1  Failed", comparator.compare("1", client.getRelpy("SOAP12TestServiceC", "1")));
+        //assertTrue("SOAP 1.2 Test : - Test No. 2  Failed", comparator.compare("2", client.getRelpy("SOAP12TestServiceC", "2")));
+        //assertTrue("SOAP 1.2 Test : - Test No. 3  Failed", comparator.compare("3", client.getRelpy("SOAP12TestServiceC", "3")));
+        //assertTrue("SOAP 1.2 Test : - Test No. 4  Failed", comparator.compare("4", client.getRelpy("SOAP12TestServiceC", "4")));
+        //assertTrue("SOAP 1.2 Test : - Test No. 5  Failed", comparator.compare("5", client.getRelpy("SOAP12TestServiceC", "5")));
+
+        //Test No. 6 to 9 : - There are intermediaries
+
+        //assertTrue("SOAP 1.2 Test : - Test No. 10  Failed", comparator.compare("10", client.getRelpy("SOAP12TestServiceC", "10")));
+        //assertTrue("SOAP 1.2 Test : - Test No. 11  Failed", comparator.compare("11", client.getRelpy("SOAP12TestServiceC", "11")));
+        System.out.println(client.getReply(8007,"SOAP12TestServiceC", "12"));
+        //Test No. 12 - 14 : - Reply message has fault
+//        assertTrue("SOAP 1.2 Test : - Test No. 12  Failed", comparator.compare("12", client.getRelpy(8007, "SOAP12TestServiceC", "12")));
+//        assertTrue("SOAP 1.2 Test : - Test No. 13  Failed", comparator.compare("13", client.getRelpy(8007, "SOAP12TestServiceC", "13")));
+//        //assertTrue("SOAP 1.2 Test : - Test No. 14  Failed", comparator.compare("14", client.getRelpy(8007, "SOAP12TestServiceC", "14")));
+//
+//        //assertTrue("SOAP 1.2 Test : - Test No. 15  Failed", comparator.compare("15", client.getRelpy(8007, "SOAP12TestServiceC", "15")));
+//
+//        //Reply message has fault
+//        assertTrue("SOAP 1.2 Test : - Test No. 16  Failed", comparator.compare("16", client.getRelpy(8007,"SOAP12TestServiceC", "16")));
+//
+//        //Request sends to B and reply has a fault
+//        assertTrue("SOAP 1.2 Test : - Test No. 17  Failed", comparator.compare("17_B", client.getRelpy(8007,"SOAP12TestServiceB", "17_A")));
+//        //There are intermediaries
+//        //assertTrue("SOAP 1.2 Test : - Test No. 18  Failed", comparator.compare("18", client.getRelpy("SOAP12TestServiceC", "18")));
+//
+//        //assertTrue("SOAP 1.2 Test : - Test No. 19  Failed", comparator.compare("19", client.getRelpy("SOAP12TestServiceC", "19")));
+//
+//        //Test No. 20 missing
+//
+//        //Request sends to B and reply has a fault
+//        //System.out.println(client.getReply(8007,"SOAP12TestServiceB", "24"));
+//        assertTrue("SOAP 1.2 Test : - Test No. 21  Failed", comparator.compare("21_B", client.getRelpy(8007,"SOAP12TestServiceB", "21_A")));
+//
+//        //assertTrue("SOAP 1.2 Test : - Test No. 22  Failed", comparator.compare("22", client.getRelpy("SOAP12TestServiceC", "22")));
+//
+//        //mustUnderstand value is "wrong" and reply has a fault
+//        //assertTrue("SOAP 1.2 Test : - Test No. 23  Failed", comparator.compare("23", client.getRelpy("SOAP12TestServiceC", "23")));
+//
+//        //soap envelope namespace uri incorrect  and reply has a fault
+//        //assertTrue("SOAP 1.2 Test : - Test No. 24  Failed", comparator.compare("24", client.getRelpy("SOAP12TestServiceC", "24")));
+//
+//        //Has DTD  and reply has a fault
+//        //assertTrue("SOAP 1.2 Test : - Test No. 25  Failed", comparator.compare("25", client.getRelpy("SOAP12TestServiceC", "25")));
+//
+//        //Has style sheet and reply has a fault
+//        //assertTrue("SOAP 1.2 Test : - Test No. 26  Failed", comparator.compare("26", client.getRelpy("SOAP12TestServiceC", "26")));
+//
+//        //assertTrue("SOAP 1.2 Test : - Test No. 29  Failed", comparator.compare("29", client.getRelpy("SOAP12TestServiceC", "29")));
+//
+//        //Test 30 is not here, because Axis 2 is supported both SOAP 1.1 and SOAP 1.2
+//
+//        //assertTrue("SOAP 1.2 Test : - Test No. 31  Failed", comparator.compare("31", client.getRelpy("SOAP12TestServiceC", "31")));
+//
+//        //In Test No. 32, headerblock value should be inserted to body
+//        //assertTrue("SOAP 1.2 Test : - Test No. 32  Failed", comparator.compare("32", client.getRelpy("SOAP12TestServiceC", "32")));
+//
+//        //Test No. 33, body element has an error
+//        //assertTrue("SOAP 1.2 Test : - Test No. 33  Failed", comparator.compare("33", client.getRelpy("SOAP12TestServiceC", "33")));
+//
+//        //assertTrue("SOAP 1.2 Test : - Test No. 34  Failed", comparator.compare("34", client.getRelpy("SOAP12TestServiceC", "34")));
+//
+//        //Test No. 35 - 36 : - Reply message has fault
+//        assertTrue("SOAP 1.2 Test : - Test No. 35  Failed", comparator.compare("35", client.getRelpy(8007,"SOAP12TestServiceC", "35")));
+//        assertTrue("SOAP 1.2 Test : - Test No. 36  Failed", comparator.compare("36", client.getRelpy(8007,"SOAP12TestServiceC", "36")));
+//
+//        //assertTrue("SOAP 1.2 Test : - Test No. 37  Failed", comparator.compare("37", client.getRelpy("SOAP12TestServiceC", "37")));
+//
+//        //Test No. 38 has intermediaries
+//
+//        //Test No. 39, mustUnderstand value is "9"
+//        //assertTrue("SOAP 1.2 Test : - Test No. 39  Failed", comparator.compare("39", client.getRelpy("SOAP12TestServiceC", "39")));
+//
+//        //assertTrue("SOAP 1.2 Test : - Test No. 40  Failed", comparator.compare("40", client.getRelpy("SOAP12TestServiceC", "40")));
+//
+//        //Test No. 62 has intermediaries
+//
+//        //Test No. 63, headerblock name is validateCountryCode
+//
+//        //Test No. 64 has <!NOTATION ...>
+//
+//        //Test No. 65 has <!ELEMENT ..> ..<
+//
+//        //assertTrue("SOAP 1.2 Test : - Test No. 66  Failed", comparator.compare("66", client.getRelpy("SOAP12TestServiceC", "66")));
+//
+//        //Test No. 67 has <?xml version='1.0' standalone='yes'?>
+//        //assertTrue("SOAP 1.2 Test : - Test No. 67  Failed", comparator.compare("67", client.getRelpy("SOAP12TestServiceC", "67")));
+//
+//        //assertTrue("SOAP 1.2 Test : - Test No. 68  Failed", comparator.compare("68", client.getRelpy("SOAP12TestServiceC", "68")));
+//
+//        //Test No. 69 sends message without body
+//
+//        //Test No. 70 sends message with an element after the body element
+//
+//        //Test No 71 sends message with non namespace qualified attribute in envelope element
+//
+//        //assertTrue("SOAP 1.2 Test : - Test No. 74  Failed", comparator.compare("74", client.getRelpy("SOAP12TestServiceC", "74")));
+//
+//        //Test no. 75 sends a message with headerblock echoResolvedRef containing a relative reference
+//        //assertTrue("SOAP 1.2 Test : - Test No. 78  Failed", comparator.compare("78", client.getRelpy("SOAP12TestServiceC", "78")));
+//
+//        //Test No. 79 has intermediaries
+//       //System.out.println(client.getReply("SOAP12TestServiceC", "68"));
+    }
+}