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 [64/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/XSRound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/XSRound2InteropTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/XSRound2InteropTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/XSRound2InteropTest.java Thu Sep 15 11:52:11 2005
@@ -1,309 +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;
-//    }
-}
-
+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;
+//    }
+}
+

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

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

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

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

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

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

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