Author: deepal
Date: Tue Aug 23 04:21:54 2005
New Revision: 239391

URL: http://svn.apache.org/viewcvs?rev=239391&view=rev
Log:
Integrating interop tests done by Gayan (whitmesa round1)

Added:
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/Round1Client.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1ClientUtil.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatArrayUtil.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatUtil.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntArrayUtil.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntegerUtil.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringArrayUtil.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringUtil.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructArrayUtil.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructUtil.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1VoidUtil.java
    
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/
    
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1FloatArrayRes.xml
    
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1FloatRes.xml
    
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1IntArrayRes.xml
    
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1IntegerRes.xml
    
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StringArrayRes.xml
    
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StringUtilRes.xml
    
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StructArrayRes.xml
    
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StructRes.xml
    
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1VoidUtilRes.xml
    
webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/interopt/whitmesa/round1/
    
webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/interopt/whitmesa/round1/Round1InteropTest.java

Added: 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/Round1Client.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/Round1Client.java?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/Round1Client.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/Round1Client.java
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,56 @@
+package org.apache.axis2.interopt.whitemesa.round1;

+

+import org.apache.axis2.AxisFault;

+import org.apache.axis2.Constants;

+import org.apache.axis2.addressing.EndpointReference;

+import org.apache.axis2.clientapi.Call;

+import org.apache.axis2.context.ConfigurationContext;

+import org.apache.axis2.context.MessageContext;

+import org.apache.axis2.description.OperationDescription;

+import org.apache.axis2.engine.AxisConfiguration;

+import org.apache.axis2.engine.AxisConfigurationImpl;

+import org.apache.axis2.interopt.whitemesa.round1.util.Round1ClientUtil;

+import org.apache.axis2.soap.SOAPEnvelope;

+

+import javax.xml.namespace.QName;

+import java.net.MalformedURLException;

+import java.net.URL;

+

+

+public class Round1Client {

+

+    public SOAPEnvelope sendMsg(Round1ClientUtil util, String epUrl, String 
soapAction) throws AxisFault {

+

+        SOAPEnvelope retEnv = null;

+        URL url = null;

+        try {

+            url = new URL(epUrl);

+        } catch (MalformedURLException e) {

+            throw new AxisFault(e);

+        }

+

+        Call call = new Call();

+        call.setTo(new EndpointReference(url.toString()));

+        call.setSoapAction(soapAction);

+        call.setTransportInfo(Constants.TRANSPORT_HTTP, 
Constants.TRANSPORT_HTTP, false);

+        SOAPEnvelope reqEnv = util.getEchoSoapEnvelope();

+

+        System.out.println("");

+

+        AxisConfiguration axisConfig = new AxisConfigurationImpl();

+        ConfigurationContext configCtx = new ConfigurationContext(axisConfig);

+        MessageContext msgCtx = new MessageContext(configCtx);

+        msgCtx.setEnvelope(reqEnv);

+

+

+        QName opName = new QName("");

+        OperationDescription opDesc = new OperationDescription(opName);

+        MessageContext retMsgCtx = call.invokeBlocking(opDesc, msgCtx);

+        //SOAPEnvelope responseEnvelop = replyContext.getEnvelope();

+        retEnv = retMsgCtx.getEnvelope();

+

+        return retEnv;

+    }

+}

+

+


Added: 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1ClientUtil.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1ClientUtil.java?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1ClientUtil.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1ClientUtil.java
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,15 @@
+package org.apache.axis2.interopt.whitemesa.round1.util;

+

+import org.apache.axis2.soap.SOAPEnvelope;

+

+/**

+ * Created by IntelliJ IDEA.

+ * User: Gayan

+ * Date: Aug 14, 2005

+ * Time: 1:31:48 PM

+ * To change this template use File | Settings | File Templates.

+ */

+public interface Round1ClientUtil {

+

+    SOAPEnvelope getEchoSoapEnvelope();

+}


