You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by de...@apache.org on 2005/09/06 09:33:44 UTC
svn commit: r278936 [9/16] - in
/webservices/axis2/trunk/java/modules/integration:
itest-resources/interopt/whitemesa/round2/
itest-resources/interopt/whitemesa/round3/
itest/org/apache/axis2/interopt/whitmesa/round1/
itest/org/apache/axis2/interopt/wh...
Added: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/FrtrRound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/FrtrRound2InteropTest.java?rev=278936&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/FrtrRound2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/FrtrRound2InteropTest.java Tue Sep 6 00:28:01 2005
@@ -0,0 +1,285 @@
+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 FrtrRound2InteropTest
+ * To test Interoperability in Axis2 clients vs Frontier Server, Round 2
+ * todo - all test failled!!!
+ * WSDLs:-
+ * "base" http://www.whitemesa.com/interop/InteropTest.wsdl
+ */
+
+public class FrtrRound2InteropTest 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://www.soapware.org/xmethodsInterop";
+// 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://www.soapware.org/xmethodsInterop";
+// 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://www.soapware.org/xmethodsInterop";
+// 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://www.soapware.org/xmethodsInterop";
+// 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://www.soapware.org/xmethodsInterop";
+// 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://www.soapware.org/xmethodsInterop";
+// 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://www.soapware.org/xmethodsInterop";
+// 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://www.soapware.org/xmethodsInterop";
+// 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://www.soapware.org/xmethodsInterop";
+// 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://www.soapware.org/xmethodsInterop";
+// 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://www.soapware.org/xmethodsInterop";
+// 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://www.soapware.org/xmethodsInterop";
+// 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://www.soapware.org/xmethodsInterop";
+// 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://www.soapware.org/xmethodsInterop";
+// soapAction = "http://soapinterop.org/";
+//
+// util = new Round2EchoBooleanClientUtil();
+// retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+// tempPath = resFilePath + "sunBaseBooleanRes.xml";
+// results = compare(retEnv, tempPath);
+// assertTrue(results);
+// }
+
+}
+
Added: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/GSRound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/GSRound2InteropTest.java?rev=278936&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/GSRound2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/GSRound2InteropTest.java Tue Sep 6 00:28:01 2005
@@ -0,0 +1,412 @@
+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 GSRound2InteropTest
+ * To test Interoperability Axis2 clients vs gSOAP Server, Round2
+ * WSDLs:-
+ * "base" http://www.cs.fsu.edu/~engelen/interop2.wsdl
+ * "Group B" http://www.cs.fsu.edu/~engelen/interop2B.wsdl
+ * "Group C" http://www.cs.fsu.edu/~engelen/interop2C.wsdl
+ */
+
+public class GSRound2InteropTest 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.cs.fsu.edu/~engelen/interop2.cgi";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoStringclientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "GSBaseStringRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoStringArray
+ */
+ public void testR2BaseEchoStringArray() throws AxisFault {
+ url = "http://www.cs.fsu.edu/~engelen/interop2.cgi";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoStringArrayClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "GSBaseStringArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoInteger
+ */
+ public void testR2BaseEchoInteger() throws AxisFault {
+ url = "http://www.cs.fsu.edu/~engelen/interop2.cgi";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoIntegerClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "GSBaseIntegerRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoIntegerArray
+ */
+ public void testR2BaseEchoIntegerArray() throws AxisFault {
+ url = "http://www.cs.fsu.edu/~engelen/interop2.cgi";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoIntegerArrayclientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "GSBaseIntegerArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoFloat
+ */
+ public void testR2BaseEchoFloat() throws AxisFault {
+ url = "http://www.cs.fsu.edu/~engelen/interop2.cgi";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoFloatClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "GSBaseFloatRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoFloatArray
+ */
+ public void testR2BaseEchoFloatArray() throws AxisFault {
+ url = "http://www.cs.fsu.edu/~engelen/interop2.cgi";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoFloatArrayClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "GSBaseFloatArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoStruct
+ */
+ //todo this test fails due to axis2 client error
+// public void testRBaseEchoStruct() throws AxisFault {
+// url = "http://www.cs.fsu.edu/~engelen/interop2.cgi";
+// soapAction = "http://soapinterop.org/";
+//
+// util = new Round2EchoStructClientUtil();
+// retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+// tempPath = resFilePath + "GSBaseStructRes.xml";
+// results = compare(retEnv, tempPath);
+// assertTrue(results);
+// }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoStructArray
+ */
+ public void testR2BaseEchoStructArray() throws AxisFault {
+ url = "http://www.cs.fsu.edu/~engelen/interop2.cgi";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoStructArrayClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "GSBaseStructArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoVoid
+ */
+ //todo this test fails due to axis2 client error
+// public void testR2BaseEchoVoid() throws AxisFault {
+// url = "http://www.cs.fsu.edu/~engelen/interop2.cgi";
+// soapAction = "http://soapinterop.org/";
+//
+// util = new Round2EchoVoidClientUtil();
+// retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+// tempPath = resFilePath + "GSBaseVoidRes.xml";
+// results = compare(retEnv, tempPath);
+// assertTrue(results);
+// }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoBase64
+ */
+ public void testR2BaseEchoBase64() throws AxisFault {
+ url = "http://www.cs.fsu.edu/~engelen/interop2.cgi";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoBase64ClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "GSBaseBase64Res.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoBase64
+ */
+ public void testR2BaseEchoDate() throws AxisFault {
+ url = "http://www.cs.fsu.edu/~engelen/interop2.cgi";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoDateClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "GSBaseDateRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoHexBinary
+ */
+ public void testR2BaseEchoHexBinary() throws AxisFault {
+ url = "http://www.cs.fsu.edu/~engelen/interop2.cgi";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoHexBinaryClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "GSBaseHexBinaryRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoDecimal
+ */
+ public void testR2BaseEchoDecimal() throws AxisFault {
+ url = "http://www.cs.fsu.edu/~engelen/interop2.cgi";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoDecimalClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "GSBaseDecimalRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoBoolean
+ */
+ public void testR2BaseEchoBoolean() throws AxisFault {
+ url = "http://www.cs.fsu.edu/~engelen/interop2.cgi";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoBooleanClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "GSBaseBooleanRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B
+ * operation echoStructAsSimpleTypes
+ */
+// //todo this test fails due to axis2 client error
+// public void testR2GBEchoStructAsSimpleTypes() throws AxisFault {
+// url = "http://www.cs.fsu.edu/~engelen/interop2B.cgi";
+// soapAction = "http://soapinterop.org/";
+//
+// util = new GroupbEchoStructAsSimpleTypesUtil();
+// retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+// tempPath = resFilePath + "GSGroupbStructAsSimpleTypesRes.xml";
+// results = compare(retEnv, tempPath);
+// assertTrue(results);
+// }
+
+ /**
+ * Round2
+ * Group B
+ * operation echoSimpleTypesAsStruct
+ */
+ //todo this test fails due to axis2 client error
+// public void testR2GBEchoSimpleTypesAsStruct() throws AxisFault {
+// url = "http://www.cs.fsu.edu/~engelen/interop2B.cgi";
+// soapAction = "http://soapinterop.org/";
+//
+// util = new GroupbEchoSimpleTypesAsStructUtil();
+// retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+// tempPath = resFilePath + "GSGroupbSimpletypesAsStructRes.xml";
+// results = compare(retEnv, tempPath);
+// assertTrue(results);
+// }
+
+ /**
+ * Round2
+ * Group B
+ * operation echo2DStringArray
+ */
+ public void testR2GBEcho2DStringArray() throws AxisFault {
+ url = "http://www.cs.fsu.edu/~engelen/interop2B.cgi";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbEcho2DStringArrayUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "GSGroupb2DStringArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B
+ * operation echoNestedStruct
+ */
+ //todo this test fails due to axis2 client error
+// public void testR2GBEchoNestedStruct() throws AxisFault {
+// url = "http://www.cs.fsu.edu/~engelen/interop2B.cgi";
+// soapAction = "http://soapinterop.org/";
+//
+// util = new GroupbEchoNestedStructUtil();
+// retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+// tempPath = resFilePath + "GSGroupbNestedStructRes.xml";
+// results = compare(retEnv, tempPath);
+// assertTrue(results);
+// }
+
+ /**
+ * Round2
+ * Group B
+ * operation echoNestedArray
+ */
+ //todo this test fails due to axis2 client error
+// public void testR2GBEchoNestedArray() throws AxisFault {
+// url = "http://www.cs.fsu.edu/~engelen/interop2B.cgi";
+// soapAction = "http://soapinterop.org/";
+//
+// util = new GroupbEchoNestedArrayUtil();
+// retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+// tempPath = resFilePath + "GSGroupbNestedArrayRes.xml";
+// results = compare(retEnv, tempPath);
+// assertTrue(results);
+// }
+
+
+ /**
+ * Round2
+ * Group C
+ * operation echoVoid
+ */
+// //todo this test fails due to axis2 client error
+// public void testR2GCEchoVoid() throws AxisFault {
+// url = "http://www.cs.fsu.edu/~engelen/interop2C.cgi";
+// soapAction = "http://soapinterop.org/";
+//
+// util = new GroupcVoidUtil();
+// retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+// tempPath = resFilePath + "GSGroupcVoidRes.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 = GSRound2InteropTest.class.getClassLoader().getResourceAsStream(filePath);
+//
+// XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(stream);
+// OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser, null);
+// SOAPEnvelope refEnv = (SOAPEnvelope) builder.getDocumentElement();
+// //OMElement refNode = (OMElement) resEnv.getBody().getFirstElement();
+// XMLComparator comparator = new XMLComparator();
+// ok = comparator.compare(retEnv, refEnv);
+// } else
+// return false;
+// } else
+// return false;
+//
+// } catch (Exception e) {
+// throw new AxisFault(e); //To change body of catch statement use File | Settings | File Templates.
+// }
+// return ok;
+// }
+}
+
Added: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/KSRoun2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/KSRoun2InteropTest.java?rev=278936&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/KSRoun2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/KSRoun2InteropTest.java Tue Sep 6 00:28:01 2005
@@ -0,0 +1,311 @@
+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 KSRoun2InteropTest
+ * To test Interoperability Axis2 clients vs kSOAP Server, Round2
+ * todo - All tests failed !!!
+ * WSDL:-
+ * "base" http://www.whitemesa.com/interop/kSOAP.wsdl
+ */
+
+public class KSRoun2InteropTest 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;
+
+ 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://kissen.cs.uni-dortmund.de:8080/ksoapinterop";
+// 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://kissen.cs.uni-dortmund.de:8080/ksoapinterop";
+// 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://kissen.cs.uni-dortmund.de:8080/ksoapinterop";
+// 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://kissen.cs.uni-dortmund.de:8080/ksoapinterop";
+// 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://kissen.cs.uni-dortmund.de:8080/ksoapinterop";
+// 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://kissen.cs.uni-dortmund.de:8080/ksoapinterop";
+// 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://kissen.cs.uni-dortmund.de:8080/ksoapinterop";
+// 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://kissen.cs.uni-dortmund.de:8080/ksoapinterop";
+// 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://kissen.cs.uni-dortmund.de:8080/ksoapinterop";
+// 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://kissen.cs.uni-dortmund.de:8080/ksoapinterop";
+// 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://kissen.cs.uni-dortmund.de:8080/ksoapinterop";
+// 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://kissen.cs.uni-dortmund.de:8080/ksoapinterop";
+// 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://kissen.cs.uni-dortmund.de:8080/ksoapinterop";
+// 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://kissen.cs.uni-dortmund.de:8080/ksoapinterop";
+// 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 = KSRoun2InteropTest.class.getClassLoader().getResourceAsStream(filePath);
+//
+// XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(stream);
+// OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser, null);
+// SOAPEnvelope refEnv = (SOAPEnvelope) builder.getDocumentElement();
+// //OMElement refNode = (OMElement) resEnv.getBody().getFirstElement();
+// XMLComparator comparator = new XMLComparator();
+// ok = comparator.compare(retEnv, refEnv);
+// } else
+// return false;
+// } else
+// return false;
+//
+// } catch (Exception e) {
+// throw new AxisFault(e); //To change body of catch statement use File | Settings | File Templates.
+// }
+// return ok;
+// }
+}
+
Added: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/MSRemRound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/MSRemRound2InteropTest.java?rev=278936&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/MSRemRound2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/MSRemRound2InteropTest.java Tue Sep 6 00:28:01 2005
@@ -0,0 +1,391 @@
+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 MSRemRound2InteropTest
+ * To test Interoperability Axis2 clients vs MS NET Remoting Server, Round2
+ * WSDLs:-
+ * "base" http://www.mssoapinterop.org/remoting/ServiceA.soap?wsdl
+ * "Group B" http://www.mssoapinterop.org/remoting/ServiceB.soap?wsdl
+ */
+
+public class MSRemRound2InteropTest 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://www.mssoapinterop.org:80/Remoting/ServiceA.soap";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoStringclientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSRemBaseStringRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoStringArray
+ */
+ public void testR2BaseEchoStringArray() throws AxisFault {
+ url = "http://www.mssoapinterop.org:80/Remoting/ServiceA.soap";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoStringArrayClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSRemBaseStringArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoInteger
+ */
+ public void testR2BaseEchoInteger() throws AxisFault {
+ url = "http://www.mssoapinterop.org:80/Remoting/ServiceA.soap";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoIntegerClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSRemBaseIntegerRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoIntegerArray
+ */
+ public void testR2BaseEchoIntegerArray() throws AxisFault {
+ url = "http://www.mssoapinterop.org:80/Remoting/ServiceA.soap";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoIntegerArrayclientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSRemBaseIntegerArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoFloat
+ */
+ public void testR2BaseEchoFloat() throws AxisFault {
+ url = "http://www.mssoapinterop.org:80/Remoting/ServiceA.soap";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoFloatClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSRemBaseFloatRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoFloatArray
+ */
+ public void testR2BaseEchoFloatArray() throws AxisFault {
+ url = "http://www.mssoapinterop.org:80/Remoting/ServiceA.soap";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoFloatArrayClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSRemBaseFloatArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoStruct
+ */
+ //todo test failed!!!
+// public void testRBaseEchoStruct() throws AxisFault {
+// url = "http://www.mssoapinterop.org:80/Remoting/ServiceA.soap";
+// soapAction = "";
+//
+// util = new Round2EchoStructClientUtil();
+// retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+// tempPath = resFilePath + "MSRemBaseStructRes.xml";
+// results = compare(retEnv, tempPath);
+// assertTrue(results);
+// }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoStructArray
+ */
+ public void testR2BaseEchoStructArray() throws AxisFault {
+ url = "http://www.mssoapinterop.org:80/Remoting/ServiceA.soap";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoStructArrayClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSRemBaseStructArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoVoid
+ */
+ public void testR2BaseEchoVoid() throws AxisFault {
+ url = "http://www.mssoapinterop.org:80/Remoting/ServiceA.soap";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoVoidClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSRemBaseVoidRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoBase64
+ */
+ public void testR2BaseEchoBase64() throws AxisFault {
+ url = "http://www.mssoapinterop.org:80/Remoting/ServiceA.soap";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoBase64ClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSRemBaseBase64Res.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoBase64
+ */
+ public void testR2BaseEchoDate() throws AxisFault {
+ url = "http://www.mssoapinterop.org:80/Remoting/ServiceA.soap";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoDateClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSRemBaseDateRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoHexBinary
+ */
+ //todo test failed!!!
+// public void testR2BaseEchoHexBinary() throws AxisFault {
+// url = "http://www.mssoapinterop.org:80/Remoting/ServiceA.soap";
+// soapAction = "http://soapinterop.org/";
+//
+// util = new Round2EchoHexBinaryClientUtil();
+// retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+// tempPath = resFilePath + "MSRemBaseHexBinaryRes.xml";
+// results = compare(retEnv, tempPath);
+// assertTrue(results);
+// }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoDecimal
+ */
+ public void testR2BaseEchoDecimal() throws AxisFault {
+ url = "http://www.mssoapinterop.org:80/Remoting/ServiceA.soap";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoDecimalClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSRemBaseDecimalRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoBoolean
+ */
+ public void testR2BaseEchoBoolean() throws AxisFault {
+ url = "http://www.mssoapinterop.org:80/Remoting/ServiceA.soap";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoBooleanClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSRemBaseBooleanRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B
+ * operation echoStructAsSimpleTypes
+ */
+ public void testR2GBEchoStructAsSimpleTypes() throws AxisFault {
+ url = "http://www.mssoapinterop.org:80/Remoting/ServiceB.soap";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbEchoStructAsSimpleTypesUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSRemGroupbStructAsSimpleTypesRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B
+ * operation echoSimpleTypesAsStruct
+ */
+ public void testR2GBEchoSimpleTypesAsStruct() throws AxisFault {
+ url = "http://www.mssoapinterop.org:80/Remoting/ServiceB.soap";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbEchoSimpleTypesAsStructUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSRemGroupbSimpletypesAsStructRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B
+ * operation echo2DStringArray
+ */
+ public void testR2GBEcho2DStringArray() throws AxisFault {
+ url = "http://www.mssoapinterop.org:80/Remoting/ServiceB.soap";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbEcho2DStringArrayUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSRemGroupb2DStringArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B
+ * operation echoNestedStruct
+ */
+ public void testR2GBEchoNestedStruct() throws AxisFault {
+ url = "http://www.mssoapinterop.org:80/Remoting/ServiceB.soap";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbEchoNestedStructUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSRemGroupbNestedStructRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B
+ * operation echoNestedArray
+ */
+ public void testR2GBEchoNestedArray() throws AxisFault {
+ url = "http://www.mssoapinterop.org:80/Remoting/ServiceB.soap";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbEchoNestedArrayUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSRemGroupbNestedArrayRes.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 = MSRemRound2InteropTest.class.getClassLoader().getResourceAsStream(filePath);
+//
+// XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(stream);
+// OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser, null);
+// SOAPEnvelope refEnv = (SOAPEnvelope) builder.getDocumentElement();
+// //OMElement refNode = (OMElement) resEnv.getBody().getFirstElement();
+// XMLComparator comparator = new XMLComparator();
+// ok = comparator.compare(retEnv, refEnv);
+// } else
+// return false;
+// } else
+// return false;
+//
+// } catch (Exception e) {
+// throw new AxisFault(e); //To change body of catch statement use File | Settings | File Templates.
+// }
+// return ok;
+// }
+}
+
Added: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/MSaxmsRound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/MSaxmsRound2InteropTest.java?rev=278936&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/MSaxmsRound2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/MSaxmsRound2InteropTest.java Tue Sep 6 00:28:01 2005
@@ -0,0 +1,406 @@
+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 MSaxmsRound2InteropTest
+ * To test interoperability Axis2 clients vs ASP.NET Web Services
+ * WSDLs:-
+ * "base" http://www.mssoapinterop.org/asmx/simple.asmx?wsdl
+ * "Group B" http://www.mssoapinterop.org/asmx/simpleb.asmx?wsdl
+ * "Group C" http://mssoapinterop.org/asmx/header.asmx?wsdl
+ */
+public class MSaxmsRound2InteropTest 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://www.mssoapinterop.org/asmx/simple.asmx";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2EchoStringclientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsBaseStringRes.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 Round2EchoStringArrayClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsBaseStringArrayRes.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 Round2EchoIntegerClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsBaseIntegerRes.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 Round2EchoIntegerArrayclientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsBaseIntegerArrayRes.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 Round2EchoFloatClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsBaseFloatRes.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 Round2EchoFloatArrayClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsBaseFloatArrayRes.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 = "";
+
+ util = new Round2EchoStructClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsBaseStructRes.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 Round2EchoStructArrayClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsBaseStructArrayRes.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 Round2EchoVoidClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsBaseVoidRes.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 Round2EchoBase64ClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsBaseBase64Res.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 Round2EchoDateClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsBaseDateRes.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 Round2EchoHexBinaryClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsBaseHexBinaryRes.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 Round2EchoDecimalClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsBaseDecimalRes.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 Round2EchoBooleanClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsBaseBooleanRes.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 GroupbEchoStructAsSimpleTypesUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsGroupbStructAsSimpleTypesRes.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 GroupbEchoSimpleTypesAsStructUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsGroupbSimpletypesAsStructRes.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 R2MSaxms2DStringArrayUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsGroupb2DStringArrayRes.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 GroupbEchoNestedStructUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsGroupbNestedStructRes.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 GroupbEchoNestedArrayUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MSaxmsGroupbNestedArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group C
+ * operation echoVoid
+ */
+ //todo This test failed, doesn't echo header
+// public void testR2GCEchoVoid() throws AxisFault {
+// url = "http://www.mssoapinterop.org/asmx/header.asmx";
+// soapAction = "http://soapinterop.org/";
+//
+// util = new GroupcVoidUtil();
+// retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+// tempPath = resFilePath + "MSaxmsGroupcVoidRes.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 = MSaxmsRound2InteropTest.class.getClassLoader().getResourceAsStream(filePath);
+//
+// XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(stream);
+// OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser, null);
+// SOAPEnvelope refEnv = (SOAPEnvelope) builder.getDocumentElement();
+// //OMElement refNode = (OMElement) resEnv.getBody().getFirstElement();
+// XMLComparator comparator = new XMLComparator();
+// ok = comparator.compare(retEnv, refEnv);
+// } else
+// return false;
+// } else
+// return false;
+//
+// } catch (Exception e) {
+// throw new AxisFault(e); //To change body of catch statement use File | Settings | File Templates.
+// }
+// return ok;
+// }
+}
+
Added: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/MStk2Round2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/MStk2Round2InteropTest.java?rev=278936&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/MStk2Round2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/MStk2Round2InteropTest.java Tue Sep 6 00:28:01 2005
@@ -0,0 +1,261 @@
+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 MStk2Round2InteropTest
+ * To test Interoperability Axis2 clients vs MS SOAP ToolKit 2.0 Server, Round2
+ * WSDLs:-
+ * Group b http://mssoapinterop.org/stk/InteropB.wsdl
+ * group b(Typed) http://mssoapinterop.org/stk/InteropBtyped.wsdl
+ * Group c http://mssoapinterop.org/stk/InteropC.wsdl
+ */
+
+public class MStk2Round2InteropTest 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 B
+ * operation echoStructAsSimpleTypes
+ */
+ public void testR2GBEchoStructAsSimpleTypes() throws AxisFault {
+ url = "http://mssoapinterop.org/stk/interopB.wsdl";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbEchoStructAsSimpleTypesUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MStk2GroupbStructAsSimpleTypesRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B
+ * operation echoSimpleTypesAsStruct
+ */
+ public void testR2GBEchoSimpleTypesAsStruct() throws AxisFault {
+ url = "http://mssoapinterop.org/stk/interopB.wsdl";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbEchoSimpleTypesAsStructUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MStk2GroupbSimpletypesAsStructRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B
+ * operation echo2DStringArray
+ */
+ public void testR2GBEcho2DStringArray() throws AxisFault {
+ url = "http://mssoapinterop.org/stk/interopB.wsdl";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbEcho2DStringArrayUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MStk2Groupb2DStringArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B typed
+ * operation echoNestedStruct
+ */
+ public void testR2GBEchoNestedStruct() throws AxisFault {
+ url = "http://mssoapinterop.org/stk/interopB.wsdl";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbEchoNestedStructUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MStk2GroupbNestedStructRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B
+ * operation echoNestedArray
+ */
+ public void testR2GBEchoNestedArray() throws AxisFault {
+ url = "http://mssoapinterop.org/stk/interopB.wsdl";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbEchoNestedArrayUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MStk2GroupbNestedArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B Typed
+ * operation echoStructAsSimpleTypes
+ */
+ public void testR2GBTypedEchoStructAsSimpleTypes() throws AxisFault {
+ url = "http://mssoapinterop.org/stk/interopBTyped.wsdl";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbEchoStructAsSimpleTypesUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MStk2GroupbTypedStructAsSimpleTypesRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B Typed
+ * operation echoSimpleTypesAsStruct
+ */
+ public void testR2GBTypedEchoSimpleTypesAsStruct() throws AxisFault {
+ url = "http://mssoapinterop.org/stk/interopBTyped.wsdl";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbEchoSimpleTypesAsStructUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MStk2GroupbTypedSimpletypesAsStructRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B Typed
+ * operation echo2DStringArray
+ */
+ public void testR2GBTypedEcho2DStringArray() throws AxisFault {
+ url = "http://mssoapinterop.org/stk/interopBTyped.wsdl";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbEcho2DStringArrayUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MStk2GroupbTyped2DStringArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B Typed
+ * operation echoNestedStruct
+ */
+ public void testR2GBTypedEchoNestedStruct() throws AxisFault {
+ url = "http://mssoapinterop.org/stk/interopBTyped.wsdl";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbEchoNestedStructUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MStk2GroupbTypedNestedStructRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B Typed
+ * operation echoNestedArray
+ */
+ public void testR2GBTypedEchoNestedArray() throws AxisFault {
+ url = "http://mssoapinterop.org/stk/interopBTyped.wsdl";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbEchoNestedArrayUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MStk2GroupTypedbNestedArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+
+ /**
+ * Round2
+ * Group C
+ * operation echoVoid
+ */
+ public void testR2GCEchoVoid() throws AxisFault {
+ url = "http://mssoapinterop.org/stk/InteropC.wsdl";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupcVoidUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "MStk2GroupcVoidRes.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 = MStk2Round2InteropTest.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;
+// }
+}
+