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 di...@apache.org on 2005/09/15 21:07:03 UTC

svn commit: r289289 [59/134] - in /webservices/axis2/trunk/java: ./ etc/ modules/addressing/ modules/addressing/src/META-INF/ modules/addressing/src/org/apache/axis2/handlers/addressing/ modules/addressing/test-resources/ modules/addressing/test/org/ap...

Modified: 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=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/SPJRound2InteropTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/SPJRound2InteropTest.java Thu Sep 15 11:52:11 2005
@@ -1,390 +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;
-//    }
-}
-
+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;
+//    }
+}
+

Propchange: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/SPJRound2InteropTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/SSRound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/SSRound2InteropTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/SSRound2InteropTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/SSRound2InteropTest.java Thu Sep 15 11:52:11 2005
@@ -1,313 +1,313 @@
-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 SilverStream Server, Round2
- * WSDL:-
- * "base"  	http://www.xmethods.net/soapbuilders/silverstream/InteropTest.wsdl
- */
-//todo all tests failed, connection failure
-
-public class SSRound2InteropTest 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://explorer.ne.mediaone.net/app/interop/interop";
-//        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://explorer.ne.mediaone.net/app/interop/interop";
-//        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://explorer.ne.mediaone.net/app/interop/interop";
-//        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://explorer.ne.mediaone.net/app/interop/interop";
-//        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://explorer.ne.mediaone.net/app/interop/interop";
-//        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://explorer.ne.mediaone.net/app/interop/interop";
-//        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://explorer.ne.mediaone.net/app/interop/interop";
-//        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://explorer.ne.mediaone.net/app/interop/interop";
-//        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://explorer.ne.mediaone.net/app/interop/interop";
-//        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://explorer.ne.mediaone.net/app/interop/interop";
-//        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://explorer.ne.mediaone.net/app/interop/interop";
-//        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://explorer.ne.mediaone.net/app/interop/interop";
-//        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://explorer.ne.mediaone.net/app/interop/interop";
-//        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://explorer.ne.mediaone.net/app/interop/interop";
-//        soapAction = "http://soapinterop.org/";
-//
-//        util = new Round2EchoBooleanClientUtil();
-//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-//        tempPath = resFilePath + "sunBaseBooleanRes.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 = SSRound2InteropTest.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;
-//    }
-}
-
+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 SilverStream Server, Round2
+ * WSDL:-
+ * "base"  	http://www.xmethods.net/soapbuilders/silverstream/InteropTest.wsdl
+ */
+//todo all tests failed, connection failure
+
+public class SSRound2InteropTest 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://explorer.ne.mediaone.net/app/interop/interop";
+//        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://explorer.ne.mediaone.net/app/interop/interop";
+//        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://explorer.ne.mediaone.net/app/interop/interop";
+//        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://explorer.ne.mediaone.net/app/interop/interop";
+//        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://explorer.ne.mediaone.net/app/interop/interop";
+//        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://explorer.ne.mediaone.net/app/interop/interop";
+//        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://explorer.ne.mediaone.net/app/interop/interop";
+//        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://explorer.ne.mediaone.net/app/interop/interop";
+//        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://explorer.ne.mediaone.net/app/interop/interop";
+//        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://explorer.ne.mediaone.net/app/interop/interop";
+//        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://explorer.ne.mediaone.net/app/interop/interop";
+//        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://explorer.ne.mediaone.net/app/interop/interop";
+//        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://explorer.ne.mediaone.net/app/interop/interop";
+//        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://explorer.ne.mediaone.net/app/interop/interop";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoBooleanClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseBooleanRes.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 = SSRound2InteropTest.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;
+//    }
+}
+