Added: 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatArrayUtil.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatArrayUtil.java?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatArrayUtil.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatArrayUtil.java
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,59 @@
+package org.apache.axis2.interopt.whitemesa.round1.util;

+

+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: Aug 14, 2005

+ * Time: 2:43:34 PM

+ * To change this template use File | Settings | File Templates.

+ */

+public class Round1FloatArrayUtil implements Round1ClientUtil{

+

+     public SOAPEnvelope getEchoSoapEnvelope() {

+

+        SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory();

+        SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();

+        reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/";, 
"soapenv");

+        reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance";, 
"xsi");

+        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");

+

+        OMElement operation = omfactory.createOMElement("echoFloatArray", 
"http://soapinterop.org/";, null);

+        SOAPBody body = omfactory.createSOAPBody(reqEnv);

+        body.addChild(operation);

+        operation.addAttribute("soapenv:encodingStyle", 
"http://schemas.xmlsoap.org/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/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatUtil.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatUtil.java?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatUtil.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatUtil.java
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,46 @@
+package org.apache.axis2.interopt.whitemesa.round1.util;

+

+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.OMNamespace;

+import org.apache.axis2.om.OMElement;

+

+/**

+ * Created by IntelliJ IDEA.

+ * User: Gayan

+ * Date: Aug 14, 2005

+ * Time: 2:41:46 PM

+ * To change this template use File | Settings | File Templates.

+ */

+public class Round1FloatUtil implements Round1ClientUtil{

+

+    public SOAPEnvelope getEchoSoapEnvelope() {

+

+        SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory();

+        SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();

+        reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/";, 
"soapenv");

+        reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance";, 
"xsi");

+        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");

+

+        OMElement operation = omfactory.createOMElement("echoFloat", 
"http://soapinterop.org/";, null);

+        SOAPBody body = omfactory.createSOAPBody(reqEnv);

+        body.addChild(operation);

+        operation.addAttribute("soapenv:encodingStyle", 
"http://schemas.xmlsoap.org/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/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntArrayUtil.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntArrayUtil.java?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntArrayUtil.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntArrayUtil.java
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,56 @@
+package org.apache.axis2.interopt.whitemesa.round1.util;

+import org.apache.axis2.om.OMAbstractFactory;

+import org.apache.axis2.om.OMElement;

+import org.apache.axis2.soap.SOAPBody;

+import org.apache.axis2.soap.SOAPEnvelope;

+import org.apache.axis2.soap.SOAPFactory;

+

+/**

+ * Created by IntelliJ IDEA.

+ * User: Gayan

+ * Date: Aug 14, 2005

+ * Time: 2:39:06 PM

+ * To change this template use File | Settings | File Templates.

+ */

+public class Round1IntArrayUtil implements Round1ClientUtil{

+

+     public SOAPEnvelope getEchoSoapEnvelope() {

+

+        SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory();

+        SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();

+        reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/";, 
"soapenv");

+        reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance";, 
"xsi");

+        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");

+

+        OMElement operation = omfactory.createOMElement("echoIntegerArray", 
"http://soapinterop.org/";, null);

+        SOAPBody body = omfactory.createSOAPBody(reqEnv);

+        body.addChild(operation);

+        operation.addAttribute("soapenv:encodingStyle", 
"http://schemas.xmlsoap.org/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/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntegerUtil.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntegerUtil.java?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntegerUtil.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntegerUtil.java
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,42 @@
+package org.apache.axis2.interopt.whitemesa.round1.util;

+import org.apache.axis2.om.OMAbstractFactory;

+import org.apache.axis2.om.OMElement;

+import org.apache.axis2.soap.SOAPBody;

+import org.apache.axis2.soap.SOAPEnvelope;

+import org.apache.axis2.soap.SOAPFactory;

+

+/**

+ * Created by IntelliJ IDEA.

+ * User: Gayan

+ * Date: Aug 14, 2005

+ * Time: 2:33:25 PM

+ * To change this template use File | Settings | File Templates.

+ */

+public class Round1IntegerUtil implements Round1ClientUtil{

+

+    public SOAPEnvelope getEchoSoapEnvelope() {

+

+        SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory();

+        SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();

+        reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/";, 
"soapenv");

+        reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance";, 
"xsi");

+        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");

+

+        OMElement operation = omfactory.createOMElement("echoInteger", 
"http://soapinterop.org/";, null);

+        SOAPBody body = omfactory.createSOAPBody(reqEnv);

+        body.addChild(operation);

+        operation.addAttribute("soapenv:encodingStyle", 
"http://schemas.xmlsoap.org/soap/encoding/";, null);

+

+        OMElement part = omfactory.createOMElement("inputInteger", "", null);

+        part.addAttribute("xsi:type", "xsd:int", null);

+        part.addChild(omfactory.createText("52"));

+        operation.addChild(part);

+        return reqEnv;

+

+    }

+}


Added: 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringArrayUtil.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringArrayUtil.java?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringArrayUtil.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringArrayUtil.java
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,57 @@
+package org.apache.axis2.interopt.whitemesa.round1.util;

+import org.apache.axis2.om.OMAbstractFactory;

+import org.apache.axis2.om.OMElement;

+import org.apache.axis2.soap.SOAPBody;

+import org.apache.axis2.soap.SOAPEnvelope;

+import org.apache.axis2.soap.SOAPFactory;

+

+/**

+ * Created by IntelliJ IDEA.

+ * User: Gayan

+ * Date: Aug 14, 2005

+ * Time: 2:09:58 PM

+ * To change this template use File | Settings | File Templates.

+ */

+public class Round1StringArrayUtil implements Round1ClientUtil{

+

+    public SOAPEnvelope getEchoSoapEnvelope() {

+

+        SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory();

+        SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();

+        reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/";, 
"soapenv");

+        reqEnv.declareNamespace("http://www.w3.org/1999/XMLSchema-instance/";, 
"xsi");

+        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/";, 
"SOAPENC");

+        reqEnv.declareNamespace("http://soapinterop.org/";, "tns");

+        reqEnv.declareNamespace("http://soapinterop.org/xsd";, "s");

+        reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/";, "wsdl");

+

+        OMElement operation = omfactory.createOMElement("echoStringArray", 
"http://soapinterop.org/";, null);

+        SOAPBody body = omfactory.createSOAPBody(reqEnv);

+        body.addChild(operation);

+        operation.addAttribute("soapenv:encodingStyle", 
"http://schemas.xmlsoap.org/soap/encoding/";, null);

+

+        OMElement part = omfactory.createOMElement("inputStringArray", null);

+        part.addAttribute("xsi:type", "SOAPENC:Array", null);

+        part.addAttribute("SOAPENC:arrayType", "xsd:string[3]", null);

+

+        OMElement value0 = omfactory.createOMElement("item", "", null);

+        value0.addAttribute("xsi:type", "xsd:string", null);

+        value0.addChild(omfactory.createText("Apache Axis2"));

+        OMElement value1 = omfactory.createOMElement("item", "", null);

+        value1.addAttribute("xsi:type", "xsd:string", null);

+        value1.addChild(omfactory.createText("Lanka Software Foundation"));

+        OMElement value2 = omfactory.createOMElement("item", "", null);

+        value2.addAttribute("xsi:type", "xsd:string", null);

+        value2.addChild(omfactory.createText("www.opensource.lk"));

+

+        part.addChild(value0);

+        part.addChild(value1);

+        part.addChild(value2);

+

+        operation.addChild(part);

+        //reqEnv.getBody().addChild(method);

+        return reqEnv;

+    }

