axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r278936 [13/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...
Date Tue, 06 Sep 2005 07:33:44 GMT
Added: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/WMRound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/WMRound2InteropTest.java?rev=278936&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/WMRound2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/WMRound2InteropTest.java Tue Sep  6 00:28:01 2005
@@ -0,0 +1,580 @@
+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 Whitemesa server
+ * WSDLs:-
+ * "base"     http://www.whitemesa.net/wsdl/std/interop.wsdl
+ * "Group B"  http://www.whitemesa.net/wsdl/std/interopB.wsdl
+ * "Group C"  http://www.whitemesa.net/wsdl/std/echoheadersvc.wsdl
+ */
+
+public class WMRound2InteropTest extends WhiteMesaIneterop {
+
+    SOAPEnvelope retEnv = null;
+    boolean success = false;
+    File file = null;
+    String url = "";
+    String soapAction = "";
+    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://www.whitemesa.net/interop/std";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStringclientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMBaseStringRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStringArray
+     */
+    public void testR2BaseEchoStringArray() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStringArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMBaseStringArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoInteger
+     */
+    public void testR2BaseEchoInteger() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoIntegerClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMBaseIntegerRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoIntegerArray
+     */
+    public void testR2BaseEchoIntegerArray() throws AxisFault  {
+        url = "http://www.whitemesa.net/interop/std";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoIntegerArrayclientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMBaseIntegerArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoFloat
+     */
+    public void testR2BaseEchoFloat()  throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoFloatClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMBaseFloatRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoFloatArray
+     */
+    public void testR2BaseEchoFloatArray()  throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoFloatArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMBaseFloatArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStruct
+     */
+    public void testRBaseEchoStruct() throws AxisFault  {
+        url = "http://www.whitemesa.net/interop/std";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStructClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMBaseStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStructArray
+     */
+    public void testR2BaseEchoStructArray() throws AxisFault  {
+        url = "http://www.whitemesa.net/interop/std";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStructArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMBaseStructArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoVoid
+     */
+    public void testR2BaseEchoVoid() throws AxisFault  {
+        url = "http://www.whitemesa.net/interop/std";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoVoidClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMBaseVoidRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBase64
+     */
+    public void testR2BaseEchoBase64() throws AxisFault  {
+        url = "http://www.whitemesa.net/interop/std";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoBase64ClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMBaseBase64Res.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBase64
+     */
+    public void testR2BaseEchoDate() throws AxisFault  {
+        url = "http://www.whitemesa.net/interop/std";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoDateClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMBaseDateRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoHexDecimal
+     */
+    public void testR2BaseEchoDecimal() throws AxisFault  {
+        url = "http://www.whitemesa.net/interop/std";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoDecimalClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMBaseDecimalRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoHexBinary
+     */
+    public void testR2BaseEchoHexBinary() throws AxisFault  {
+        url = "http://www.whitemesa.net/interop/std";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoHexBinaryClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMBaseHexBinaryRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBoolean
+     */
+    public void testR2BaseEchoBoolean() throws AxisFault  {
+        url = "http://www.whitemesa.net/interop/std";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoBooleanClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMBaseBooleanRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoStructAsSimpleTypes
+     */
+    public void testR2GBEchoStructAsSimpleTypes() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std/groupB";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoStructAsSimpleTypesUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMGroupbStructAsSimpleTypesRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoSimpleTypesAsStruct
+     */
+    public void testR2GBEchoSimpleTypesAsStruct() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std/groupB";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoSimpleTypesAsStructUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMGroupbSimpletypesAsStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echo2DStringArray
+     */
+    public void testR2GBEcho2DStringArray() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std/groupB";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEcho2DStringArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMGroupb2DStringArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoNestedStruct
+     */
+    public void testR2GBEchoNestedStruct() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std/groupB";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoNestedStructUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMGroupbNestedStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoNestedArray
+     */
+    public void testR2GBEchoNestedArray() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std/groupB";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoNestedArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMGroupbNestedArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoString
+     */
+    public void testR2GCEchoString() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std/echohdr";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcEchoStringUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMGcEchoStringRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoInterger
+     */
+    public void testR2GCEchoInterger() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std/echohdr";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcIntergerUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMGcIntergerRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoStringArray
+     */
+    public void testR2GCEchoStringArray() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std/echohdr";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcStringArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMGcStringArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoIntergerArray
+     */
+    public void testR2GCEchoIntergerArray() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std/echohdr";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcIntegerArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMGcIntegerArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoFloat
+     */
+    public void testR2GCEchoFloat() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std/echohdr";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcFloatUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMGcFloatRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoFloatArray
+     */
+    public void testR2GCEchoFloatArray() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std/echohdr";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcFloatArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMGcFloatArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoStruct
+     */
+    public void testR2GCEchoStruct() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std/echohdr";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcStructUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMGcStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoStructArray
+     */
+    public void testR2GCEchoStructArray() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std/echohdr";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcStructArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMGcStructArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoVoid
+     */
+    public void testR2GCEchoVoid() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std/echohdr";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcVoidUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMGcVoidRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoBase64
+     */
+    public void testR2GCEchoBase64() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std/echohdr";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcBase64Util();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMGcBase64Res.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoHexBinary
+     */
+    public void testR2GCEchoHexBinary() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std/echohdr";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcHexBinaryUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMGcHexBinaryRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoBoolean
+     */
+    public void testR2GCEchoBoolean() throws AxisFault {
+        url = "http://www.whitemesa.net/interop/std/echohdr";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcBooleanUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WMGcBooleanRes.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 = WMRound2InteropTest.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/WaspRound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/WaspRound2InteropTest.java?rev=278936&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/WaspRound2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/WaspRound2InteropTest.java Tue Sep  6 00:28:01 2005
@@ -0,0 +1,582 @@
+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 WASP for Java Server, Round2
+ * WSDLs:-
+ * "base"     http://soap.systinet.net/ws/InteropService/
+ * "Group B"  http://soap.systinet.net/ws/InteropBService/
+ * "Group C"  http://soap.systinet.net/ws/InteropCService/
+ */
+//todo Have to check Group C tests, only echoVoid test was passed
+
+public class WaspRound2InteropTest extends WhiteMesaIneterop {
+
+    SOAPEnvelope retEnv = null;
+    boolean success = false;
+    File file = null;
+    String url = "";
+    String soapAction = "";
+    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.systinet.net:6060/InteropService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStringclientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspBaseStringRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStringArray
+     */
+    public void testR2BaseEchoStringArray() throws AxisFault {
+        url = "http://soap.systinet.net:6060/InteropService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStringArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspBaseStringArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoInteger
+     */
+    public void testR2BaseEchoInteger() throws AxisFault {
+        url = "http://soap.systinet.net:6060/InteropService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoIntegerClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspBaseIntegerRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoIntegerArray
+     */
+    public void testR2BaseEchoIntegerArray() throws AxisFault  {
+        url = "http://soap.systinet.net:6060/InteropService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoIntegerArrayclientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspBaseIntegerArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoFloat
+     */
+    public void testR2BaseEchoFloat()  throws AxisFault {
+        url = "http://soap.systinet.net:6060/InteropService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoFloatClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspBaseFloatRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoFloatArray
+     */
+    public void testR2BaseEchoFloatArray()  throws AxisFault {
+        url = "http://soap.systinet.net:6060/InteropService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoFloatArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspBaseFloatArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStruct
+     */
+    public void testRBaseEchoStruct() throws AxisFault  {
+        url = "http://soap.systinet.net:6060/InteropService/";
+        soapAction = "";
+
+        util = new Round2EchoStructClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspBaseStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStructArray
+     */
+    public void testR2BaseEchoStructArray() throws AxisFault  {
+        url = "http://soap.systinet.net:6060/InteropService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStructArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspBaseStructArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoVoid
+     */
+    public void testR2BaseEchoVoid() throws AxisFault  {
+        url = "http://soap.systinet.net:6060/InteropService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoVoidClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspBaseVoidRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBase64
+     */
+    public void testR2BaseEchoBase64() throws AxisFault  {
+        url = "http://soap.systinet.net:6060/InteropService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoBase64ClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspBaseBase64Res.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBase64
+     */
+    public void testR2BaseEchoDate() throws AxisFault  {
+        url = "http://soap.systinet.net:6060/InteropService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoDateClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspBaseDateRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoHexBinary
+     */
+    public void testR2BaseEchoHexBinary() throws AxisFault  {
+        url = "http://soap.systinet.net:6060/InteropService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoHexBinaryClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspBaseHexBinaryRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoDecimal
+     */
+    public void testR2BaseEchoDecimal() throws AxisFault  {
+        url = "http://soap.systinet.net:6060/InteropService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoDecimalClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspBaseDecimalRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBoolean
+     */
+    public void testR2BaseEchoBoolean() throws AxisFault  {
+        url = "http://soap.systinet.net:6060/InteropService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoBooleanClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspBaseBooleanRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoStructAsSimpleTypes
+     */
+    public void testR2GBEchoStructAsSimpleTypes() throws AxisFault {
+        url = "http://soap.systinet.net:6060/InteropBService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoStructAsSimpleTypesUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspGroupbStructAsSimpleTypesRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoSimpleTypesAsStruct
+     */
+    public void testR2GBEchoSimpleTypesAsStruct() throws AxisFault {
+        url = "http://soap.systinet.net:6060/InteropBService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoSimpleTypesAsStructUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspGroupbSimpletypesAsStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echo2DStringArray
+     */
+    public void testR2GBEcho2DStringArray() throws AxisFault {
+        url = "http://soap.systinet.net:6060/InteropBService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEcho2DStringArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspGroupb2DStringArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoNestedStruct
+     */
+    public void testR2GBEchoNestedStruct() throws AxisFault {
+        url = "http://soap.systinet.net:6060/InteropBService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoNestedStructUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspGroupbNestedStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoNestedArray
+     */
+    public void testR2GBEchoNestedArray() throws AxisFault {
+        url = "http://soap.systinet.net:6060/InteropBService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoNestedArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspGroupbNestedArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoString
+     */
+//    public void testR2GCEchoString() throws AxisFault {
+//        url = "http://soap.systinet.net:6060/InteropCService/";
+//        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.systinet.net:6060/InteropCService/";
+//        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.systinet.net:6060/InteropCService/";
+//        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.systinet.net:6060/InteropCService/";
+//        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.systinet.net:6060/InteropCService/";
+//        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.systinet.net:6060/InteropCService/";
+//        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.systinet.net:6060/InteropCService/";
+//        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.systinet.net:6060/InteropCService/";
+//        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
+     * todo - echoMeStruct part is missing in the returned envelop
+     */
+    public void testR2GCEchoVoid() throws AxisFault {
+        url = "http://soap.systinet.net:6060/InteropCService/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcVoidUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "WaspGroupcVoidRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoBase64
+     */
+//    public void testR2GCEchoBase64() throws AxisFault {
+//        url = "http://soap.systinet.net:6060/InteropCService/";
+//        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.systinet.net:6060/InteropCService/";
+//        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.systinet.net:6060/InteropCService/";
+//        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 = WaspRound2InteropTest.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/XSRound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/XSRound2InteropTest.java?rev=278936&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/XSRound2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/XSRound2InteropTest.java Tue Sep  6 00:28:01 2005
@@ -0,0 +1,309 @@
+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 XSOAP 1.2 Server, Round2
+ * WSDLs:-
+ *  	"base"  	http://www.extreme.indiana.edu/~aslom/XSOAP_1_2_SoapRMI.wsdl
+ *
+ */
+
+public class XSRound2InteropTest extends WhiteMesaIneterop {
+
+    SOAPEnvelope retEnv = null;
+    boolean success = false;
+    File file = null;
+    String url = "";
+    String soapAction = "";
+    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://www.extreme.indiana.edu:1568/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStringclientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "XSBaseStringRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStringArray
+     */
+    public void testR2BaseEchoStringArray() throws AxisFault {
+        url = "http://www.extreme.indiana.edu:1568/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStringArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "XSBaseStringArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoInteger
+     */
+    public void testR2BaseEchoInteger() throws AxisFault {
+        url = "http://www.extreme.indiana.edu:1568/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoIntegerClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "XSBaseIntegerRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoIntegerArray
+     */
+    public void testR2BaseEchoIntegerArray() throws AxisFault  {
+        url = "http://www.extreme.indiana.edu:1568/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoIntegerArrayclientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "XSBaseIntegerArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoFloat
+     */
+    public void testR2BaseEchoFloat()  throws AxisFault {
+        url = "http://www.extreme.indiana.edu:1568/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoFloatClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "XSBaseFloatRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoFloatArray
+     */
+    public void testR2BaseEchoFloatArray()  throws AxisFault {
+        url = "http://www.extreme.indiana.edu:1568/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoFloatArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "XSBaseFloatArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStruct
+     */
+    public void testRBaseEchoStruct() throws AxisFault  {
+        url = "http://www.extreme.indiana.edu:1568/";
+        soapAction = "";
+
+        util = new Round2EchoStructClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "XSBaseStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStructArray
+     */
+    public void testR2BaseEchoStructArray() throws AxisFault  {
+        url = "http://www.extreme.indiana.edu:1568/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStructArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "XSBaseStructArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoVoid
+     */
+    public void testR2BaseEchoVoid() throws AxisFault  {
+        url = "http://www.extreme.indiana.edu:1568/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoVoidClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "XSBaseVoidRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBase64
+     */
+    public void testR2BaseEchoBase64() throws AxisFault  {
+        url = "http://www.extreme.indiana.edu:1568/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoBase64ClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "XSBaseBase64Res.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBase64
+     * todo - this test failed, have tocheck the dateTime format that remote server asking
+     */
+//    public void testR2BaseEchoDate() throws AxisFault  {
+//        url = "http://localhost:8010/";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoDateClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "XSBaseDateRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//   }
+
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoHexBinary
+     */
+    public void testR2BaseEchoHexBinary() throws AxisFault  {
+        url = "http://www.extreme.indiana.edu:1568/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoHexBinaryClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "XSBaseHexBinaryRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoDecimal
+     */
+    public void testR2BaseEchoDecimal() throws AxisFault  {
+        url = "http://www.extreme.indiana.edu:1568/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoDecimalClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "XSBaseDecimalRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBoolean
+     */
+    public void testR2BaseEchoBoolean() throws AxisFault  {
+        url = "http://www.extreme.indiana.edu:1568/";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoBooleanClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "XSBaseBooleanRes.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 = XSRound2InteropTest.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/round3/MsAsmxRound3InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round3/MsAsmxRound3InteropTest.java?rev=278936&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round3/MsAsmxRound3InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round3/MsAsmxRound3InteropTest.java Tue Sep  6 00:28:01 2005
@@ -0,0 +1,272 @@
+package org.apache.axis2.interopt.whitmesa.round3;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.interopt.whitemesa.round3.SunRound3Client;
+import org.apache.axis2.interopt.whitemesa.round3.util.*;
+import org.apache.axis2.interopt.whitemesa.WhiteMesaIneterop;
+import org.apache.axis2.soap.SOAPEnvelope;
+
+/*
+* 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 MsAsmxRound3InteropTest
+ * To test interoperability in Axis2 Clients Vs ASP NET Server, Round 3
+ * 
+ */
+
+public class MsAsmxRound3InteropTest extends WhiteMesaIneterop {
+
+    SunRound3Client client = null;
+    SOAPEnvelope retEnv = null;
+    boolean success = false;
+    String url = "";
+    String soapAction = "";
+    String resFilePath = "interopt/whitemesa/round3/";
+    String tempPath = "";
+    SunRound3ClientUtil util = null;
+    private boolean result = false;
+
+    public void setUp() {
+        client = new SunRound3Client();
+        resFilePath = "interopt/whitemesa/round3/";
+    }
+
+    /**
+     * Round 3
+     * Group EmptySA
+     * operation EchoString
+     * This test fails!!!
+     */
+    public void testR3EsaEchoString() throws AxisFault {
+
+        url = "http://mssoapinterop.org/asmx/wsdl/emptysa.asmx";
+        soapAction = "";
+
+        util = new Round3EmptySAEchoStringUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsAsmxR3EmptySAEchoStringRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service import1
+     * operation EchoString
+     */
+    public void testR3GDEchoString() throws AxisFault {
+        url = "http://mssoapinterop.org/asmx/wsdl/import1.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDImport1EchoStringUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsAsmxGDImport1StringRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service import2
+     * operation EchoStruct
+     */
+    public void testR3GDEchoStruct() throws AxisFault {
+        url = "http://mssoapinterop.org/asmx/wsdl/import2.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDImport2EchoStructUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsAsmxGDImport2StructRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service import3
+     * operation EchoStruct
+     */
+    public void testR3GDI3EchoStruct() throws AxisFault {
+        url = "http://mssoapinterop.org/asmx/wsdl/import3.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDImport2EchoStructUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsAsmxGDImport3StructRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service import3
+     * operation EchoStructArray
+     */
+    public void testR3GDI3EchoStructArray() throws AxisFault {
+        url = "http://mssoapinterop.org/asmx/wsdl/import3.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDImport3StructArrayUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsAsmxGDImport3StructArrayRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service rpcencoded
+     * operation EchoString
+     */
+    public void testR3GDI3EchoString() throws AxisFault {
+        url = "http://mssoapinterop.org/asmx/wsdl/WSDLInteropTestRpcEncService.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDRpcStringUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsAsmxGDRpcStringRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service rpcencoded
+     * operation EchoStringArray
+     */
+    public void testR3GDI3EchoStringArray() throws AxisFault {
+        url = "http://mssoapinterop.org/asmx/wsdl/WSDLInteropTestRpcEncService.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDRpcStringArrayUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsAsmxGDRpcStringArrayRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service Rpcencoded
+     * operation EchoStruct
+     */
+    public void testR3GDRpcEchoStruct() throws AxisFault {
+        url = "http://mssoapinterop.org/asmx/wsdl/WSDLInteropTestRpcEncService.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDRpcStructUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsAsmxGDRpcStructRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service Rpcencoded
+     * operation EchoVoid
+     */
+    public void testR3GDRpcEchoVoid() throws AxisFault {
+        url = "http://mssoapinterop.org/asmx/wsdl/WSDLInteropTestRpcEncService.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDRpcVoidUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsAsmxGDRpcVoidRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+
+    /**
+     * Round 3
+     * Group E
+     * Service List
+     * operation echoLinkedList
+     */
+    public void testR3GEEchoList() throws AxisFault {
+        url = "http://mssoapinterop.org/asmx/wsdl/WSDLInteropTestListService.asmx";
+        soapAction = "";
+
+        util = new GEListUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsAsmxGEListRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group F
+     * Service Headers
+     * operation echoString
+     */
+    public void testR3GFEchoString() throws AxisFault {
+        url = "http://mssoapinterop.org/asmx/wsdl/InteropTestHeaders.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GFHeaderTestUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "GFHeaderTestRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+
+//    private static boolean compare(SOAPEnvelope retEnv, String filePath) throws AxisFault {
+//        boolean ok = false;
+//        try {
+//            if (retEnv != null) {
+//                SOAPBody body = retEnv.getBody();
+//                if (!body.hasFault()) {
+//                    InputStream stream = MsAsmxRound3InteropTest.class.getClassLoader().getResourceAsStream( filePath);
+//                    //OMElement firstChild = (OMElement) body.getFirstElement();
+//                    XMLStreamReader parser = null;
+//                    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);
+//        }
+//        return ok;
+//    }
+}

Added: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round3/MsStkv3Round3InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round3/MsStkv3Round3InteropTest.java?rev=278936&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round3/MsStkv3Round3InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round3/MsStkv3Round3InteropTest.java Tue Sep  6 00:28:01 2005
@@ -0,0 +1,272 @@
+package org.apache.axis2.interopt.whitmesa.round3;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.interopt.whitemesa.round3.SunRound3Client;
+import org.apache.axis2.interopt.whitemesa.round3.util.*;
+import org.apache.axis2.interopt.whitemesa.WhiteMesaIneterop;
+import org.apache.axis2.soap.SOAPEnvelope;
+
+/*
+* 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 MsStkv3Round3InteropTest
+ * To test interoperability in Axis2 Clients Vs MS STK v3.0 Server, Round 3
+ *
+ */
+
+public class MsStkv3Round3InteropTest extends WhiteMesaIneterop {
+
+    SunRound3Client client = null;
+    SOAPEnvelope retEnv = null;
+    boolean success = false;
+    String url = "";
+    String soapAction = "";
+    String resFilePath = "interopt/whitemesa/round3/";
+    String tempPath = "";
+    SunRound3ClientUtil util = null;
+    private boolean result = false;
+
+    public void setUp() {
+        client = new SunRound3Client();
+    }
+
+    /**
+     * Round 3
+     * Group EmptySA
+     * operation EchoString
+     * This test fails!!!
+     */
+    public void testR3EsaEchoString() throws AxisFault {
+
+        url = "http://mssoapinterop.org/stkV3/wsdl/EmptySA.wsdl";
+        soapAction = "";
+
+        util = new Round3EmptySAEchoStringUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsStkv3R3EsaEchoStringRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service import1
+     * operation EchoString
+     */
+    public void testR3GDEchoString() throws AxisFault {
+        url = "http://mssoapinterop.org/stkv3/wsdl/import1.wsdl";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDImport1EchoStringUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsStkv3GDImport1StringRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service import2
+     * operation EchoStruct
+     */
+    public void testR3GDEchoStruct() throws AxisFault {
+        url = "http://mssoapinterop.org/stkV3/wsdl/import2.wsdl";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDImport2EchoStructUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsStkv3GDImport2StructRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service import3
+     * operation EchoStruct
+     */
+    public void testR3GDI3EchoStruct() throws AxisFault {
+        url = "http://mssoapinterop.org/stkV3/wsdl/import3.wsdl";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDImport2EchoStructUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsStkv3GDImport3StructRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service import3
+     * operation EchoStructArray
+     */
+    public void testR3GDI3EchoStructArray() throws AxisFault {
+        url = "http://mssoapinterop.org/stkV3/wsdl/import3.wsdl";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDImport3StructArrayUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsStkv3GDImport3StructArrayRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service rpcencoded
+     * operation EchoString
+     */
+    public void testR3GDI3EchoString() throws AxisFault {
+        url = "http://mssoapinterop.org/stkv3/wsdl/interopTestRpcEnc.wsdl";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDRpcStringUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsStkv3GDRpcStringRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service rpcencoded
+     * operation EchoStringArray
+     */
+    //commented due to a problem of XMLComparator
+//    public void testR3GDI3EchoStringArray() throws AxisFault {
+//        url = "http://mssoapinterop.org/stkv3/wsdl/interopTestRpcEnc.wsdl";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GDRpcStringArrayUtil();
+//        retEnv = client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "MsStkv3GDRpcStringArrayRes.xml";
+//        result = compare(retEnv, tempPath);
+//        assertTrue(result);
+//    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service Rpcencoded
+     * operation EchoStruct
+     */
+    public void testR3GDRpcEchoStruct() throws AxisFault {
+        url = "http://mssoapinterop.org/stkv3/wsdl/interopTestRpcEnc.wsdl";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDRpcStructUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsStkv3GDRpcStructRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service Rpcencoded
+     * operation EchoVoid
+     */
+    public void testR3GDRpcEchoVoid() throws AxisFault {
+        url = "http://mssoapinterop.org/stkv3/wsdl/interopTestRpcEnc.wsdl";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDRpcVoidUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsStkv3GDRpcVoidRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group E
+     * Service Rpcencoded
+     * operation EchoString
+     */
+    public void testR3GERpcEchoString() throws AxisFault {
+        url = "http://mssoapinterop.org/stkv3/wsdl/interopTestRpcEnc.wsdl";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDRpcStringUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsStkv3GERpcStringRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+
+    /**
+     * Round 3
+     * Group E
+     * Service List
+     * operation echoLinkedList
+     */
+    public void testR3GEEchoList() throws AxisFault {
+        url = "http://mssoapinterop.org/stkv3/wsdl/interopTestList.wsdl";
+        soapAction = "";
+
+        util = new GEListUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "MsStkv3GEListRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+
+//    private static boolean compare(SOAPEnvelope retEnv, String filePath) throws AxisFault {
+//        boolean ok = false;
+//        try {
+//            if (retEnv != null) {
+//                SOAPBody body = retEnv.getBody();
+//                if (!body.hasFault()) {
+//                    InputStream stream = MsStkv3Round3InteropTest.class.getClassLoader().getResourceAsStream( filePath);
+//                    OMElement firstChild = (OMElement) body.getFirstElement();
+//                    XMLStreamReader parser = null;
+//                    parser = XMLInputFactory.newInstance().createXMLStreamReader(stream);
+//                    OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser, null);
+//                    SOAPEnvelope resEnv = (SOAPEnvelope) builder.getDocumentElement();
+//                    OMElement refNode = (OMElement) resEnv.getBody().getFirstElement();
+//                    XMLComparator comparator = new XMLComparator();
+//                    ok = comparator.compare(firstChild, refNode);
+//                } else
+//                    return false;
+//            } else
+//                return false;
+//
+//        } catch (Exception e) {
+//            throw new AxisFault(e);
+//        }
+//        return ok;
+//    }
+}

Added: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round3/SunRound3InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round3/SunRound3InteropTest.java?rev=278936&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round3/SunRound3InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round3/SunRound3InteropTest.java Tue Sep  6 00:28:01 2005
@@ -0,0 +1,341 @@
+package org.apache.axis2.interopt.whitmesa.round3;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.interopt.whitemesa.round3.SunRound3Client;
+import org.apache.axis2.interopt.whitemesa.round3.util.*;
+import org.apache.axis2.interopt.whitemesa.WhiteMesaIneterop;
+import org.apache.axis2.soap.SOAPEnvelope;
+
+/*
+* 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 SunRound3InteropTest
+ * To test interoperability in Axis2 Clients Vs ASP NET Server, Round 3
+ *
+ */
+
+public class
+        SunRound3InteropTest extends WhiteMesaIneterop {
+
+    SunRound3Client client = null;
+    SOAPEnvelope retEnv = null;
+    boolean success = false;
+    String url = "";
+    String soapAction = "";
+    String resFilePath = "interopt/whitemesa/round3/";
+    String tempPath = "";
+    SunRound3ClientUtil util = null;
+    private boolean result = false;
+
+    public void setUp() {
+        client = new SunRound3Client();
+    }
+
+    /**
+     * Round 3
+     * Group EmptySA
+     * operation EchoString
+     * todo This test fails!!!
+     */
+//    public void testR3EsaEchoString() throws AxisFault {
+//
+//        url = "http://www.whitemesa.net:80/interop/r3/emptySA";
+//        soapAction = "";
+//
+//        util = new Round3EmptySAEchoStringUtil();
+//        retEnv = client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "Round3EmptySAEchoStringRes.xml";
+//        result = compare(retEnv, tempPath);
+//        assertTrue(result);
+//
+//    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service import1
+     * operation EchoString
+     */
+    public void testR3GDEchoString() throws AxisFault {
+        url = "http://soapinterop.java.sun.com:80/round3/groupd/import1";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDImport1EchoStringUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "sunGDImport1StringRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service import2
+     * operation EchoStruct
+     */
+    public void testR3GDEchoStruct() throws AxisFault {
+        url = "http://soapinterop.java.sun.com:80/round3/groupd/import2";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDImport2EchoStructUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "sunGDImport2StructRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service import3
+     * operation EchoStruct
+     */
+    public void testR3GDI3EchoStruct() throws AxisFault {
+        url = "http://soapinterop.java.sun.com:80/round3/groupd/import3";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDImport2EchoStructUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "sunGDImport3StructRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service import3
+     * operation EchoStructArray
+     */
+    public void testR3GDI3EchoStructArray() throws AxisFault {
+        url = "http://soapinterop.java.sun.com:80/round3/groupd/import3";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDImport3StructArrayUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "sunGDImport3StructArrayRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service rpcencoded
+     * operation EchoString
+     */
+    public void testR3GDI3EchoString() throws AxisFault {
+        url = "http://soapinterop.java.sun.com:80/round3/groupd/rpcencoded";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDRpcStringUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "sunGDRpcStringRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service rpcencoded
+     * operation EchoStringArray
+     */
+    public void testR3GDI3EchoStringArray() throws AxisFault {
+        url = "http://soapinterop.java.sun.com:80/round3/groupd/rpcencoded";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDRpcStringArrayUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "sunGDRpcStringArrayRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service Rpcencoded
+     * operation EchoStruct
+     */
+    public void testR3GDRpcEchoStruct() throws AxisFault {
+        url = "http://soapinterop.java.sun.com:80/round3/groupd/rpcencoded";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDRpcStructUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "sunGDRpcStructRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group D
+     * Service Rpcencoded
+     * operation EchoVoid
+     */
+    public void testR3GDRpcEchoVoid() throws AxisFault {
+        url = "http://soapinterop.java.sun.com:80/round3/groupd/rpcencoded";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDRpcVoidUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "sunGDRpcVoidRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group E
+     * Service Rpcencoded
+     * operation EchoString
+     */
+    public void testR3GERpcEchoString() throws AxisFault {
+        url = "http://soapinterop.java.sun.com:80/round3/groupe/rpcencoded";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDRpcStringUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SunGERpcStringRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group E
+     * Service Rpcencoded
+     * operation EchoStringArray
+     */
+    public void testR3GERpcEchoStringArray() throws AxisFault {
+        url = "http://soapinterop.java.sun.com:80/round3/groupe/rpcencoded";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDRpcStringArrayUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SunGERpcStringArrayRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group E
+     * Service Rpcencoded
+     * operation EchoStruct
+     */
+    public void testR3GERpcEchoStruct() throws AxisFault {
+        url = "http://soapinterop.java.sun.com:80/round3/groupe/rpcencoded";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GDRpcStructUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SunGERpcStructRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+
+    /**
+     * Round 3
+     * Group E
+     * Service Rpcencoded
+     * operation EchoVoid
+     */
+    public void testR3GERpcEchoVoid() throws AxisFault {
+        url = "http://soapinterop.java.sun.com:80/round3/groupe/rpcencoded";
+                soapAction = "http://soapinterop.org/";
+
+        util = new GDRpcVoidUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SunGERpcVoidRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group E
+     * Service List
+     * operation echoLinkedList
+     */
+    public void testR3GEEchoList() throws AxisFault {
+        url = "http://soapinterop.java.sun.com:80/round3/groupe/list";
+//        url = "http://localhost:8000/round3/groupe/list";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GEListUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "SunGEListRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    /**
+     * Round 3
+     * Group F
+     * Service Headers
+     * operation echoString
+     */
+    public void testR3GFEchoString() throws AxisFault {
+        url = "http://soapinterop.java.sun.com:80/round3/groupf/headers";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GFHeaderTestUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "GFHeaderTestRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+
+//    private static boolean compare(SOAPEnvelope retEnv, String filePath) throws AxisFault {
+//        boolean ok = false;
+//        try {
+//            if (retEnv != null) {
+//                SOAPBody body = retEnv.getBody();
+//                if (!body.hasFault()) {
+//                    InputStream stream = SunRound3InteropTest.class.getClassLoader().getResourceAsStream( filePath);
+//                    OMElement firstChild = (OMElement) body.getFirstElement();
+//                    XMLStreamReader parser = null;
+//                    parser = XMLInputFactory.newInstance().createXMLStreamReader(stream);
+//                    OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser, null);
+//                    SOAPEnvelope resEnv = (SOAPEnvelope) builder.getDocumentElement();
+//                    OMElement refNode = (OMElement) resEnv.getBody().getFirstElement();
+//                    XMLComparator comparator = new XMLComparator();
+//                    ok = comparator.compare(firstChild, refNode);
+//                } else
+//                    return false;
+//            } else
+//                return false;
+//
+//        } catch (Exception e) {
+//            throw new AxisFault(e);
+//        }
+//        return ok;
+//    }
+}



Mime
View raw message