Propchange: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/SSRound2InteropTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/Soap12/ASPNetRound2Soap12Test.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/Soap12/ASPNetRound2Soap12Test.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/Soap12/ASPNetRound2Soap12Test.java (original)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/Soap12/ASPNetRound2Soap12Test.java Thu Sep 15 11:52:11 2005
@@ -1,406 +1,406 @@
-package org.apache.axis2.interopt.whitmesa.round2.Soap12;
-
-import org.apache.axis2.soap.SOAPEnvelope;
-import org.apache.axis2.interopt.whitemesa.round2.util.*;
-import org.apache.axis2.interopt.whitemesa.round2.util.soap12.*;
-import org.apache.axis2.interopt.whitemesa.round2.SunRound2Client;
-import org.apache.axis2.interopt.whitemesa.WhiteMesaIneterop;
-import org.apache.axis2.AxisFault;
-import java.io.*;
-
-//import org.apache.axis2.interopt.whitemesa.round2.util.soap12
-
-/*
-* 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 sun Server, Round2
- * WSDLs:-
- * "base"     http://soapinterop.java.sun.com/round2/base?WSDL
- * "Group B"  http://soapinterop.java.sun.com/round2/groupb?WSDL
- * "Group C"  http://soapinterop.java.sun.com/round2/groupc?WSDL
- */
-
-public class ASPNetRound2Soap12Test extends WhiteMesaIneterop {
-
-    SOAPEnvelope retEnv = null;
-    boolean success = false;
-    File file = null;
-    String url = "";
-    String soapAction = "";
-    String resFilePath = "interopt/whitemesa/round2/SOAP12/";
-    String tempPath = "";
-    SunRound2ClientUtil util;
-    private boolean results = false;
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoString
-     */
-    public void testR2BaseEchoString() throws AxisFault {
-        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2Soap12StringUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2_S12_StringRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoStringArray
-     */
-    public void testR2BaseEchoStringArray() throws AxisFault {
-        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2Soap12StringArrayUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2_S12_StringArrayRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoInteger
-     */
-    public void testR2BaseEchoInteger() throws AxisFault {
-        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2Soap12IntegerUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2_S12_IntegerRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoIntegerArray
-     */
-    public void testR2BaseEchoIntegerArray() throws AxisFault  {
-        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2SOAP12EchoIntegerArrayclientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2_S12_IntegerArrayRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoFloat
-     */
-    public void testR2BaseEchoFloat()  throws AxisFault {
-        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2Soap12EchoFloatClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2_S12_FloatRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoFloatArray
-     */
-    public void testR2BaseEchoFloatArray()  throws AxisFault {
-        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2Soap12EchoFloatArrayClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2_S12_FloatArrayRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoStruct
-     */
-    public void testRBaseEchoStruct() throws AxisFault  {
-        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2Soap12EchoStructClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2_S12_StructRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoStructArray
-     */
-    public void testR2BaseEchoStructArray() throws AxisFault  {
-        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2Soap12EchoStructArrayClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2_S12_StructArrayRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoVoid
-     */
-    public void testR2BaseEchoVoid() throws AxisFault  {
-        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2Soap12EchoVoidClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2_S12_VoidRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoBase64
-     */
-    public void testR2BaseEchoBase64() throws AxisFault  {
-        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2Soap12EchoBase64ClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2_S12_Base64Res.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoBase64
-     */
-    public void testR2BaseEchoDate() throws AxisFault  {
-        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2Soap12EchoDateClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2_S12_DateRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoHexBinary
-     */
-    public void testR2BaseEchoHexBinary() throws AxisFault  {
-        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2Soap12EchoHexBinaryUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2_S12_HexBinaryRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoDecimal
-     */
-    public void testR2BaseEchoDecimal() throws AxisFault  {
-        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2Soap12EchoDecimalClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2_S12_DecimalRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoBoolean
-     */
-    public void testR2BaseEchoBoolean() throws AxisFault  {
-        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2Soap12EchoBooleanClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2_S12_BooleanRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group B
-     * operation echoStructAsSimpleTypes
-     */
-    public void testR2GBEchoStructAsSimpleTypes() throws AxisFault {
-        url = "http://www.mssoapinterop.org/asmx/simpleB.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupbSoap12EchoStructAsSimpleTypesUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2Gb_S12_StructAsSimpleTypesRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group B
-     * operation echoSimpleTypesAsStruct
-     */
-    public void testR2GBEchoSimpleTypesAsStruct() throws AxisFault {
-        url = "http://www.mssoapinterop.org/asmx/simpleB.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupbSoap12EchoSimpleTypesAsStructUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2Gb_S12_SimpleTypesAsStructRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group B
-     * operation echo2DStringArray
-     */
-    public void testR2GBEcho2DStringArray() throws AxisFault {
-        url = "http://www.mssoapinterop.org/asmx/simpleB.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupbSoap12Echo2DStringArrayUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2Gb_S12_2DStringArrayRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group B
-     * operation echoNestedStruct
-     */
-    public void testR2GBEchoNestedStruct() throws AxisFault {
-        url = "http://www.mssoapinterop.org/asmx/simpleB.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupbSoap12EchoNestedStructUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2Gb_S12_NestedStructRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group B
-     * operation echoNestedArray
-     */
-    public void testR2GBEchoNestedArray() throws AxisFault {
-        url = "http://www.mssoapinterop.org/asmx/simpleB.asmx";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupbSoap12EchoNestedArrayUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ASPNetR2Gb_S12_NestedArrayRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group C
-     * operation echoVoid
-     */
-    //todo THis test failed, only the body returned without header
-//    public void testR2GCEchoVoid() throws AxisFault {
-//        url = "http://www.mssoapinterop.org/asmx/header.asmx";
-//        soapAction = "http://soapinterop.org/";
-//
-//        util = new GroupcSoap12VoidUtil();
-//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-//        tempPath = resFilePath + "GroupcVoidRes.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 = GSoapRound2Soap12InteropTest.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;
-//    }
-}
-
+package org.apache.axis2.interopt.whitmesa.round2.Soap12;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.interopt.whitemesa.round2.util.*;
+import org.apache.axis2.interopt.whitemesa.round2.util.soap12.*;
+import org.apache.axis2.interopt.whitemesa.round2.SunRound2Client;
+import org.apache.axis2.interopt.whitemesa.WhiteMesaIneterop;
+import org.apache.axis2.AxisFault;
+import java.io.*;
+
+//import org.apache.axis2.interopt.whitemesa.round2.util.soap12
+
+/*
+* 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 sun Server, Round2
+ * WSDLs:-
+ * "base"     http://soapinterop.java.sun.com/round2/base?WSDL
+ * "Group B"  http://soapinterop.java.sun.com/round2/groupb?WSDL
+ * "Group C"  http://soapinterop.java.sun.com/round2/groupc?WSDL
+ */
+
+public class ASPNetRound2Soap12Test extends WhiteMesaIneterop {
+
+    SOAPEnvelope retEnv = null;
+    boolean success = false;
+    File file = null;
+    String url = "";
+    String soapAction = "";
+    String resFilePath = "interopt/whitemesa/round2/SOAP12/";
+    String tempPath = "";
+    SunRound2ClientUtil util;
+    private boolean results = false;
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoString
+     */
+    public void testR2BaseEchoString() throws AxisFault {
+        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2Soap12StringUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2_S12_StringRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStringArray
+     */
+    public void testR2BaseEchoStringArray() throws AxisFault {
+        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2Soap12StringArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2_S12_StringArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoInteger
+     */
+    public void testR2BaseEchoInteger() throws AxisFault {
+        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2Soap12IntegerUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2_S12_IntegerRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoIntegerArray
+     */
+    public void testR2BaseEchoIntegerArray() throws AxisFault  {
+        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2SOAP12EchoIntegerArrayclientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2_S12_IntegerArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoFloat
+     */
+    public void testR2BaseEchoFloat()  throws AxisFault {
+        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2Soap12EchoFloatClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2_S12_FloatRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoFloatArray
+     */
+    public void testR2BaseEchoFloatArray()  throws AxisFault {
+        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2Soap12EchoFloatArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2_S12_FloatArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStruct
+     */
+    public void testRBaseEchoStruct() throws AxisFault  {
+        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2Soap12EchoStructClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2_S12_StructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStructArray
+     */
+    public void testR2BaseEchoStructArray() throws AxisFault  {
+        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2Soap12EchoStructArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2_S12_StructArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoVoid
+     */
+    public void testR2BaseEchoVoid() throws AxisFault  {
+        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2Soap12EchoVoidClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2_S12_VoidRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBase64
+     */
+    public void testR2BaseEchoBase64() throws AxisFault  {
+        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2Soap12EchoBase64ClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2_S12_Base64Res.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBase64
+     */
+    public void testR2BaseEchoDate() throws AxisFault  {
+        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2Soap12EchoDateClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2_S12_DateRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoHexBinary
+     */
+    public void testR2BaseEchoHexBinary() throws AxisFault  {
+        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2Soap12EchoHexBinaryUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2_S12_HexBinaryRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoDecimal
+     */
+    public void testR2BaseEchoDecimal() throws AxisFault  {
+        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2Soap12EchoDecimalClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2_S12_DecimalRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBoolean
+     */
+    public void testR2BaseEchoBoolean() throws AxisFault  {
+        url = "http://www.mssoapinterop.org/asmx/simple.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2Soap12EchoBooleanClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2_S12_BooleanRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoStructAsSimpleTypes
+     */
+    public void testR2GBEchoStructAsSimpleTypes() throws AxisFault {
+        url = "http://www.mssoapinterop.org/asmx/simpleB.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbSoap12EchoStructAsSimpleTypesUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2Gb_S12_StructAsSimpleTypesRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoSimpleTypesAsStruct
+     */
+    public void testR2GBEchoSimpleTypesAsStruct() throws AxisFault {
+        url = "http://www.mssoapinterop.org/asmx/simpleB.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbSoap12EchoSimpleTypesAsStructUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2Gb_S12_SimpleTypesAsStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echo2DStringArray
+     */
+    public void testR2GBEcho2DStringArray() throws AxisFault {
+        url = "http://www.mssoapinterop.org/asmx/simpleB.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbSoap12Echo2DStringArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2Gb_S12_2DStringArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoNestedStruct
+     */
+    public void testR2GBEchoNestedStruct() throws AxisFault {
+        url = "http://www.mssoapinterop.org/asmx/simpleB.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbSoap12EchoNestedStructUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2Gb_S12_NestedStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoNestedArray
+     */
+    public void testR2GBEchoNestedArray() throws AxisFault {
+        url = "http://www.mssoapinterop.org/asmx/simpleB.asmx";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbSoap12EchoNestedArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ASPNetR2Gb_S12_NestedArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoVoid
+     */
+    //todo THis test failed, only the body returned without header
+//    public void testR2GCEchoVoid() throws AxisFault {
+//        url = "http://www.mssoapinterop.org/asmx/header.asmx";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new GroupcSoap12VoidUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "GroupcVoidRes.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 = GSoapRound2Soap12InteropTest.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;
+//    }
+}
+

Propchange: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/Soap12/ASPNetRound2Soap12Test.java
------------------------------------------------------------------------------
    svn:eol-style = native