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 de...@apache.org on 2005/09/06 09:33:44 UTC

svn commit: r278936 [11/16] - in /webservices/axis2/trunk/java/modules/integration: itest-resources/interopt/whitemesa/round2/ itest-resources/interopt/whitemesa/round3/ itest/org/apache/axis2/interopt/whitmesa/round1/ itest/org/apache/axis2/interopt/w...

Added: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/S4rRound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/S4rRound2InteropTest.java?rev=278936&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/S4rRound2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/S4rRound2InteropTest.java Tue Sep  6 00:28:01 2005
@@ -0,0 +1,389 @@
+package org.apache.axis2.interopt.whitmesa.round2;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.interopt.whitemesa.round2.util.*;
+import org.apache.axis2.interopt.whitemesa.round2.SunRound2Client;
+import org.apache.axis2.interopt.whitemesa.WhiteMesaIneterop;
+import org.apache.axis2.AxisFault;
+import java.io.*;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Gayan Asanka
+ * Date: Aug 23, 2005
+ * Time: 4:27:20 PM
+ */
+
+/**
+ * class  S4rRound2InteropTest
+ * To test Interoperability Axis2 clients vs SOAP4R Server, Round2
+ * WSDLs:-
+ * "base"     http://www.jin.gr.jp/~nahi/Ruby/SOAP4R/SOAPBuildersInterop/SOAP4R_SOAPBuildersInteropTest_R2base.wsdl
+ * "Group B"  http://www.jin.gr.jp/~nahi/Ruby/SOAP4R/SOAPBuildersInterop/SOAP4R_SOAPBuildersInteropTest_R2GroupB.wsdl
+ */
+
+public class S4rRound2InteropTest extends WhiteMesaIneterop {
+
+    SOAPEnvelope retEnv = null;
+    boolean success = false;
+    File file = null;
+    String url = "";
+    String soapAction = "";
+    String FS = System.getProperty("file.separator");
+    String resFilePath = "interopt/whitemesa/round2/";
+    String tempPath = "";
+    SunRound2ClientUtil util;
+    private boolean results = false;
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoString
+     */
+    public void testR2BaseEchoString() throws AxisFault {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStringclientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rBaseStringRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStringArray
+     */
+    public void testR2BaseEchoStringArray() throws AxisFault {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStringArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rBaseStringArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoInteger
+     */
+    public void testR2BaseEchoInteger() throws AxisFault {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoIntegerClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rBaseIntegerRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoIntegerArray
+     */
+    public void testR2BaseEchoIntegerArray() throws AxisFault  {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoIntegerArrayclientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rBaseIntegerArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoFloat
+     */
+    public void testR2BaseEchoFloat()  throws AxisFault {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoFloatClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rBaseFloatRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoFloatArray
+     */
+    public void testR2BaseEchoFloatArray()  throws AxisFault {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoFloatArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rBaseFloatArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStruct
+     */
+    public void testRBaseEchoStruct() throws AxisFault  {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "";
+
+        util = new Round2EchoStructClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rBaseStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStructArray
+     */
+    public void testR2BaseEchoStructArray() throws AxisFault  {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStructArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rBaseStructArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoVoid
+     */
+    public void testR2BaseEchoVoid() throws AxisFault  {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoVoidClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rBaseVoidRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBase64
+     */
+    public void testR2BaseEchoBase64() throws AxisFault  {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoBase64ClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rBaseBase64Res.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBase64
+     */
+    public void testR2BaseEchoDate() throws AxisFault  {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoDateClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rBaseDateRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoHexBinary
+     */
+    public void testR2BaseEchoHexBinary() throws AxisFault  {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoHexBinaryClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rBaseHexBinaryRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoDecimal
+     */
+    public void testR2BaseEchoDecimal() throws AxisFault  {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoDecimalClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rBaseDecimalRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBoolean
+     */
+    public void testR2BaseEchoBoolean() throws AxisFault  {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoBooleanClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rBaseBooleanRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoStructAsSimpleTypes
+     */
+    public void testR2GBEchoStructAsSimpleTypes() throws AxisFault {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoStructAsSimpleTypesUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rGroupbStructAsSimpleTypesRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoSimpleTypesAsStruct
+     */
+    public void testR2GBEchoSimpleTypesAsStruct() throws AxisFault {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoSimpleTypesAsStructUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rGroupbSimpletypesAsStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echo2DStringArray
+     */
+    public void testR2GBEcho2DStringArray() throws AxisFault {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEcho2DStringArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rGroupb2DStringArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoNestedStruct
+     */
+    public void testR2GBEchoNestedStruct() throws AxisFault {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoNestedStructUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rGroupbNestedStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoNestedArray
+     */
+    public void testR2GBEchoNestedArray() throws AxisFault {
+        url = "http://dev.ctor.org/soapsrv";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoNestedArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4rGroupbNestedArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+
+//    private static boolean compare(SOAPEnvelope retEnv, String filePath) throws AxisFault {
+//
+//        boolean ok = false;
+//        try {
+//            if (retEnv != null) {
+//                SOAPBody body = retEnv.getBody();
+//                if (!body.hasFault()) {
+//                    //OMElement firstChild = (OMElement) body.getFirstElement();
+//
+//                    InputStream stream = S4rRound2InteropTest.class.getClassLoader().getResourceAsStream(filePath);
+//
+//                    XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(stream);
+//                    OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser, null);
+//                    SOAPEnvelope refEnv = (SOAPEnvelope) builder.getDocumentElement();
+//                    //OMElement refNode = (OMElement) resEnv.getBody().getFirstElement();
+//                    XMLComparator comparator = new XMLComparator();
+//                    ok = comparator.compare(retEnv, refEnv);
+//                } else
+//                    return false;
+//            } else
+//                return false;
+//
+//        } catch (Exception e) {
+//            throw new AxisFault(e); //To change body of catch statement use File | Settings | File Templates.
+//        }
+//        return ok;
+//    }
+}
+

Added: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/S4s4c2Round2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/S4s4c2Round2InteropTest.java?rev=278936&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/S4s4c2Round2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/S4s4c2Round2InteropTest.java Tue Sep  6 00:28:01 2005
@@ -0,0 +1,586 @@
+package org.apache.axis2.interopt.whitmesa.round2;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.interopt.whitemesa.round2.util.*;
+import org.apache.axis2.interopt.whitemesa.WhiteMesaIneterop;
+
+import java.io.*;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Gayan Asanka
+ * Date: Aug 23, 2005
+ * Time: 4:27:20 PM
+ */
+
+/**
+ * class
+ * To test Interoperability Axis2 clients vs 4s4c 2.0 Server, Round2
+ * WSDLs:-
+ * "base"     http://soap.4s4c.com/ilab2/ilab.wsdl
+ * "Group B"  http://soap.4s4c.com/ilab2/ilab_b.wsdl
+ * "Group C"  http://soap.4s4c.com/ilab2/ilab_c.wsdl
+ * todo - All tests failed !!!
+ */
+
+public class S4s4c2Round2InteropTest extends WhiteMesaIneterop {
+
+    SOAPEnvelope retEnv = null;
+    boolean success = false;
+    File file = null;
+    String url = "";
+    String soapAction = "";
+    String FS = System.getProperty("file.separator");
+    String resFilePath = "interopt/whitemesa/round2/";
+    String tempPath = "";
+    SunRound2ClientUtil util;
+    private boolean results = false;
+
+    public void testChack(){
+        //just addding a test case , since all the tase casea are fail
+    }
+
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoString
+     */
+//    public void testR2BaseEchoString() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "urn:interopLab#echoString";
+//
+//        util = new Round2EchoStringclientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseStringRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoStringArray
+//     */
+//    public void testR2BaseEchoStringArray() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "urn:interopLab#echoStringArray";
+//
+//        util = new Round2EchoStringArrayClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "SunBaseStringArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoInteger
+//     */
+//    public void testR2BaseEchoInteger() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "urn:interopLab#echoInteger";
+//
+//        util = new Round2EchoIntegerClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseIntegerRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoIntegerArray
+//     */
+//    public void testR2BaseEchoIntegerArray() throws AxisFault  {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "urn:interopLab#echoIntegerArray";
+//
+//        util = new Round2EchoIntegerArrayclientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseIntegerArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoFloat
+//     */
+//    public void testR2BaseEchoFloat()  throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "urn:interopLab#echoFloat";
+//
+//        util = new Round2EchoFloatClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseFloatRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoFloatArray
+//     */
+//    public void testR2BaseEchoFloatArray()  throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "urn:interopLab#echoFloatArray";
+//
+//        util = new Round2EchoFloatArrayClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseFloatArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoStruct
+//     */
+//    public void testRBaseEchoStruct() throws AxisFault  {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "urn:interopLab#echoStruct";
+//
+//        util = new Round2EchoStructClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseStructRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoStructArray
+//     */
+//    public void testR2BaseEchoStructArray() throws AxisFault  {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "urn:interopLab#echoStructArray";
+//
+//        util = new Round2EchoStructArrayClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseStructArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoVoid
+//     */
+//    public void testR2BaseEchoVoid() throws AxisFault  {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "urn:interopLab#echoVoid";
+//
+//        util = new Round2EchoVoidClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseVoidRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoBase64
+//     */
+//    public void testR2BaseEchoBase64() throws AxisFault  {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "urn:interopLab#echoBase64";
+//
+//        util = new Round2EchoBase64ClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseBase64Res.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoBase64
+//     */
+//    public void testR2BaseEchoDate() throws AxisFault  {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "urn:interopLab#echoDate";
+//
+//        util = new Round2EchoDateClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseDateRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoHexBinary
+//     */
+//    public void testR2BaseEchoHexBinary() throws AxisFault  {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoHexBinaryClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseHexBinaryRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoDecimal
+//     */
+//    public void testR2BaseEchoDecimal() throws AxisFault  {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoDecimalClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseDecimalRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoBoolean
+//     */
+//    public void testR2BaseEchoBoolean() throws AxisFault  {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoBooleanClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseBooleanRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group B
+//     * operation echoStructAsSimpleTypes
+//     */
+//    public void testR2GBEchoStructAsSimpleTypes() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupbEchoStructAsSimpleTypesUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunGroupbStructAsSimpleTypesRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group B
+//     * operation echoSimpleTypesAsStruct
+//     */
+//    public void testR2GBEchoSimpleTypesAsStruct() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupbEchoSimpleTypesAsStructUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunGroupbSimpletypesAsStructRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group B
+//     * operation echo2DStringArray
+//     */
+//    public void testR2GBEcho2DStringArray() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupbEcho2DStringArrayUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunGroupb2DStringArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group B
+//     * operation echoNestedStruct
+//     */
+//    public void testR2GBEchoNestedStruct() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupbEchoNestedStructUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunGroupbNestedStructRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group B
+//     * operation echoNestedArray
+//     */
+//    public void testR2GBEchoNestedArray() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupbEchoNestedArrayUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunGroupbNestedArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoString
+//     */
+//    public void testR2GCEchoString() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcEchoStringUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcEchoStringRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoInterger
+//     */
+//    public void testR2GCEchoInterger() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcIntergerUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcIntergerRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoStringArray
+//     */
+//    public void testR2GCEchoStringArray() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcStringArrayUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcStringArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoIntergerArray
+//     */
+//    public void testR2GCEchoIntergerArray() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcIntegerArrayUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcIntegerArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoFloat
+//     */
+//    public void testR2GCEchoFloat() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcFloatUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcFloatRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoFloatArray
+//     */
+//    public void testR2GCEchoFloatArray() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcFloatArrayUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcFloatArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoStruct
+//     */
+//    public void testR2GCEchoStruct() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcStructUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcStructRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoStructArray
+//     */
+//    public void testR2GCEchoStructArray() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcStructArrayUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcStructArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoVoid
+//     */
+//    public void testR2GCEchoVoid() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcVoidUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcVoidRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoBase64
+//     */
+//    public void testR2GCEchoBase64() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcBase64Util();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcBase64Res.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoHexBinary
+//     */
+//    public void testR2GCEchoHexBinary() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcHexBinaryUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcHexBinaryRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoBoolean
+//     */
+//    public void testR2GCEchoBoolean() throws AxisFault {
+//        url = "http://soap.4s4c.com/ilab2/soap.asp";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcBooleanUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcBooleanRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+
+//    private static boolean compare(SOAPEnvelope retEnv, String filePath) throws AxisFault {
+//
+//        boolean ok = false;
+//        try {
+//            if (retEnv != null) {
+//                SOAPBody body = retEnv.getBody();
+//                if (!body.hasFault()) {
+//                    //OMElement firstChild = (OMElement) body.getFirstElement();
+//
+//                    InputStream stream = S4s4c2Round2InteropTest.class.getClassLoader().getResourceAsStream(filePath);
+//
+//                    XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(stream);
+//                    OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser, null);
+//                    SOAPEnvelope refEnv = (SOAPEnvelope) builder.getDocumentElement();
+//                    //OMElement refNode = (OMElement) resEnv.getBody().getFirstElement();
+//                    XMLComparator comparator = new XMLComparator();
+//                    ok = comparator.compare(retEnv, refEnv);
+//                } else
+//                    return false;
+//            } else
+//                return false;
+//
+//        } catch (Exception e) {
+//            throw new AxisFault(e); //To change body of catch statement use File | Settings | File Templates.
+//        }
+//        return ok;
+//    }
+}
+

Added: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/S4s4cRound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/S4s4cRound2InteropTest.java?rev=278936&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/S4s4cRound2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/S4s4cRound2InteropTest.java Tue Sep  6 00:28:01 2005
@@ -0,0 +1,389 @@
+package org.apache.axis2.interopt.whitmesa.round2;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.interopt.whitemesa.round2.util.*;
+import org.apache.axis2.interopt.whitemesa.round2.SunRound2Client;
+import org.apache.axis2.interopt.whitemesa.WhiteMesaIneterop;
+import org.apache.axis2.AxisFault;
+import java.io.*;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Gayan Asanka
+ * Date: Aug 23, 2005
+ * Time: 4:27:20 PM
+ */
+
+/**
+ * class
+ * To test interoperability Axis2 clients vs 4s4c server
+ * WSDLs:-
+ * "base"     http://www.pocketsoap.com/services/ilab.wsdl
+ * "Group B"  http://www.pocketsoap.com/services/ilab_b.wsdl
+ */
+
+public class S4s4cRound2InteropTest extends WhiteMesaIneterop {
+
+    SOAPEnvelope retEnv = null;
+    boolean success = false;
+    File file = null;
+    String url = "";
+    String soapAction = "";
+    String FS = System.getProperty("file.separator");
+    String resFilePath = "interopt/whitemesa/round2/";
+    String tempPath = "";
+    SunRound2ClientUtil util;
+    private boolean results = false;
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoString
+     */
+    public void testR2BaseEchoString() throws AxisFault {
+        url = "http://soap.4s4c.com/ilab/soap.asp";    //soap.4s4c.com/
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStringclientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cBaseStringRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStringArray
+     */
+    public void testR2BaseEchoStringArray() throws AxisFault {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStringArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cBaseStringArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoInteger
+     */
+    public void testR2BaseEchoInteger() throws AxisFault {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoIntegerClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cBaseIntegerRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoIntegerArray
+     */
+    public void testR2BaseEchoIntegerArray() throws AxisFault  {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoIntegerArrayclientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cBaseIntegerArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoFloat
+     */
+    public void testR2BaseEchoFloat()  throws AxisFault {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoFloatClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cBaseFloatRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoFloatArray
+     */
+    public void testR2BaseEchoFloatArray()  throws AxisFault {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoFloatArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cBaseFloatArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStruct
+     */
+    public void testRBaseEchoStruct() throws AxisFault  {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "";
+
+        util = new Round2EchoStructClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cBaseStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStructArray
+     */
+    public void testR2BaseEchoStructArray() throws AxisFault  {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStructArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cBaseStructArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoVoid
+     */
+    public void testR2BaseEchoVoid() throws AxisFault  {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoVoidClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cBaseVoidRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBase64
+     */
+    public void testR2BaseEchoBase64() throws AxisFault  {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoBase64ClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cBaseBase64Res.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBase64
+     */
+    public void testR2BaseEchoDate() throws AxisFault  {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoDateClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cBaseDateRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoHexBinary
+     */
+    public void testR2BaseEchoHexBinary() throws AxisFault  {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoHexBinaryClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cBaseHexBinaryRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoDecimal
+     */
+    public void testR2BaseEchoDecimal() throws AxisFault  {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoDecimalClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cBaseDecimalRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBoolean
+     */
+    public void testR2BaseEchoBoolean() throws AxisFault  {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoBooleanClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cBaseBooleanRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoStructAsSimpleTypes
+     */
+    public void testR2GBEchoStructAsSimpleTypes() throws AxisFault {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoStructAsSimpleTypesUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cGroupbStructAsSimpleTypesRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoSimpleTypesAsStruct
+     */
+    public void testR2GBEchoSimpleTypesAsStruct() throws AxisFault {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoSimpleTypesAsStructUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cGroupbSimpletypesAsStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echo2DStringArray
+     */
+    public void testR2GBEcho2DStringArray() throws AxisFault {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEcho2DStringArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cGroupb2DStringArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoNestedStruct
+     */
+    public void testR2GBEchoNestedStruct() throws AxisFault {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoNestedStructUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cGroupbNestedStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoNestedArray
+     */
+    public void testR2GBEchoNestedArray() throws AxisFault {
+        url = "http://soap.4s4c.com/ilab/soap.asp";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoNestedArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "S4s4cGroupbNestedArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+
+//    private static boolean compare(SOAPEnvelope retEnv, String filePath) throws AxisFault {
+//
+//        boolean ok = false;
+//        try {
+//            if (retEnv != null) {
+//                SOAPBody body = retEnv.getBody();
+//                if (!body.hasFault()) {
+//                    //OMElement firstChild = (OMElement) body.getFirstElement();
+//
+//                    InputStream stream = S4s4cRound2InteropTest.class.getClassLoader().getResourceAsStream(filePath);
+//
+//                    XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(stream);
+//                    OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser, null);
+//                    SOAPEnvelope refEnv = (SOAPEnvelope) builder.getDocumentElement();
+//                    //OMElement refNode = (OMElement) resEnv.getBody().getFirstElement();
+//                    XMLComparator comparator = new XMLComparator();
+//                    ok = comparator.compare(retEnv, refEnv);
+//                } else
+//                    return false;
+//            } else
+//                return false;
+//
+//        } catch (Exception e) {
+//            throw new AxisFault(e); //To change body of catch statement use File | Settings | File Templates.
+//        }
+//        return ok;
+//    }
+}
+

Added: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/SLRound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/SLRound2InteropTest.java?rev=278936&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/SLRound2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/SLRound2InteropTest.java Tue Sep  6 00:28:01 2005
@@ -0,0 +1,587 @@
+package org.apache.axis2.interopt.whitmesa.round2;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.interopt.whitemesa.round2.util.*;
+import org.apache.axis2.interopt.whitemesa.WhiteMesaIneterop;
+
+import java.io.*;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Gayan Asanka
+ * Date: Aug 23, 2005
+ * Time: 4:27:20 PM
+ */
+
+/**
+ * class SLRound2InteropTest
+ * To test Interoperability Axis2 clients vs Soap:Lite Server, Round2
+ * WSDL:-
+ * "base"     http://services.soaplite.com/interop2.wsdl
+ * "Group B"  http://services.soaplite.com/InteropTestB.wsdl
+ * "Group C"  http://services.soaplite.com/InteropTestC.wsdl
+ */
+
+//todo All tests failed !!!
+
+public class SLRound2InteropTest extends WhiteMesaIneterop {
+
+    SOAPEnvelope retEnv = null;
+    boolean success = false;
+    File file = null;
+    String url = "";
+    String soapAction = "";
+    String FS = System.getProperty("file.separator");
+    String resFilePath = "interopt/whitemesa/round2/";
+    String tempPath = "";
+    SunRound2ClientUtil util;
+    private boolean results = false;
+
+    public void testChack(){
+            //just addding a test case , since all the tase casea are fail
+        }
+    
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoString
+     */
+//    public void testR2BaseEchoString() throws AxisFault {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoStringclientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseStringRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoStringArray
+//     */
+//    public void testR2BaseEchoStringArray() throws AxisFault {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoStringArrayClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "SunBaseStringArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoInteger
+//     */
+//    public void testR2BaseEchoInteger() throws AxisFault {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoIntegerClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseIntegerRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoIntegerArray
+//     */
+//    public void testR2BaseEchoIntegerArray() throws AxisFault  {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoIntegerArrayclientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseIntegerArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoFloat
+//     */
+//    public void testR2BaseEchoFloat()  throws AxisFault {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoFloatClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseFloatRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoFloatArray
+//     */
+//    public void testR2BaseEchoFloatArray()  throws AxisFault {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoFloatArrayClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseFloatArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoStruct
+//     */
+//    public void testRBaseEchoStruct() throws AxisFault  {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "";
+//
+//        util = new Round2EchoStructClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseStructRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoStructArray
+//     */
+//    public void testR2BaseEchoStructArray() throws AxisFault  {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoStructArrayClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseStructArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoVoid
+//     */
+//    public void testR2BaseEchoVoid() throws AxisFault  {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoVoidClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseVoidRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoBase64
+//     */
+//    public void testR2BaseEchoBase64() throws AxisFault  {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoBase64ClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseBase64Res.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoBase64
+//     */
+//    public void testR2BaseEchoDate() throws AxisFault  {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoDateClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseDateRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoHexBinary
+//     */
+//    public void testR2BaseEchoHexBinary() throws AxisFault  {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoHexBinaryClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseHexBinaryRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoDecimal
+//     */
+//    public void testR2BaseEchoDecimal() throws AxisFault  {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoDecimalClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseDecimalRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoBoolean
+//     */
+//    public void testR2BaseEchoBoolean() throws AxisFault  {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoBooleanClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseBooleanRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group B
+//     * operation echoStructAsSimpleTypes
+//     */
+//    public void testR2GBEchoStructAsSimpleTypes() throws AxisFault {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupbEchoStructAsSimpleTypesUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunGroupbStructAsSimpleTypesRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group B
+//     * operation echoSimpleTypesAsStruct
+//     */
+//    public void testR2GBEchoSimpleTypesAsStruct() throws AxisFault {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupbEchoSimpleTypesAsStructUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunGroupbSimpletypesAsStructRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group B
+//     * operation echo2DStringArray
+//     */
+//    public void testR2GBEcho2DStringArray() throws AxisFault {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupbEcho2DStringArrayUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunGroupb2DStringArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group B
+//     * operation echoNestedStruct
+//     */
+//    public void testR2GBEchoNestedStruct() throws AxisFault {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupbEchoNestedStructUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunGroupbNestedStructRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group B
+//     * operation echoNestedArray
+//     */
+//    public void testR2GBEchoNestedArray() throws AxisFault {
+//        url = "http://localhost:8010/interop.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupbEchoNestedArrayUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunGroupbNestedArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoString
+//     */
+//    public void testR2GCEchoString() throws AxisFault {
+//        url = "http://localhost:8010/interopC.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcEchoStringUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcEchoStringRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoInterger
+//     */
+//    public void testR2GCEchoInterger() throws AxisFault {
+//        url = "http://localhost:8010/interopC.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcIntergerUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcIntergerRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoStringArray
+//     */
+//    public void testR2GCEchoStringArray() throws AxisFault {
+//        url = "http://localhost:8010/interopC.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcStringArrayUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcStringArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoIntergerArray
+//     */
+//    public void testR2GCEchoIntergerArray() throws AxisFault {
+//        url = "http://localhost:8010/interopC.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcIntegerArrayUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcIntegerArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoFloat
+//     */
+//    public void testR2GCEchoFloat() throws AxisFault {
+//        url = "http://localhost:8010/interopC.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcFloatUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcFloatRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoFloatArray
+//     */
+//    public void testR2GCEchoFloatArray() throws AxisFault {
+//        url = "http://localhost:8010/interopC.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcFloatArrayUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcFloatArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoStruct
+//     */
+//    public void testR2GCEchoStruct() throws AxisFault {
+//        url = "http://localhost:8010/interopC.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcStructUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcStructRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoStructArray
+//     */
+//    public void testR2GCEchoStructArray() throws AxisFault {
+//        url = "http://localhost:8010/interopC.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcStructArrayUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcStructArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoVoid
+//     */
+//    public void testR2GCEchoVoid() throws AxisFault {
+//        url = "http://localhost:8010/interopC.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcVoidUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcVoidRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoBase64
+//     */
+//    public void testR2GCEchoBase64() throws AxisFault {
+//        url = "http://localhost:8010/interopC.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcBase64Util();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcBase64Res.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoHexBinary
+//     */
+//    public void testR2GCEchoHexBinary() throws AxisFault {
+//        url = "http://localhost:8010/interopC.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcHexBinaryUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcHexBinaryRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group C
+//     * operation echoBoolean
+//     */
+//    public void testR2GCEchoBoolean() throws AxisFault {
+//        url = "http://localhost:8010/interopC.cgi";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcBooleanUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcBooleanRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+
+//    private static boolean compare(SOAPEnvelope retEnv, String filePath) throws AxisFault {
+//
+//        boolean ok = false;
+//        try {
+//            if (retEnv != null) {
+//                SOAPBody body = retEnv.getBody();
+//                if (!body.hasFault()) {
+//                    //OMElement firstChild = (OMElement) body.getFirstElement();
+//
+//                    InputStream stream = SLRound2InteropTest.class.getClassLoader().getResourceAsStream(filePath);
+//
+//                    XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(stream);
+//                    OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser, null);
+//                    SOAPEnvelope refEnv = (SOAPEnvelope) builder.getDocumentElement();
+//                    //OMElement refNode = (OMElement) resEnv.getBody().getFirstElement();
+//                    XMLComparator comparator = new XMLComparator();
+//                    ok = comparator.compare(retEnv, refEnv);
+//                } else
+//                    return false;
+//            } else
+//                return false;
+//
+//        } catch (Exception e) {
+//            throw new AxisFault(e); //To change body of catch statement use File | Settings | File Templates.
+//        }
+//        return ok;
+//    }
+}
+

Added: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/SPJRound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/SPJRound2InteropTest.java?rev=278936&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/SPJRound2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/SPJRound2InteropTest.java Tue Sep  6 00:28:01 2005
@@ -0,0 +1,390 @@
+package org.apache.axis2.interopt.whitmesa.round2;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.interopt.whitemesa.round2.util.*;
+import org.apache.axis2.interopt.whitemesa.round2.SunRound2Client;
+import org.apache.axis2.interopt.whitemesa.WhiteMesaIneterop;
+import org.apache.axis2.AxisFault;
+import java.io.*;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Gayan Asanka
+ * Date: Aug 23, 2005
+ * Time: 4:27:20 PM
+ */
+
+/**
+ * class
+ * To test Interoperability Axis2 clients vs Spheon JSOAP Server, Round2
+ * WSDLs:-
+ * "base"    http://soap.fmui.de/interop.wsdl
+ * "Group B" http://soap.fmui.de/interopb.wsdl
+ */
+//todo check echoHexBinary test
+
+public class SPJRound2InteropTest extends WhiteMesaIneterop {
+
+    SOAPEnvelope retEnv = null;
+    boolean success = false;
+    File file = null;
+    String url = "";
+    String soapAction = "";
+    String FS = System.getProperty("file.separator");
+    String resFilePath = "interopt/whitemesa/round2/";
+    String tempPath = "";
+    SunRound2ClientUtil util;
+    private boolean results = false;
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoString
+     */
+    public void testR2BaseEchoString() throws AxisFault {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStringclientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJBaseStringRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStringArray
+     */
+    public void testR2BaseEchoStringArray() throws AxisFault {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStringArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJBaseStringArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoInteger
+     */
+    public void testR2BaseEchoInteger() throws AxisFault {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoIntegerClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJBaseIntegerRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoIntegerArray
+     */
+    public void testR2BaseEchoIntegerArray() throws AxisFault  {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoIntegerArrayclientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJBaseIntegerArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoFloat
+     */
+    public void testR2BaseEchoFloat()  throws AxisFault {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoFloatClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJBaseFloatRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoFloatArray
+     */
+    public void testR2BaseEchoFloatArray()  throws AxisFault {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoFloatArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJBaseFloatArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStruct
+     */
+    public void testRBaseEchoStruct() throws AxisFault  {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "";
+
+        util = new Round2EchoStructClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJBaseStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStructArray
+     */
+    public void testR2BaseEchoStructArray() throws AxisFault  {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStructArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJBaseStructArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoVoid
+     */
+    public void testR2BaseEchoVoid() throws AxisFault  {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoVoidClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJBaseVoidRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBase64
+     */
+    public void testR2BaseEchoBase64() throws AxisFault  {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoBase64ClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJBaseBase64Res.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBase64
+     */
+    public void testR2BaseEchoDate() throws AxisFault  {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoDateClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJBaseDateRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoHexBinary
+     */
+    public void testR2BaseEchoHexBinary() throws AxisFault  {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoHexBinaryClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJBaseHexBinaryRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoDecimal
+     */
+    public void testR2BaseEchoDecimal() throws AxisFault  {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoDecimalClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJBaseDecimalRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBoolean
+     */
+    public void testR2BaseEchoBoolean() throws AxisFault  {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoBooleanClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJBaseBooleanRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoStructAsSimpleTypes
+     */
+    public void testR2GBEchoStructAsSimpleTypes() throws AxisFault {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoStructAsSimpleTypesUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJGroupbStructAsSimpleTypesRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoSimpleTypesAsStruct
+     */
+    public void testR2GBEchoSimpleTypesAsStruct() throws AxisFault {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoSimpleTypesAsStructUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJGroupbSimpletypesAsStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echo2DStringArray
+     */
+    public void testR2GBEcho2DStringArray() throws AxisFault {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEcho2DStringArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJGroupb2DStringArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoNestedStruct
+     */
+    public void testR2GBEchoNestedStruct() throws AxisFault {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoNestedStructUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJGroupbNestedStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoNestedArray
+     */
+    public void testR2GBEchoNestedArray() throws AxisFault {
+        url = "http://soap.fmui.de/RPC";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoNestedArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SpJGroupbNestedArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+
+//    private static boolean compare(SOAPEnvelope retEnv, String filePath) throws AxisFault {
+//
+//        boolean ok = false;
+//        try {
+//            if (retEnv != null) {
+//                SOAPBody body = retEnv.getBody();
+//                if (!body.hasFault()) {
+//                    //OMElement firstChild = (OMElement) body.getFirstElement();
+//
+//                    InputStream stream = SPJRound2InteropTest.class.getClassLoader().getResourceAsStream(filePath);
+//
+//                    XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(stream);
+//                    OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser, null);
+//                    SOAPEnvelope refEnv = (SOAPEnvelope) builder.getDocumentElement();
+//                    //OMElement refNode = (OMElement) resEnv.getBody().getFirstElement();
+//                    XMLComparator comparator = new XMLComparator();
+//                    ok = comparator.compare(retEnv, refEnv);
+//                } else
+//                    return false;
+//            } else
+//                return false;
+//
+//        } catch (Exception e) {
+//            throw new AxisFault(e); //To change body of catch statement use File | Settings | File Templates.
+//        }
+//        return ok;
+//    }
+}
+