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/15 14:25:50 UTC
svn commit: r289221 [3/4] - in
/webservices/axis2/trunk/java/modules/integration:
itest-resources/interopt/whitemesa/round1/
itest-resources/interopt/whitemesa/round2/SOAP12/
itest/org/apache/axis2/interopt/whitmesa/round1/
itest/org/apache/axis2/inter...
Added: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/Soap12/WMRound2Soap12InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/Soap12/WMRound2Soap12InteropTest.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/Soap12/WMRound2Soap12InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/Soap12/WMRound2Soap12InteropTest.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,579 @@
+package org.apache.axis2.interopt.whitmesa.round2.Soap12;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.interopt.whitemesa.round2.util.*;
+import org.apache.axis2.interopt.whitemesa.round2.util.soap12.*;
+import org.apache.axis2.interopt.whitemesa.round2.SunRound2Client;
+import org.apache.axis2.interopt.whitemesa.WhiteMesaIneterop;
+import org.apache.axis2.AxisFault;
+import java.io.*;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Gayan Asanka
+ * Date: Aug 23, 2005
+ * Time: 4:27:20 PM
+ */
+
+/**
+ * class
+ * To test Interoperability Axis2 clients vs sun Server, Round2
+ * WSDLs:-
+ * "base" http://soapinterop.java.sun.com/round2/base?WSDL
+ * "Group B" http://soapinterop.java.sun.com/round2/groupb?WSDL
+ * "Group C" http://soapinterop.java.sun.com/round2/groupc?WSDL
+ */
+
+public class WMRound2Soap12InteropTest extends WhiteMesaIneterop {
+
+ SOAPEnvelope retEnv = null;
+ boolean success = false;
+ File file = null;
+ String url = "";
+ String soapAction = "";
+ String resFilePath = "interopt/whitemesa/round2/SOAP12/";
+ String tempPath = "";
+ SunRound2ClientUtil util;
+ private boolean results = false;
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoString
+ */
+ public void testR2BaseEchoString() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/base";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2Soap12StringUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2_S12_StringRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoStringArray
+ */
+ public void testR2BaseEchoStringArray() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/base";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2Soap12StringArrayUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2_S12_StringArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoInteger
+ */
+ public void testR2BaseEchoInteger() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/base";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2Soap12IntegerUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2_S12_IntegerRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoIntegerArray
+ */
+ public void testR2BaseEchoIntegerArray() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/base";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2SOAP12EchoIntegerArrayclientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2_S12_IntegerArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoFloat
+ */
+ public void testR2BaseEchoFloat() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/base";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2Soap12EchoFloatClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2_S12_FloatRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoFloatArray
+ */
+ public void testR2BaseEchoFloatArray() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/base";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2Soap12EchoFloatArrayClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2_S12_FloatArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoStruct
+ */
+ public void testRBaseEchoStruct() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/base";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2Soap12EchoStructClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2_S12_StructRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoStructArray
+ */
+ public void testR2BaseEchoStructArray() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/base";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2Soap12EchoStructArrayClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2_S12_StructArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoVoid
+ */
+ public void testR2BaseEchoVoid() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/base";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2Soap12EchoVoidClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2_S12_VoidRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoBase64
+ */
+ public void testR2BaseEchoBase64() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/base";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2Soap12EchoBase64ClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2_S12_Base64Res.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoBase64
+ */
+ public void testR2BaseEchoDate() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/base";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2Soap12EchoDateClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2_S12_DateRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoHexBinary
+ */
+ public void testR2BaseEchoHexBinary() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/base";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2Soap12EchoHexBinaryUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2_S12_HexBinaryRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoDecimal
+ */
+ public void testR2BaseEchoDecimal() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/base";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2Soap12EchoDecimalClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2_S12_DecimalRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group Base
+ * operation echoBoolean
+ */
+ public void testR2BaseEchoBoolean() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/base";
+ soapAction = "http://soapinterop.org/";
+
+ util = new Round2Soap12EchoBooleanClientUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2_S12_BooleanRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B
+ * operation echoStructAsSimpleTypes
+ */
+ public void testR2GBEchoStructAsSimpleTypes() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/groupB";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbSoap12EchoStructAsSimpleTypesUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2Gb_S12_StructAsSimpleTypesRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B
+ * operation echoSimpleTypesAsStruct
+ */
+ public void testR2GBEchoSimpleTypesAsStruct() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/groupB";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbSoap12EchoSimpleTypesAsStructUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2Gb_S12_SimpleTypesAsStructRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B
+ * operation echo2DStringArray
+ */
+ public void testR2GBEcho2DStringArray() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/groupB";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbSoap12Echo2DStringArrayUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2Gb_S12_2DStringArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B
+ * operation echoNestedStruct
+ */
+ public void testR2GBEchoNestedStruct() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/groupB";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbSoap12EchoNestedStructUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2Gb_S12_NestedStructRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group B
+ * operation echoNestedArray
+ */
+ public void testR2GBEchoNestedArray() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/groupB";
+ soapAction = "http://soapinterop.org/";
+
+ util = new GroupbSoap12EchoNestedArrayUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMR2Gb_S12_NestedArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group C
+ * operation echoString
+ */
+ public void testR2GCEchoString() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/groupC";
+ soapAction = "http://soapinterop.org/";
+
+ util = new WMRound2Soap12GroupcEchoStringUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMRound2Soap12GroupcEchoStringRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group C
+ * operation echoInterger
+ */
+ public void testR2GCEchoInterger() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/groupC";
+ soapAction = "http://soapinterop.org/";
+
+ util = new WMRound2Soap12GroupcIntergerUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMRound2Soap12GroupcIntergerRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group C
+ * operation echoStringArray
+ */
+ public void testR2GCEchoStringArray() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/groupC";
+ soapAction = "http://soapinterop.org/";
+
+ util = new WMRound2Soap12GroupcStringArrayUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMRound2Soap12GroupcStringArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group C
+ * operation echoIntergerArray
+ */
+ public void testR2GCEchoIntergerArray() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/groupC";
+ soapAction = "http://soapinterop.org/";
+
+ util = new WMRound2Soap12GroupcIntegerArrayUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMRound2Soap12GroupcIntegerArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group C
+ * operation echoFloat
+ */
+ public void testR2GCEchoFloat() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/groupC";
+ soapAction = "http://soapinterop.org/";
+
+ util = new WMRound2Saop12GroupcFloatUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMRound2Soap12GroupcFloatRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group C
+ * operation echoFloatArray
+ */
+ public void testR2GCEchoFloatArray() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/groupC";
+ soapAction = "http://soapinterop.org/";
+
+ util = new WMRound2Soap12GroupcFloatArrayUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMRound2Soap12GroupcFloatArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group C
+ * operation echoStruct
+ */
+ public void testR2GCEchoStruct() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/groupC";
+ soapAction = "http://soapinterop.org/";
+
+ util = new WMRound2Soap12GroupcStructUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMRound2Soap12GroupcStructRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group C
+ * operation echoStructArray
+ */
+ public void testR2GCEchoStructArray() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/groupC";
+ soapAction = "http://soapinterop.org/";
+
+ util = new WMRound2Soap12GroupcStructArrayUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMRound2Soap12GroupcStructArrayRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group C
+ * operation echoVoid
+ */
+ public void testR2GCEchoVoid() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/groupC";
+ soapAction = "http://soapinterop.org/";
+
+ util = new WMRound2Soap12GroupcVoidUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMRound2Soap12GroupcVoidRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group C
+ * operation echoBase64
+ */
+ public void testR2GCEchoBase64() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/groupC";
+ soapAction = "http://soapinterop.org/";
+
+ util = new WMRound2Soap12GroupcBase64Util();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMRound2Soap12GroupcBase64Res.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group C
+ * operation echoHexBinary
+ */
+ public void testR2GCEchoHexBinary() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/groupC";
+ soapAction = "http://soapinterop.org/";
+
+ util = new WMRound2Soap12GroupcHexBinaryUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMRound2Soap12GroupcHexBinaryRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+ /**
+ * Round2
+ * Group C
+ * operation echoBoolean
+ */
+ public void testR2GCEchoBoolean() throws AxisFault {
+ url = "http://www.whitemesa.net/interop/r2/groupC";
+ soapAction = "http://soapinterop.org/";
+
+ util = new WMRound2Soap12GroupcBooleanUtil();
+ retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+ tempPath = resFilePath + "WMRound2Soap12GroupcBooleanRes.xml";
+ results = compare(retEnv, tempPath);
+ assertTrue(results);
+ }
+
+// private static boolean compare(SOAPEnvelope retEnv, String filePath) throws AxisFault {
+//
+// boolean ok = false;
+// try {
+// if (retEnv != null) {
+// SOAPBody body = retEnv.getBody();
+// if (!body.hasFault()) {
+// //OMElement firstChild = (OMElement) body.getFirstElement();
+// InputStream stream = GSoapRound2Soap12InteropTest.class.getClassLoader().getResourceAsStream(filePath);
+// XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(stream);
+// OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser, null);
+// SOAPEnvelope refEnv = (SOAPEnvelope) builder.getDocumentElement();
+// //OMElement refNode = (OMElement) resEnv.getBody().getFirstElement();
+// XMLComparator comparator = new XMLComparator();
+// ok = comparator.compare(retEnv, refEnv);
+// } else
+// return false;
+// } else
+// return false;
+//
+// } catch (Exception e) {
+// throw new AxisFault(e); //To change body of catch statement use File | Settings | File Templates.
+// }
+// return ok;
+// }
+}
+
Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringUtil.java?rev=289221&r1=289220&r2=289221&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringUtil.java Thu Sep 15 05:24:18 2005
@@ -19,7 +19,6 @@
SOAPEnvelope reqEnv = omFactory.getDefaultEnvelope();
//OMNamespace namespace = reqEnv.declareNamespace("http://sample1.org/sample1", "sample1");
reqEnv.declareNamespace("http://soapinterop.org/", "ns1");
- reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "SOAP-ENV");
reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
reqEnv.declareNamespace("http://www.w3.org/1999/XMLSchema-instance/", "xsi");
reqEnv.declareNamespace("http://www.w3.org/1999/XMLSchema", "xsd");
@@ -29,17 +28,12 @@
reqEnv.getBody().addChild(method);
method.addAttribute("encordingStyle", "http://schemas.xmlsoap.org/soap/encoding/", null);
- OMElement value = omFactory.createOMElement("inputString", "http://soapinterop.org/", "sample1");
+ OMElement value = omFactory.createOMElement("inputString", "http://soapinterop.org/", null);
value.addAttribute("xsi:type", "xsd:string", null);
- value.addAttribute("xmlns:xsi", "http://www.w3.org/1999/XMLSchema-instance/", null);
- value.addAttribute("xmlns:xsd", "http://www.w3.org/1999/XMLSchema", null);
value.addChild(omFactory.createText("Lanka Software Foundation"));
method.addChild(value);
return reqEnv;
}
-
-}
-
-
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12Echo2DStringArrayUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12Echo2DStringArrayUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12Echo2DStringArrayUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12Echo2DStringArrayUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,65 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 6, 2005
+ * Time: 9:41:45 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class GroupbSoap12Echo2DStringArrayUtil implements SunRound2ClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ reqEnv.declareNamespace("http://soapinterop.org/", "tns");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+
+ OMElement operation = omfactory.createOMElement("echo2DStringArray", "http://soapinterop.org/", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+
+ OMElement part = omfactory.createOMElement("input2DStringArray", "", null);
+ part.addAttribute("xsi:type", "SOAP-ENC:Array", null);
+ part.addAttribute("SOAP-ENC:arrayType", "xsd:string[2,2]", null);
+
+ OMElement value0 = omfactory.createOMElement("varString", "", null);
+ value0.addAttribute("xsi:type", "xsd:string", null);
+ value0.addChild(omfactory.createText("strss fdfing1"));
+ OMElement value1 = omfactory.createOMElement("varString", "", null);
+ value1.addAttribute("xsi:type", "xsd:string", null);
+ value1.addChild(omfactory.createText("sdfsdf25"));
+ OMElement value2 = omfactory.createOMElement("varString", "", null);
+ value2.addAttribute("xsi:type", "xsd:string", null);
+ value2.addChild(omfactory.createText("25dsasd dfasdas23"));
+ OMElement value3 = omfactory.createOMElement("varString", "", null);
+ value3.addAttribute("xsi:type", "xsd:string", null);
+ value3.addChild(omfactory.createText("25dsasd dfasdas23"));
+
+ part.addChild(value0);
+ part.addChild(value1);
+ part.addChild(value2);
+ part.addChild(value3);
+
+ operation.addChild(part);
+
+ //reqEnv.getBody().addChild(method);
+ return reqEnv;
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12EchoNestedArrayUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12EchoNestedArrayUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12EchoNestedArrayUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12EchoNestedArrayUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,88 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 6, 2005
+ * Time: 10:35:41 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class GroupbSoap12EchoNestedArrayUtil implements SunRound2ClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ reqEnv.declareNamespace("http://soapinterop.org/", "tns");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+
+ OMElement operation = omfactory.createOMElement("echoNestedArray", "http://soapinterop.org/", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+
+ OMElement part = omfactory.createOMElement("inputStruct", "", null);
+ part.addAttribute("xsi:type", "s:SOAPStruct", null);
+
+
+ OMElement value0 = omfactory.createOMElement("varString", "", null);
+ value0.addAttribute("xsi:type", "xsd:string", null);
+ value0.addChild(omfactory.createText("strss fdfing1"));
+
+ OMElement value1 = omfactory.createOMElement("varInt", "", null);
+ value1.addAttribute("xsi:type", "xsd:int", null);
+ value1.addChild(omfactory.createText("25"));
+
+ OMElement value2 = omfactory.createOMElement("varFloat", "", null);
+ value2.addAttribute("xsi:type", "xsd:float", null);
+ value2.addChild(omfactory.createText("25.23"));
+
+ OMElement value3 = omfactory.createOMElement("varArray", "", null);
+ part.addAttribute("xsi:type", "s:SOAPArrayStruct", null);
+ value3.addAttribute("SOAP-ENC:arrayType", "xsd:string[3]", null);
+
+ OMElement value30 = omfactory.createOMElement("item", "", null);
+ value30.addAttribute("xsi:type", "xsd:string", null);
+ value30.addChild(omfactory.createText("strss fdfing1"));
+
+ OMElement value31 = omfactory.createOMElement("item", "", null);
+ value31.addAttribute("xsi:type", "xsd:string", null);
+ value31.addChild(omfactory.createText("strss fdfing2"));
+
+ OMElement value32 = omfactory.createOMElement("item", "", null);
+ value32.addAttribute("xsi:type", "xsd:string", null);
+ value32.addChild(omfactory.createText("strss fdfing3"));
+
+
+
+ value3.addChild(value30);
+ value3.addChild(value31);
+ value3.addChild(value32);
+
+ part.addChild(value0);
+ part.addChild(value1);
+ part.addChild(value2);
+ part.addChild(value3);
+
+
+ operation.addChild(part);
+
+ //reqEnv.getBody().addChild(method);
+ return reqEnv;
+
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12EchoNestedStructUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12EchoNestedStructUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12EchoNestedStructUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12EchoNestedStructUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,86 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 6, 2005
+ * Time: 10:25:46 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class GroupbSoap12EchoNestedStructUtil implements SunRound2ClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ reqEnv.declareNamespace("http://soapinterop.org/", "tns");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+
+ OMElement operation = omfactory.createOMElement("echoNestedStruct", "http://soapinterop.org/", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+
+ OMElement part = omfactory.createOMElement("inputStruct", "", null);
+ part.addAttribute("xsi:type", "s:SOAPStructStruct", null);
+
+
+ OMElement value0 = omfactory.createOMElement("varString", "", null);
+ value0.addAttribute("xsi:type", "xsd:string", null);
+ value0.addChild(omfactory.createText("strss fdfing1"));
+
+ OMElement value1 = omfactory.createOMElement("varInt", "", null);
+ value1.addAttribute("xsi:type", "xsd:int", null);
+ value1.addChild(omfactory.createText("25"));
+
+ OMElement value2 = omfactory.createOMElement("varFloat", "", null);
+ value2.addAttribute("xsi:type", "xsd:float", null);
+ value2.addChild(omfactory.createText("25.23"));
+
+ OMElement value3 = omfactory.createOMElement("varStruct", "", null);
+
+ //OMElement part31 = omfactory.createOMElement("inputStruct", "", null);
+
+ OMElement value30 = omfactory.createOMElement("varString", "", null);
+ value30.addAttribute("xsi:type", "xsd:string", null);
+ value30.addChild(omfactory.createText("strss fdfing1"));
+
+ OMElement value31 = omfactory.createOMElement("varInt", "", null);
+ value31.addAttribute("xsi:type", "xsd:int", null);
+ value31.addChild(omfactory.createText("25"));
+
+ OMElement value32 = omfactory.createOMElement("varFloat", "", null);
+ value32.addAttribute("xsi:type", "xsd:float", null);
+ value32.addChild(omfactory.createText("25.23"));
+
+ value3.addChild(value30);
+ value3.addChild(value31);
+ value3.addChild(value32);
+
+ part.addChild(value0);
+ part.addChild(value1);
+ part.addChild(value2);
+ part.addChild(value3);
+
+ operation.addChild(part);
+
+ //reqEnv.getBody().addChild(method);
+ return reqEnv;
+
+ }
+
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12EchoSimpleTypesAsStructUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12EchoSimpleTypesAsStructUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12EchoSimpleTypesAsStructUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12EchoSimpleTypesAsStructUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,56 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 5, 2005
+ * Time: 8:09:53 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class GroupbSoap12EchoSimpleTypesAsStructUtil implements SunRound2ClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ reqEnv.declareNamespace("http://soapinterop.org/", "tns");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+
+ OMElement operation = omfactory.createOMElement("echoSimpleTypesAsStruct", "http://soapinterop.org/", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+
+ OMElement part0 = omfactory.createOMElement("inputString", "", null);
+ part0.addAttribute("xsi:type", "xsd:string", null);
+ part0.addChild(omfactory.createText("45ascasc acasa asd52"));
+
+ OMElement part1 = omfactory.createOMElement("inputInteger", "", null);
+ part1.addAttribute("xsi:type", "xsd:int", null);
+ part1.addChild(omfactory.createText("4552"));
+
+ OMElement part2 = omfactory.createOMElement("inputFloat", "", null);
+ part2.addAttribute("xsi:type", "xsd:float", null);
+ part2.addChild(omfactory.createText("450.52"));
+
+ operation.addChild(part0);
+ operation.addChild(part1);
+ operation.addChild(part2); //reqEnv.getBody().addChild(method);
+
+ return reqEnv;
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12EchoStructAsSimpleTypesUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12EchoStructAsSimpleTypesUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12EchoStructAsSimpleTypesUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupbSoap12EchoStructAsSimpleTypesUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,61 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 5, 2005
+ * Time: 5:27:41 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class GroupbSoap12EchoStructAsSimpleTypesUtil implements SunRound2ClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ reqEnv.declareNamespace("http://soapinterop.org/", "tns");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+
+ OMElement operation = omfactory.createOMElement("echoStructAsSimpleTypes", "http://soapinterop.org/", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+
+ OMElement part = omfactory.createOMElement("inputStruct", "", null);
+ part.addAttribute("xsi:type", "s:SOAPStruct", null);
+
+ OMElement value0 = omfactory.createOMElement("varString", "", null);
+ value0.addAttribute("xsi:type", "xsd:string", null);
+ value0.addChild(omfactory.createText("strss fdfing1"));
+ OMElement value1 = omfactory.createOMElement("varInt", "", null);
+ value1.addAttribute("xsi:type", "xsd:int", null);
+ value1.addChild(omfactory.createText("25"));
+ OMElement value2 = omfactory.createOMElement("varFloat", "", null);
+ value2.addAttribute("xsi:type", "xsd:float", null);
+ value2.addChild(omfactory.createText("25.23"));
+
+ part.addChild(value0);
+ part.addChild(value1);
+ part.addChild(value2);
+
+ operation.addChild(part);
+
+ //reqEnv.getBody().addChild(method);
+ return reqEnv;
+
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupcSoap12EchoStringUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupcSoap12EchoStringUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupcSoap12EchoStringUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupcSoap12EchoStringUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,73 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+import org.apache.axis2.soap.*;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.om.OMElement;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 6, 2005
+ * Time: 10:39:09 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class GroupcSoap12EchoStringUtil implements SunRound2ClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC"); //xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ reqEnv.declareNamespace("http://soapinterop.org/","m");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap12/","soap12");
+
+ SOAPHeader header = omfactory.createSOAPHeader(reqEnv);
+ OMNamespace hns= reqEnv.declareNamespace("http://soapinterop.org/echoheader/","hns"); //xmlns:m0="http://soapinterop.org/echoheader/
+ SOAPHeaderBlock block1 = header.addHeaderBlock("echoMeStringRequest",hns);
+ block1.addAttribute("xsi:type","xsd:string",null);
+ block1.addChild(omfactory.createText("string"));
+ // header.addChild(headerChild);
+ header.addChild(block1);
+
+ SOAPHeaderBlock block2 = header.addHeaderBlock("echoMeStructRequest",hns);
+ block2.addAttribute("xsi:type","s:SOAPStruct",null);
+
+ OMElement h2Val1=omfactory.createOMElement("varString",null);
+ h2Val1.addAttribute("xsi:type","xsd:string",null);
+ h2Val1.addChild(omfactory.createText("string"));
+
+ OMElement h2Val2=omfactory.createOMElement("varInt",null);
+ h2Val2.addAttribute("xsi:type","xsd:int",null);
+ h2Val2.addChild(omfactory.createText("150"));
+
+ OMElement h2Val3=omfactory.createOMElement("varFloat",null);
+ h2Val3.addAttribute("xsi:type","xsd:float",null);
+ h2Val3.addChild(omfactory.createText("456.321"));
+
+ block2.addChild(h2Val1);
+ block2.addChild(h2Val2);
+ block2.addChild(h2Val3);
+
+ OMElement operation = omfactory.createOMElement("echoString","http://soapinterop.org/", null);
+
+ //operation.setNamespace(ns);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+
+ OMElement part = omfactory.createOMElement("inputString", null);
+ part.addAttribute("xsi:type", "xsd:string", null);
+ part.addChild(omfactory.createText("strssfdfing1"));
+
+ operation.addChild(part);
+ //reqEnv.getBody().addChild(method);
+ return reqEnv;
+
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupcSoap12VoidUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupcSoap12VoidUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupcSoap12VoidUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/GroupcSoap12VoidUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,66 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.soap.*;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 6, 2005
+ * Time: 10:55:02 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class GroupcSoap12VoidUtil implements SunRound2ClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC"); //xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ reqEnv.declareNamespace("http://soapinterop.org/", "m");
+ OMNamespace ns1 =reqEnv.declareNamespace("http://soapinterop.org", "m1");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap12/","soap12");
+
+ SOAPHeader header = omfactory.createSOAPHeader(reqEnv);
+ OMNamespace hns = reqEnv.declareNamespace("http://soapinterop.org/echoheader/", "hns"); //xmlns:m0="http://soapinterop.org/echoheader/
+// SOAPHeaderBlock block1 = header.addHeaderBlock("echoMeStringRequest", hns);
+// block1.addAttribute("xsi:type", "xsd:string", null);
+// block1.addChild(omfactory.createText("string"));
+// // header.addChild(headerChild);
+// header.addChild(block1); m0:echoMeStructRequest xsi:type="m1:echoMeStructRequest
+
+ SOAPHeaderBlock block2 = header.addHeaderBlock("echoMeStructRequest", ns1);
+ block2.addAttribute("xsi:type", "hns:echoMeStructRequest", null);
+
+ OMElement h2Val1 = omfactory.createOMElement("varString", null);
+ h2Val1.addAttribute("xsi:type", "xsd:string", null);
+ h2Val1.addChild(omfactory.createText("string"));
+
+ OMElement h2Val2 = omfactory.createOMElement("varInt", null);
+ h2Val2.addAttribute("xsi:type", "xsd:int", null);
+ h2Val2.addChild(omfactory.createText("150"));
+
+ OMElement h2Val3 = omfactory.createOMElement("varFloat", null);
+ h2Val3.addAttribute("xsi:type", "xsd:float", null);
+ h2Val3.addChild(omfactory.createText("456.321"));
+
+ block2.addChild(h2Val1);
+ block2.addChild(h2Val2);
+ block2.addChild(h2Val3);
+
+ OMElement operation = omfactory.createOMElement("echoVoid", "http://soapinterop.org/", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+
+ return reqEnv;
+
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2SOAP12EchoIntegerArrayclientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2SOAP12EchoIntegerArrayclientUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2SOAP12EchoIntegerArrayclientUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2SOAP12EchoIntegerArrayclientUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,59 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 5, 2005
+ * Time: 4:43:24 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class Round2SOAP12EchoIntegerArrayclientUtil implements SunRound2ClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ reqEnv.declareNamespace("http://soapinterop.org/", "tns");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi");
+
+ OMElement operation = omfactory.createOMElement("echoIntegerArray", "http://soapinterop.org/", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+ OMElement part = omfactory.createOMElement("inputIntegerArray", "", null);
+ part.addAttribute("xsi:type", "SOAP-ENC:Array", null);
+ part.addAttribute("SOAP-ENC:arrayType", "xsd:int[3]", null);
+ OMElement value0 = omfactory.createOMElement("varString", "", null);
+ value0.addAttribute("xsi:type", "xsd:int", null);
+ value0.addChild(omfactory.createText("451"));
+ OMElement value1 = omfactory.createOMElement("varString", "", null);
+ value1.addAttribute("xsi:type", "xsd:int", null);
+ value1.addChild(omfactory.createText("425"));
+ OMElement value2 = omfactory.createOMElement("varString", "", null);
+ value2.addAttribute("xsi:type", "xsd:int", null);
+ value2.addChild(omfactory.createText("2523"));
+
+ part.addChild(value0);
+ part.addChild(value1);
+ part.addChild(value2);
+
+ operation.addChild(part);
+
+ //reqEnv.getBody().addChild(method);
+ return reqEnv;
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoBase64ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoBase64ClientUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoBase64ClientUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoBase64ClientUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,47 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 5, 2005
+ * Time: 5:04:20 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class Round2Soap12EchoBase64ClientUtil implements SunRound2ClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ reqEnv.declareNamespace("http://soapinterop.org/", "tns");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+
+ OMElement operation = omfactory.createOMElement("echoBase64", "http://soapinterop.org/", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+
+ OMElement part = omfactory.createOMElement("inputBase64", "", null);
+ part.addAttribute("xsi:type", "xsd:base64Binary", null);
+ part.addChild(omfactory.createText("UjBsR09EbGhjZ0dTQUxNQUFBUUNBRU1tQ1p0dU1GUXhEUzhi"));
+
+ operation.addChild(part);
+ //reqEnv.getBody().addChild(method);
+ return reqEnv;
+
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoBooleanClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoBooleanClientUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoBooleanClientUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoBooleanClientUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,47 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 5, 2005
+ * Time: 5:18:48 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class Round2Soap12EchoBooleanClientUtil implements SunRound2ClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ reqEnv.declareNamespace("http://soapinterop.org/", "tns");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi");
+
+ OMElement operation = omfactory.createOMElement("echoBoolean", "http://soapinterop.org/", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+
+ OMElement part = omfactory.createOMElement("inputBoolean", "", null);
+ part.addAttribute("xsi:type", "xsd:boolean", null);
+ part.addChild(omfactory.createText("true"));
+
+ operation.addChild(part);
+ //reqEnv.getBody().addChild(method);
+ return reqEnv;
+
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoDateClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoDateClientUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoDateClientUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoDateClientUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,47 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 5, 2005
+ * Time: 5:06:41 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class Round2Soap12EchoDateClientUtil implements SunRound2ClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ reqEnv.declareNamespace("http://soapinterop.org/", "tns");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+
+ OMElement operation = omfactory.createOMElement("echoDate", "http://soapinterop.org/", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+
+ OMElement part = omfactory.createOMElement("inputDate", "", null);
+ part.addAttribute("xsi:type", "xsd:dateTime", null);
+ part.addChild(omfactory.createText("2002-07-18T19:40:30.387-06:00"));
+
+ operation.addChild(part);
+ //reqEnv.getBody().addChild(method);
+ return reqEnv;
+
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoDecimalClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoDecimalClientUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoDecimalClientUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoDecimalClientUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,47 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 5, 2005
+ * Time: 5:15:54 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class Round2Soap12EchoDecimalClientUtil implements SunRound2ClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ reqEnv.declareNamespace("http://soapinterop.org/", "tns");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+
+ OMElement operation = omfactory.createOMElement("echoDecimal", "http://soapinterop.org/", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+
+ OMElement part = omfactory.createOMElement("inputDecimal", "", null);
+ part.addAttribute("xsi:type", "xsd:decimal", null);
+ part.addChild(omfactory.createText("455646152"));
+
+ operation.addChild(part);
+ //reqEnv.getBody().addChild(method);
+ return reqEnv;
+
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoFloatArrayClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoFloatArrayClientUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoFloatArrayClientUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoFloatArrayClientUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,61 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 5, 2005
+ * Time: 4:54:21 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class Round2Soap12EchoFloatArrayClientUtil implements SunRound2ClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ //OMNamespace namespace0 = reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ reqEnv.declareNamespace("http://soapinterop.org/", "tns");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+
+ OMElement operation = omfactory.createOMElement("echoFloatArray", "http://soapinterop.org/", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+
+ OMElement part = omfactory.createOMElement("inputFloatArray", "", null);
+ part.addAttribute("xsi:type", "xsd:int", null);
+ part.addAttribute("xsi:type", "SOAP-ENC:Array", null);
+ part.addAttribute("SOAP-ENC:arrayType", "xsd:float[3]", null);
+
+ OMElement value0 = omfactory.createOMElement("varString", "", null);
+ value0.addAttribute("xsi:type", "xsd:float", null);
+ value0.addChild(omfactory.createText("45.76876"));
+ OMElement value1 = omfactory.createOMElement("varInt", "", null);
+ value1.addAttribute("xsi:type", "xsd:float", null);
+ value1.addChild(omfactory.createText("43.454"));
+ OMElement value2 = omfactory.createOMElement("varFloat", "", null);
+ value2.addAttribute("xsi:type", "xsd:float", null);
+ value2.addChild(omfactory.createText("2523.542"));
+
+ part.addChild(value0);
+ part.addChild(value1);
+ part.addChild(value2);
+
+ operation.addChild(part);
+ return reqEnv;
+
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoFloatClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoFloatClientUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoFloatClientUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoFloatClientUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,47 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 5, 2005
+ * Time: 4:46:28 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class Round2Soap12EchoFloatClientUtil implements SunRound2ClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ //OMNamespace namespace0 = reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ reqEnv.declareNamespace("http://soapinterop.org/", "tns");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+
+ OMElement operation = omfactory.createOMElement("echoFloat", "http://soapinterop.org/", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+
+ OMElement part = omfactory.createOMElement("inputFloat", "", null);
+ part.addAttribute("xsi:type", "xsd:float", null);
+ part.addChild(omfactory.createText("50.25"));
+
+ operation.addChild(part);
+ //reqEnv.getBody().addChild(method);
+ return reqEnv;
+
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoHexBinaryUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoHexBinaryUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoHexBinaryUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoHexBinaryUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,46 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 5, 2005
+ * Time: 5:09:43 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class Round2Soap12EchoHexBinaryUtil implements SunRound2ClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ reqEnv.declareNamespace("http://soapinterop.org/", "tns");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi");
+
+ OMElement operation = omfactory.createOMElement("echoHexBinary", "http://soapinterop.org/", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+
+ OMElement part = omfactory.createOMElement("inputHexBinary", "", null);
+ part.addAttribute("xsi:type", "xsd:hexBinary", null);
+ part.addChild(omfactory.createText("AAABBAAE"));
+
+ operation.addChild(part);
+ //reqEnv.getBody().addChild(method);
+ return reqEnv;
+
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoStructArrayClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoStructArrayClientUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoStructArrayClientUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoStructArrayClientUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,99 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 5, 2005
+ * Time: 4:59:41 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class Round2Soap12EchoStructArrayClientUtil implements SunRound2ClientUtil {
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ reqEnv.declareNamespace("http://soapinterop.org/", "tns");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+
+ OMElement operation = omfactory.createOMElement("echoStructArray", "http://soapinterop.org/", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+
+ OMElement part = omfactory.createOMElement("inputStructArray", "", null);
+ part.addAttribute("xsi:type", "SOAP-ENC:Array", null);
+ part.addAttribute("SOAP-ENC:arrayType", "s:SOAPStruct[3]", null);
+
+ OMElement item0 = omfactory.createOMElement("item0", null);
+
+ OMElement value00 = omfactory.createOMElement("varString", "", null);
+ value00.addAttribute("xsi:type", "xsd:string", null);
+ value00.addChild(omfactory.createText("strss fdfing1"));
+ OMElement value01 = omfactory.createOMElement("varInt", "", null);
+ value01.addAttribute("xsi:type", "xsd:int", null);
+ value01.addChild(omfactory.createText("25"));
+ OMElement value02 = omfactory.createOMElement("varFloat", "", null);
+ value02.addAttribute("xsi:type", "xsd:float", null);
+ value02.addChild(omfactory.createText("25.23"));
+
+ OMElement item1 = omfactory.createOMElement("item0", null);
+
+ OMElement value10 = omfactory.createOMElement("varString", "", null);
+ value10.addAttribute("xsi:type", "xsd:string", null);
+ value10.addChild(omfactory.createText("strss fdfing1"));
+ OMElement value11 = omfactory.createOMElement("varInt", "", null);
+ value11.addAttribute("xsi:type", "xsd:int", null);
+ value11.addChild(omfactory.createText("25"));
+ OMElement value12 = omfactory.createOMElement("varFloat", "", null);
+ value12.addAttribute("xsi:type", "xsd:float", null);
+ value12.addChild(omfactory.createText("25.23"));
+
+ OMElement item2 = omfactory.createOMElement("item0", null);
+
+ OMElement value20 = omfactory.createOMElement("varString", "", null);
+ value20.addAttribute("xsi:type", "xsd:string", null);
+ value20.addChild(omfactory.createText("strss fdfing1"));
+ OMElement value21 = omfactory.createOMElement("varInt", "", null);
+ value21.addAttribute("xsi:type", "xsd:int", null);
+ value21.addChild(omfactory.createText("25"));
+ OMElement value22 = omfactory.createOMElement("varFloat", "", null);
+ value22.addAttribute("xsi:type", "xsd:float", null);
+ value22.addChild(omfactory.createText("25.23"));
+
+ item0.addChild(value00);
+ item0.addChild(value01);
+ item0.addChild(value02);
+
+ item1.addChild(value10);
+ item1.addChild(value11);
+ item1.addChild(value12);
+
+ item2.addChild(value20);
+ item2.addChild(value21);
+ item2.addChild(value22);
+
+ part.addChild(item0);
+ part.addChild(item1);
+ part.addChild(item2);
+
+ operation.addChild(part);
+
+ //reqEnv.getBody().addChild(method);
+ return reqEnv;
+
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoStructClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoStructClientUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoStructClientUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoStructClientUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,59 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 5, 2005
+ * Time: 4:56:26 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class Round2Soap12EchoStructClientUtil implements SunRound2ClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ reqEnv.declareNamespace("http://soapinterop.org/", "tns");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+
+ OMElement operation = omfactory.createOMElement("echoStruct", "http://soapinterop.org/", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+ OMElement part = omfactory.createOMElement("inputStruct", "", null);
+ part.addAttribute("xsi:type", "s:SOAPStruct", null);
+
+ OMElement value0 = omfactory.createOMElement("varString", "", null);
+ value0.addAttribute("xsi:type", "xsd:string", null);
+ value0.addChild(omfactory.createText("strss fdfing1"));
+ OMElement value1 = omfactory.createOMElement("varInt", "", null);
+ value1.addAttribute("xsi:type", "xsd:int", null);
+ value1.addChild(omfactory.createText("25"));
+ OMElement value2 = omfactory.createOMElement("varFloat", "", null);
+ value2.addAttribute("xsi:type", "xsd:float", null);
+ value2.addChild(omfactory.createText("25.23"));
+
+ part.addChild(value0);
+ part.addChild(value1);
+ part.addChild(value2);
+
+ operation.addChild(part);
+
+ //reqEnv.getBody().addChild(method);
+ return reqEnv;
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoVoidClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoVoidClientUtil.java?rev=289221&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoVoidClientUtil.java (added)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/soap12/Round2Soap12EchoVoidClientUtil.java Thu Sep 15 05:24:18 2005
@@ -0,0 +1,41 @@
+package org.apache.axis2.interopt.whitemesa.round2.util.soap12;
+
+import org.apache.axis2.interopt.whitemesa.round2.util.SunRound2ClientUtil;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 5, 2005
+ * Time: 5:02:22 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class Round2Soap12EchoVoidClientUtil implements SunRound2ClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ reqEnv.declareNamespace("http://soapinterop.org/", "tns");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+
+ OMElement operation = omfactory.createOMElement("echoVoid", "http://soapinterop.org/", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
+
+ return reqEnv;
+
+ }
+}