+}


Added: 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringUtil.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringUtil.java?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringUtil.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringUtil.java
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,45 @@
+package org.apache.axis2.interopt.whitemesa.round1.util;

+

+import org.apache.axis2.om.OMAbstractFactory;

+import org.apache.axis2.om.OMElement;

+import org.apache.axis2.soap.SOAPEnvelope;

+import org.apache.axis2.soap.SOAPFactory;

+

+/**

+ * Created by IntelliJ IDEA.

+ * User: Gayan

+ * Date: Apr 22, 2005

+ * Time: 2:57:21 PM

+ * To change this template use File | Settings | File Templates.

+ */

+public class Round1StringUtil implements Round1ClientUtil {

+

+    public SOAPEnvelope getEchoSoapEnvelope() {

+        SOAPFactory omFactory = OMAbstractFactory.getSOAP11Factory();

+        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");

+

+

+        OMElement method = omFactory.createOMElement("echoString", 
"http://soapinterop.org/";, null);

+        reqEnv.getBody().addChild(method);

+        method.addAttribute("encordingStyle", 
"http://schemas.xmlsoap.org/soap/encoding/";, null);

+

+        OMElement value = omFactory.createOMElement("inputString", 
"http://soapinterop.org/";, "sample1");

+        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/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructArrayUtil.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructArrayUtil.java?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructArrayUtil.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructArrayUtil.java
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,98 @@
+package org.apache.axis2.interopt.whitemesa.round1.util;

+

+import org.apache.axis2.om.OMAbstractFactory;

+import org.apache.axis2.om.OMElement;

+import org.apache.axis2.soap.SOAPBody;

+import org.apache.axis2.soap.SOAPEnvelope;

+import org.apache.axis2.soap.SOAPFactory;

+

+/**

+ * Created by IntelliJ IDEA.

+ * User: Gayan

+ * Date: Aug 14, 2005

+ * Time: 3:01:00 PM

+ * To change this template use File | Settings | File Templates.

+ */

+public class Round1StructArrayUtil implements Round1ClientUtil{

+

+    public SOAPEnvelope getEchoSoapEnvelope() {

+

+        SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory();

+        SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();

+        reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/";, 
"soapenv");

+        reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance";, 
"xsi");

+        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");

+

+        OMElement operation = omfactory.createOMElement("echoStructArray", 
"http://soapinterop.org/";, null);

+        SOAPBody body = omfactory.createSOAPBody(reqEnv);

+        body.addChild(operation);

+        operation.addAttribute("soapenv:encodingStyle", 
"http://schemas.xmlsoap.org/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/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructUtil.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructUtil.java?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructUtil.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructUtil.java
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,56 @@
+package org.apache.axis2.interopt.whitemesa.round1.util;

+import org.apache.axis2.om.OMAbstractFactory;

+import org.apache.axis2.om.OMElement;

+import org.apache.axis2.soap.SOAPBody;

+import org.apache.axis2.soap.SOAPEnvelope;

+import org.apache.axis2.soap.SOAPFactory;

+

+/**

+ * Created by IntelliJ IDEA.

+ * User: Gayan

+ * Date: Aug 14, 2005

+ * Time: 2:47:11 PM

+ * To change this template use File | Settings | File Templates.

+ */

+public class Round1StructUtil implements Round1ClientUtil{

+

+    public SOAPEnvelope getEchoSoapEnvelope() {

+

+        SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory();

+        SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();

+        reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/";, 
"soapenv");

+        reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance";, 
"xsi");

+        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");

+

+        OMElement operation = omfactory.createOMElement("echoStruct", 
"http://soapinterop.org/";, null);

+        SOAPBody body = omfactory.createSOAPBody(reqEnv);

+        body.addChild(operation);

+        operation.addAttribute("soapenv:encodingStyle", 
"http://schemas.xmlsoap.org/soap/encoding/";, null);

+        OMElement part = omfactory.createOMElement("inputStruct", "", null);

+        part.addAttribute("xsi:type", "xsd: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/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1VoidUtil.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1VoidUtil.java?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1VoidUtil.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1VoidUtil.java
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,39 @@
+package org.apache.axis2.interopt.whitemesa.round1.util;

+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.OMNamespace;

+import org.apache.axis2.om.OMElement;

+

+/**

+ * Created by IntelliJ IDEA.

+ * User: Gayan

+ * Date: Aug 14, 2005

+ * Time: 2:07:35 PM

+ * To change this template use File | Settings | File Templates.

+ */

+public class Round1VoidUtil implements Round1ClientUtil{

+

+    public SOAPEnvelope getEchoSoapEnvelope() {

+

+        SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory();

+        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");

+

+        OMElement operation = omfactory.createOMElement("echoVoid", 
"http://soapinterop.org/";, null);

+        SOAPBody body = omfactory.createSOAPBody(reqEnv);

+        body.addChild(operation);

+        operation.addAttribute("soapenv:encodingStyle", 
"http://schemas.xmlsoap.org/soap/encoding/";, null);

+

+        return reqEnv;

+

+    }

+}


Added: 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1FloatArrayRes.xml
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1FloatArrayRes.xml?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1FloatArrayRes.xml
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1FloatArrayRes.xml
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='utf-8'?><E:Envelope 
xmlns:E="http://schemas.xmlsoap.org/soap/envelope/"; 
E:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:y="http://www.w3.org/2001/XMLSchema"; 
xmlns:A="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:s="http://www.w3.org/2001/XMLSchema-instance";>

+<E:Body>

+<m:echoFloatArrayResponse xmlns:m="http://soapinterop.org/";>

+<return A:arrayType="y:float[3]" s:type="A:Array">

+<item>45.7687607</item>

+<item>43.4539986</item>

+<item>2523.54199</item>

+</return>

+</m:echoFloatArrayResponse>

+</E:Body>

+</E:Envelope>
\ No newline at end of file

Added: 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1FloatRes.xml
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1FloatRes.xml?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1FloatRes.xml
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1FloatRes.xml
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?><E:Envelope 
xmlns:E="http://schemas.xmlsoap.org/soap/envelope/"; 
E:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:y="http://www.w3.org/2001/XMLSchema"; 
xmlns:A="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:s="http://www.w3.org/2001/XMLSchema-instance";>

+<E:Body>

+<m:echoFloatResponse xmlns:m="http://soapinterop.org/";>

+<return s:type="y:float">50.25</return>

+</m:echoFloatResponse>

+</E:Body>

+</E:Envelope>
\ No newline at end of file

Added: 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1IntArrayRes.xml
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1IntArrayRes.xml?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1IntArrayRes.xml
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1IntArrayRes.xml
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='utf-8'?><E:Envelope 
xmlns:E="http://schemas.xmlsoap.org/soap/envelope/"; 
E:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:y="http://www.w3.org/2001/XMLSchema"; 
xmlns:A="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:s="http://www.w3.org/2001/XMLSchema-instance";>

+<E:Body>

+<m:echoIntegerArrayResponse xmlns:m="http://soapinterop.org/";>

+<return A:arrayType="y:int[3]" s:type="A:Array">

+<item>451</item>

+<item>425</item>

+<item>2523</item>

+</return>

+</m:echoIntegerArrayResponse>

+</E:Body>

+</E:Envelope>


Added: 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1IntegerRes.xml
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1IntegerRes.xml?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1IntegerRes.xml
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1IntegerRes.xml
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?><E:Envelope 
xmlns:E="http://schemas.xmlsoap.org/soap/envelope/"; 
E:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:y="http://www.w3.org/2001/XMLSchema"; 
xmlns:A="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:s="http://www.w3.org/2001/XMLSchema-instance";>

+<E:Body>

+<m:echoIntegerResponse xmlns:m="http://soapinterop.org/";>

+<return s:type="y:int">52</return>

+</m:echoIntegerResponse>

+</E:Body>

+</E:Envelope>
\ No newline at end of file

Added: 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StringArrayRes.xml
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StringArrayRes.xml?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StringArrayRes.xml
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StringArrayRes.xml
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='utf-8'?><E:Envelope 
xmlns:E="http://schemas.xmlsoap.org/soap/envelope/"; 
E:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:y="http://www.w3.org/2001/XMLSchema"; 
xmlns:A="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:s="http://www.w3.org/2001/XMLSchema-instance";>

+<E:Body>

+<m:echoStringArrayResponse xmlns:m="http://soapinterop.org/";>

+<return A:arrayType="y:string[3]" s:type="A:Array">

+<item>Apache Axis2</item>

+<item>Lanka Software Foundation</item>

+<item>www.opensource.lk</item>

+</return>

+</m:echoStringArrayResponse>

+</E:Body>

+</E:Envelope>
\ No newline at end of file

Added: 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StringUtilRes.xml
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StringUtilRes.xml?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StringUtilRes.xml
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StringUtilRes.xml
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?><E:Envelope 
xmlns:E="http://schemas.xmlsoap.org/soap/envelope/"; 
E:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:y="http://www.w3.org/2001/XMLSchema"; 
xmlns:A="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:s="http://www.w3.org/2001/XMLSchema-instance";>

+<E:Body>

+<m:echoStringResponse xmlns:m="http://soapinterop.org/";>

+<return s:type="y:string">Lanka Software Foundation</return>

+</m:echoStringResponse>

+</E:Body>

+</E:Envelope>
\ No newline at end of file

Added: 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StructArrayRes.xml
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StructArrayRes.xml?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StructArrayRes.xml
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StructArrayRes.xml
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,23 @@
+<?xml version='1.0' encoding='utf-8'?><E:Envelope 
xmlns:E="http://schemas.xmlsoap.org/soap/envelope/"; 
E:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:y="http://www.w3.org/2001/XMLSchema"; 
xmlns:A="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:s="http://www.w3.org/2001/XMLSchema-instance";>

+<E:Body>

+<m:echoStructArrayResponse xmlns:m="http://soapinterop.org/";>

+<return A:arrayType="ns1:SOAPStruct[3]" s:type="A:Array" 
xmlns:ns1="http://soapinterop.org/xsd";>

+<item>

+<varString s:type="y:string">strss fdfing1</varString>

+<varInt s:type="y:int">25</varInt>

+<varFloat s:type="y:float">25.2299995</varFloat>

+</item>

+<item>

+<varString s:type="y:string">strss fdfing1</varString>

+<varInt s:type="y:int">25</varInt>

+<varFloat s:type="y:float">25.2299995</varFloat>

+</item>

+<item>

+<varString s:type="y:string">strss fdfing1</varString>

+<varInt s:type="y:int">25</varInt>

+<varFloat s:type="y:float">25.2299995</varFloat>

+</item>

+</return>

+</m:echoStructArrayResponse>

+</E:Body>

+</E:Envelope>
\ No newline at end of file

Added: 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StructRes.xml
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StructRes.xml?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StructRes.xml
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1StructRes.xml
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='utf-8'?><E:Envelope 
xmlns:E="http://schemas.xmlsoap.org/soap/envelope/"; 
E:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:y="http://www.w3.org/2001/XMLSchema"; 
xmlns:A="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:s="http://www.w3.org/2001/XMLSchema-instance";>

+<E:Body>

+<m:echoStructResponse xmlns:m="http://soapinterop.org/";>

+<return s:type="ns1:SOAPStruct" xmlns:ns1="http://soapinterop.org/xsd";>

+<varString s:type="y:string">strss fdfing1</varString>

+<varInt s:type="y:int">25</varInt>

+<varFloat s:type="y:float">25.2299995</varFloat>

+</return>

+</m:echoStructResponse>

+</E:Body>

+</E:Envelope>
\ No newline at end of file

Added: 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1VoidUtilRes.xml
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1VoidUtilRes.xml?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1VoidUtilRes.xml
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/whitemesa/round1/Round1VoidUtilRes.xml
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,5 @@
+<?xml version='1.0' encoding='utf-8'?><E:Envelope 
xmlns:E="http://schemas.xmlsoap.org/soap/envelope/"; 
E:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:y="http://www.w3.org/2001/XMLSchema"; 
xmlns:A="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:s="http://www.w3.org/2001/XMLSchema-instance";>

+<E:Body>

+<m:echoVoidResponse xmlns:m="http://soapinterop.org/";></m:echoVoidResponse>

+</E:Body>

+</E:Envelope>


Added: 
webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/interopt/whitmesa/round1/Round1InteropTest.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/interopt/whitmesa/round1/Round1InteropTest.java?rev=239391&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/interopt/whitmesa/round1/Round1InteropTest.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/interopt/whitmesa/round1/Round1InteropTest.java
 Tue Aug 23 04:21:54 2005
@@ -0,0 +1,205 @@
+package org.apache.axis2.interopt.whitmesa.round1;

+

+import junit.framework.TestCase;

+import org.apache.axis2.soap.SOAPEnvelope;

+import org.apache.axis2.soap.SOAPBody;

+import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder;

+import org.apache.axis2.interopt.whitemesa.round1.util.*;

+import org.apache.axis2.interopt.whitemesa.round1.Round1Client;

+import org.apache.axis2.om.impl.llom.exception.XMLComparisonException;

+import org.apache.axis2.om.impl.llom.util.XMLComparator;

+import org.apache.axis2.om.impl.OMOutputImpl;

+import org.apache.axis2.om.OMElement;

+import org.apache.axis2.om.OMXMLParserWrapper;

+import org.apache.axis2.AxisFault;

+

+import javax.xml.stream.XMLStreamException;

+import javax.xml.stream.XMLStreamReader;

+import javax.xml.stream.XMLInputFactory;

+import java.io.File;

+import java.io.FileNotFoundException;

+import java.io.FileInputStream;

+import java.io.InputStream;

+/*

+* 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: Deepal Jayasinghe

+ * Date: Aug 23, 2005

+ * Time: 4:27:20 PM

+ */

+public class Round1InteropTest extends TestCase {

+

+    SOAPEnvelope retEnv = null;

+    boolean success = false;

+    File file = null;

+    String url = "http://soapinterop.java.sun.com:80/round2/base";;

+    String soapAction = "http://soapinterop.org/";;

+    String resFilePath = "/interopt/whitemesa/round1/";

+    String tempPath = "";

+    Round1ClientUtil util;

+    Round1Client client = null;

+    boolean result = false;

+    private static boolean run = true;

+

+

+

+    public void testEchoString() throws AxisFault {

+        client = new Round1Client();

+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";;

+        soapAction = "urn:soapinterop";

+        util = new Round1StringUtil();

+        retEnv = client.sendMsg(util, url, soapAction);

+        tempPath = resFilePath + "Round1StringUtilRes.xml";

+        result = compare(retEnv, tempPath);

+        assertTrue(result);

+    }

+

+    public void testEchoVoid() throws AxisFault {

+        client = new Round1Client();

+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";;

+        soapAction = "urn:soapinterop";

+        util = new Round1VoidUtil();

+        retEnv = client.sendMsg(util, url, soapAction);

+        tempPath = resFilePath + "Round1VoidUtilRes.xml";

+        result = compare(retEnv, tempPath);

+        assertTrue(result);

+    }

+

+//    public void testEchoStringArray() throws AxisFault {

+//        client = new Round1Client();

+//        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";;

+//        soapAction = "urn:soapinterop";

+//        util = new Round1StringArrayUtil();

+//        retEnv = client.sendMsg(util, url, soapAction);

+//        tempPath = resFilePath + "Round1StringArrayRes.xml";

+//        result = compare(retEnv, tempPath);

+//        assertTrue(result);

+//    }

+

+    public void testInteger() throws AxisFault {

+        client = new Round1Client();

+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";;

+        soapAction = "urn:soapinterop";

+        util = new Round1IntegerUtil();

+        retEnv = client.sendMsg(util, url, soapAction);

+        tempPath = resFilePath + "Round1IntegerRes.xml";

+        result = compare(retEnv, tempPath);

+        assertTrue(result);

+    }

+

+//    public void testIntegerArray() throws AxisFault {

+//        client = new Round1Client();

+//        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";;

+//        soapAction = "urn:soapinterop";

+//        util = new Round1IntArrayUtil();

+//        retEnv = client.sendMsg(util, url, soapAction);

+//        tempPath = resFilePath + "Round1IntArrayRes.xml";

+//        result = compare(retEnv, tempPath);

+//        assertTrue(result);

+//    }

+

+    public void testEchoFloat() throws AxisFault {

+        client = new Round1Client();

+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";;

+        soapAction = "urn:soapinterop";

+        util = new Round1FloatUtil();

+        retEnv = client.sendMsg(util, url, soapAction);

+        tempPath = resFilePath + "Round1FloatRes.xml";

+        result = compare(retEnv, tempPath);

+        assertTrue(result);

+    }

+

+

+//    public void testEchoFloatArray() throws AxisFault {

+//        client = new Round1Client();

+//        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";;

+//        soapAction = "urn:soapinterop";

+//        util = new Round1FloatArrayUtil();

+//        retEnv = client.sendMsg(util, url, soapAction);

+//        tempPath = resFilePath + "Round1FloatArrayRes.xml";

+//        result = compare(retEnv, tempPath);

+//        assertTrue(result);

+//    }

+

+    public void testEchoStruct() throws AxisFault {

+        client = new Round1Client();

+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";;

+        soapAction = "urn:soapinterop";

+        util = new Round1StructUtil();

+        retEnv = client.sendMsg(util, url, soapAction);

+        tempPath = resFilePath + "Round1StructRes.xml";

+        result = compare(retEnv, tempPath);

+        assertTrue(result);

+    }

+

+//    public void testEchoStructArray() throws AxisFault {

+//        client = new Round1Client();

+//        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";;

+//        soapAction = "urn:soapinterop";

+//        util = new Round1StructArrayUtil();

+//        retEnv = client.sendMsg(util, url, soapAction);

+//        tempPath = resFilePath + "Round1StructArrayRes.xml";

+//        result = compare(retEnv, tempPath);

+//        assertTrue(result);

+//    }

+

+    private static boolean compare(SOAPEnvelope retEnv, String filePath) 
throws AxisFault {

+        boolean ok;

+

+        try {

+            if (retEnv != null) {

+                SOAPBody body = retEnv.getBody();

+                if (!body.hasFault()) {

+

+                    Class clazz = Object.class;

+                    InputStream stream = clazz.getResourceAsStream(filePath);

+

+//                    File file = new File(filePath);

+//                    FileInputStream fin = new FileInputStream(file);

+

+                    OMElement firstChild = body.getFirstElement();

+

+//                    OMOutputImpl out = new OMOutputImpl(System.out, false);

+//                    firstChild.serialize(out);

+//                    out.flush();

+

+                    XMLStreamReader parser = 
XMLInputFactory.newInstance().createXMLStreamReader(stream);

+                    OMXMLParserWrapper builder = new 
StAXSOAPModelBuilder(parser, null);

+                    SOAPEnvelope refEnv = (SOAPEnvelope) 
builder.getDocumentElement();

+                    OMElement refNode = refEnv.getBody().getFirstElement();

+//                    out = new OMOutputImpl(System.out, false);

+//                    refNode.serialize(out);

+//                    out.flush();

+                    XMLComparator comparator = new XMLComparator();

+                    ok = comparator.compare(firstChild, refNode);

+                } else

+                    return false;

+            } else

+                return false;

+        } catch (XMLStreamException e) {

+            throw new AxisFault(e);

+        } catch (XMLComparisonException e) {

+            throw new AxisFault(e);

+        }

+

+

+        return ok;

+    }

+

+}



Reply via email to