Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 96228 invoked from network); 15 Sep 2005 19:50:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Sep 2005 19:50:08 -0000 Received: (qmail 36131 invoked by uid 500); 15 Sep 2005 19:20:34 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 27567 invoked by uid 500); 15 Sep 2005 19:19:24 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 22077 invoked by uid 500); 15 Sep 2005 19:18:48 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 20833 invoked by uid 99); 15 Sep 2005 19:17:56 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 15 Sep 2005 12:15:41 -0700 Received: (qmail 56245 invoked by uid 65534); 15 Sep 2005 19:15:41 -0000 Message-ID: <20050915191541.56244.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r289289 [68/134] - in /webservices/axis2/trunk/java: ./ etc/ modules/addressing/ modules/addressing/src/META-INF/ modules/addressing/src/org/apache/axis2/handlers/addressing/ modules/addressing/test-resources/ modules/addressing/test/org/ap... Date: Thu, 15 Sep 2005 19:07:03 -0000 To: axis2-cvs@ws.apache.org From: dims@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java?rev=289289&r1=289288&r2=289289&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java (original) +++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java Thu Sep 15 11:52:11 2005 @@ -1,41 +1,41 @@ -package org.apache.axis2.interopt.sun.round4.simple.util; - -import org.apache.axis2.om.OMElement; -import org.apache.axis2.om.OMFactory; -import org.apache.axis2.om.OMAbstractFactory; -import org.apache.axis2.om.OMNamespace; -import org.apache.axis2.soap.SOAP11Constants; - -/** - * Created by IntelliJ IDEA. - * User: Nadana - * Date: Aug 6, 2005 - * Time: 3:10:19 PM - * To change this template use File | Settings | File Templates. - */ -public class EchoStringFaultClientUtil implements SunGroupHClientUtil{ - - public OMElement getEchoOMElement() { - OMFactory fac = OMAbstractFactory.getOMFactory(); - - OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m"); - - OMElement method = fac.createOMElement("echoStringFault", omNs); - OMNamespace soapEnvNS = method.declareNamespace(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI, - SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX); - method.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", soapEnvNS); - - - - - OMElement value = fac.createOMElement("param", null); - - value.addChild(fac.createText(value, "Axis2 Echo String ")); - - method.addChild(value); - - return method; - } - - -} +package org.apache.axis2.interopt.sun.round4.simple.util; + +import org.apache.axis2.om.OMElement; +import org.apache.axis2.om.OMFactory; +import org.apache.axis2.om.OMAbstractFactory; +import org.apache.axis2.om.OMNamespace; +import org.apache.axis2.soap.SOAP11Constants; + +/** + * Created by IntelliJ IDEA. + * User: Nadana + * Date: Aug 6, 2005 + * Time: 3:10:19 PM + * To change this template use File | Settings | File Templates. + */ +public class EchoStringFaultClientUtil implements SunGroupHClientUtil{ + + public OMElement getEchoOMElement() { + OMFactory fac = OMAbstractFactory.getOMFactory(); + + OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m"); + + OMElement method = fac.createOMElement("echoStringFault", omNs); + OMNamespace soapEnvNS = method.declareNamespace(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI, + SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX); + method.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", soapEnvNS); + + + + + OMElement value = fac.createOMElement("param", null); + + value.addChild(fac.createText(value, "Axis2 Echo String ")); + + method.addChild(value); + + return method; + } + + +} Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java?rev=289289&r1=289288&r2=289289&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java (original) +++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java Thu Sep 15 11:52:11 2005 @@ -1,15 +1,15 @@ -package org.apache.axis2.interopt.sun.round4.simple.util; - -import org.apache.axis2.om.OMElement; - -/** - * Created by IntelliJ IDEA. - * User: Nadana - * Date: Aug 6, 2005 - * Time: 11:13:40 AM - * To change this template use File | Settings | File Templates. - */ -public interface SunGroupHClientUtil { - OMElement getEchoOMElement(); - -} +package org.apache.axis2.interopt.sun.round4.simple.util; + +import org.apache.axis2.om.OMElement; + +/** + * Created by IntelliJ IDEA. + * User: Nadana + * Date: Aug 6, 2005 + * Time: 11:13:40 AM + * To change this template use File | Settings | File Templates. + */ +public interface SunGroupHClientUtil { + OMElement getEchoOMElement(); + +} Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/WhiteMesaIneterop.java URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/WhiteMesaIneterop.java?rev=289289&r1=289288&r2=289289&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/WhiteMesaIneterop.java (original) +++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/WhiteMesaIneterop.java Thu Sep 15 11:52:11 2005 @@ -1,66 +1,66 @@ -package org.apache.axis2.interopt.whitemesa; - -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.AxisFault; -import org.apache.axis2.XMLComparatorInterop; -import org.apache.axis2.om.OMXMLParserWrapper; - -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLInputFactory; -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: Sep 6, 2005 - * Time: 12:24:54 PM - */ -public class WhiteMesaIneterop extends TestCase { - - protected boolean compare(SOAPEnvelope retEnv, String filePath) throws AxisFault { - boolean ok; - try { - if (retEnv != null) { - SOAPBody body = retEnv.getBody(); - if (!body.hasFault()) { - //OMElement firstChild = (OMElement) body.getFirstElement(); - - InputStream stream = Thread.currentThread().getContextClassLoader() - .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(); - XMLComparatorInterop comparator = new XMLComparatorInterop(); - ok = comparator.compare(retEnv, refEnv); - } else - return false; - } else - return false; - - } catch (Exception e) { - throw new AxisFault(e); //To change body of catch statement use File | Settings | File Templates. - } - return ok; - } -} +package org.apache.axis2.interopt.whitemesa; + +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.AxisFault; +import org.apache.axis2.XMLComparatorInterop; +import org.apache.axis2.om.OMXMLParserWrapper; + +import javax.xml.stream.XMLStreamReader; +import javax.xml.stream.XMLInputFactory; +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: Sep 6, 2005 + * Time: 12:24:54 PM + */ +public class WhiteMesaIneterop extends TestCase { + + protected boolean compare(SOAPEnvelope retEnv, String filePath) throws AxisFault { + boolean ok; + try { + if (retEnv != null) { + SOAPBody body = retEnv.getBody(); + if (!body.hasFault()) { + //OMElement firstChild = (OMElement) body.getFirstElement(); + + InputStream stream = Thread.currentThread().getContextClassLoader() + .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(); + XMLComparatorInterop comparator = new XMLComparatorInterop(); + ok = comparator.compare(retEnv, refEnv); + } else + return false; + } else + return false; + + } catch (Exception e) { + throw new AxisFault(e); //To change body of catch statement use File | Settings | File Templates. + } + return ok; + } +} Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/WhiteMesaIneterop.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/Round1Client.java URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/Round1Client.java?rev=289289&r1=289288&r2=289289&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/Round1Client.java (original) +++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/Round1Client.java Thu Sep 15 11:52:11 2005 @@ -1,55 +1,55 @@ -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("target/test-resources/intregrationRepo"); - call.setTo(new EndpointReference(url.toString())); - call.setSoapAction(soapAction); - call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false); - SOAPEnvelope reqEnv = util.getEchoSoapEnvelope(); - - - 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; - } -} - - +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("target/test-resources/intregrationRepo"); + call.setTo(new EndpointReference(url.toString())); + call.setSoapAction(soapAction); + call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false); + SOAPEnvelope reqEnv = util.getEchoSoapEnvelope(); + + + 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; + } +} + + Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/Round1Client.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1ClientUtil.java URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1ClientUtil.java?rev=289289&r1=289288&r2=289289&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1ClientUtil.java (original) +++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1ClientUtil.java Thu Sep 15 11:52:11 2005 @@ -1,15 +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(); -} +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(); +} Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1ClientUtil.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatArrayUtil.java URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatArrayUtil.java?rev=289289&r1=289288&r2=289289&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatArrayUtil.java (original) +++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatArrayUtil.java Thu Sep 15 11:52:11 2005 @@ -1,59 +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; - - } -} +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; + + } +} Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatArrayUtil.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatUtil.java URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatUtil.java?rev=289289&r1=289288&r2=289289&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatUtil.java (original) +++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatUtil.java Thu Sep 15 11:52:11 2005 @@ -1,46 +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; - - } -} +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; + + } +} Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1FloatUtil.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntArrayUtil.java URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntArrayUtil.java?rev=289289&r1=289288&r2=289289&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntArrayUtil.java (original) +++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntArrayUtil.java Thu Sep 15 11:52:11 2005 @@ -1,56 +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; - } -} +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; + } +} Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntArrayUtil.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntegerUtil.java URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntegerUtil.java?rev=289289&r1=289288&r2=289289&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntegerUtil.java (original) +++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntegerUtil.java Thu Sep 15 11:52:11 2005 @@ -1,42 +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; - - } -} +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; + + } +} Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1IntegerUtil.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringArrayUtil.java URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringArrayUtil.java?rev=289289&r1=289288&r2=289289&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringArrayUtil.java (original) +++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringArrayUtil.java Thu Sep 15 11:52:11 2005 @@ -1,57 +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; - } -} +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; + } +} Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringArrayUtil.java ------------------------------------------------------------------------------ svn:eol-style = native 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=289289&r1=289288&r2=289289&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 11:52:11 2005 @@ -1,39 +1,39 @@ -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/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/", null); - value.addAttribute("xsi:type", "xsd:string", null); - value.addChild(omFactory.createText("Lanka Software Foundation")); - method.addChild(value); - - return reqEnv; - } - -} +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/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/", null); + value.addAttribute("xsi:type", "xsd:string", null); + value.addChild(omFactory.createText("Lanka Software Foundation")); + method.addChild(value); + + return reqEnv; + } + +} Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StringUtil.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructArrayUtil.java URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructArrayUtil.java?rev=289289&r1=289288&r2=289289&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructArrayUtil.java (original) +++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructArrayUtil.java Thu Sep 15 11:52:11 2005 @@ -1,98 +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; - - } -} +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; + + } +} Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructArrayUtil.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructUtil.java URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructUtil.java?rev=289289&r1=289288&r2=289289&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructUtil.java (original) +++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructUtil.java Thu Sep 15 11:52:11 2005 @@ -1,56 +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; - } -} +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; + } +} Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1StructUtil.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1VoidUtil.java URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1VoidUtil.java?rev=289289&r1=289288&r2=289289&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1VoidUtil.java (original) +++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1VoidUtil.java Thu Sep 15 11:52:11 2005 @@ -1,39 +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; - - } -} +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; + + } +} Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round1/util/Round1VoidUtil.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/SunRound2Client.java URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/SunRound2Client.java?rev=289289&r1=289288&r2=289289&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/SunRound2Client.java (original) +++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/SunRound2Client.java Thu Sep 15 11:52:11 2005 @@ -1,70 +1,70 @@ -package org.apache.axis2.interopt.whitemesa.round2; - -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.round2.util.SunRound2ClientUtil; -import org.apache.axis2.soap.SOAPEnvelope; -import javax.xml.namespace.QName; -import java.net.URL; - -/* -* 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 - */ - -public class SunRound2Client { - - public static SOAPEnvelope sendMsg(SunRound2ClientUtil util, String epUrl, String soapAction) throws AxisFault { - - SOAPEnvelope resEnv = null; -// EndpointReference targetEPR = new EndpointReference(AddressingConstants.WSA_TO,"http://demo.openlinksw.com:80/Interop"); - Call call = null; - URL url = null; - try { - call = new Call("target/test-resources/intregrationRepo"); - url = new URL(epUrl); - call.setTo(new EndpointReference(url.toString())); - call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false); - call.setSoapAction(soapAction); - - AxisConfiguration axisConfig = new AxisConfigurationImpl(); - ConfigurationContext configCtx = new ConfigurationContext(axisConfig); - MessageContext msgCtx = new MessageContext(configCtx); - OperationDescription opDesc = new OperationDescription(new QName("")); - SOAPEnvelope requestEnvilope = util.getEchoSoapEnvelope(); - msgCtx.setEnvelope(requestEnvilope); - MessageContext responseMCtx = call.invokeBlocking(opDesc, msgCtx); - resEnv = responseMCtx.getEnvelope(); - - } catch (Exception e) { - throw new AxisFault(e); - } - return resEnv; - } -} +package org.apache.axis2.interopt.whitemesa.round2; + +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.round2.util.SunRound2ClientUtil; +import org.apache.axis2.soap.SOAPEnvelope; +import javax.xml.namespace.QName; +import java.net.URL; + +/* +* 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 + */ + +public class SunRound2Client { + + public static SOAPEnvelope sendMsg(SunRound2ClientUtil util, String epUrl, String soapAction) throws AxisFault { + + SOAPEnvelope resEnv = null; +// EndpointReference targetEPR = new EndpointReference(AddressingConstants.WSA_TO,"http://demo.openlinksw.com:80/Interop"); + Call call = null; + URL url = null; + try { + call = new Call("target/test-resources/intregrationRepo"); + url = new URL(epUrl); + call.setTo(new EndpointReference(url.toString())); + call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false); + call.setSoapAction(soapAction); + + AxisConfiguration axisConfig = new AxisConfigurationImpl(); + ConfigurationContext configCtx = new ConfigurationContext(axisConfig); + MessageContext msgCtx = new MessageContext(configCtx); + OperationDescription opDesc = new OperationDescription(new QName("")); + SOAPEnvelope requestEnvilope = util.getEchoSoapEnvelope(); + msgCtx.setEnvelope(requestEnvilope); + MessageContext responseMCtx = call.invokeBlocking(opDesc, msgCtx); + resEnv = responseMCtx.getEnvelope(); + + } catch (Exception e) { + throw new AxisFault(e); + } + return resEnv; + } +} Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/SunRound2Client.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/GroupbEcho2DStringArrayUtil.java URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/GroupbEcho2DStringArrayUtil.java?rev=289289&r1=289288&r2=289289&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/GroupbEcho2DStringArrayUtil.java (original) +++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/GroupbEcho2DStringArrayUtil.java Thu Sep 15 11:52:11 2005 @@ -1,92 +1,92 @@ -package org.apache.axis2.interopt.whitemesa.round2.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; - -/* -* 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 - */ - -public class GroupbEcho2DStringArrayUtil implements SunRound2ClientUtil{ - - 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"); - 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://schemas.xmlsoap.org/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; - } - -} -/** - - - - - - - - - -*/ +package org.apache.axis2.interopt.whitemesa.round2.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; + +/* +* 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 + */ + +public class GroupbEcho2DStringArrayUtil implements SunRound2ClientUtil{ + + 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"); + 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://schemas.xmlsoap.org/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; + } + +} +/** + + + + + + + + + +*/ Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/whitemesa/round2/util/GroupbEcho2DStringArrayUtil.java ------------------------------------------------------------------------------ svn:eol-style = native