You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2006/01/31 22:14:40 UTC
svn commit: r373912 [10/10] - in
/webservices/axis2/trunk/java/modules/integration:
itest-resources/interop/whitemesa/round2/
itest-resources/interop/whitemesa/round3/ itest/test/interop/mtom/
itest/test/interop/whitemesa/round1/ itest/test/interop/whi...
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/GELinkedListUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/GELinkedListUtil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/GELinkedListUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/GELinkedListUtil.java Tue Jan 31 13:13:01 2006
@@ -1,89 +1,90 @@
-/*
- * 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.
- */
-
-package test.interop.whitemesa.round3.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;
-import org.apache.axis2.soap.SOAPBody;
-
-
-public class GELinkedListUtil implements SunRound3ClientUtil {
-
- public SOAPEnvelope getEchoSoapEnvelope() {
-
- SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory();
- SOAPEnvelope reqEnv = omfactory.getDefaultEnvelope();
- reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
- reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
- reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
- reqEnv.declareNamespace("http://soapinterop.org/", "tns");
- reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
- reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi");
-
-
- OMElement operation = omfactory.createOMElement("echoLinkedList", "http://soapinterop.org/WSDLInteropTestRpcEnc", null);
- SOAPBody body = omfactory.createSOAPBody(reqEnv);
- body.addChild(operation);
- operation.addAttribute("soapenv:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", null);
-
- OMElement part = omfactory.createOMElement("param0", "", null);
- part.addAttribute("xsi:type", "s:List", null);
-
-
- OMElement value00 = omfactory.createOMElement("varInt", "", null);
- value00.addAttribute("xsi:type", "xsd:int", null);
- value00.addChild(omfactory.createText("255"));
- OMElement value01 = omfactory.createOMElement("varString", "", null);
- value01.addAttribute("xsi:type", "xsd:string", null);
- value01.addChild(omfactory.createText("Axis2"));
- OMElement value02 = omfactory.createOMElement("child", "", null);
- value02.addAttribute("href", "#ID1", null);
-
-
- OMElement part2 = omfactory.createOMElement("item0", null);
- part2.addAttribute("soapenv:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", null);
-
- part2.addAttribute("xsi:type", "s:List", null);
- part2.addAttribute("id", "ID1", null);
-
-
- OMElement value10 = omfactory.createOMElement("varInt", "", null);
- value10.addAttribute("xsi:type", "xsd:int", null);
- value10.addChild(omfactory.createText("21"));
- OMElement value11 = omfactory.createOMElement("varString", "", null);
- value11.addAttribute("xsi:type", "xsd:string", null);
- value11.addChild(omfactory.createText("LSF"));
- OMElement value12 = omfactory.createOMElement("child", "", null);
- value12.addAttribute("xsi:type", "xsd:anyType", null);
- value12.addAttribute(" xsi:nil", "1", null);
- part.addChild(value00);
- part.addChild(value01);
- part.addChild(value02);
-
- part2.addChild(value10);
- part2.addChild(value11);
- part2.addChild(value12);
-
- operation.addChild(part);
- body.addChild(part2);
-
- return reqEnv;
-
- }
-}
+/*
+ * 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.
+ */
+
+package test.interop.whitemesa.round3.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;
+import org.apache.axis2.soap.SOAPBody;
+import test.interop.whitemesa.SunClientUtil;
+
+
+public class GELinkedListUtil implements SunClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory();
+ SOAPEnvelope reqEnv = omfactory.getDefaultEnvelope();
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ reqEnv.declareNamespace("http://soapinterop.org/", "tns");
+ reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi");
+
+
+ OMElement operation = omfactory.createOMElement("echoLinkedList", "http://soapinterop.org/WSDLInteropTestRpcEnc", null);
+ SOAPBody body = omfactory.createSOAPBody(reqEnv);
+ body.addChild(operation);
+ operation.addAttribute("soapenv:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", null);
+
+ OMElement part = omfactory.createOMElement("param0", "", null);
+ part.addAttribute("xsi:type", "s:List", null);
+
+
+ OMElement value00 = omfactory.createOMElement("varInt", "", null);
+ value00.addAttribute("xsi:type", "xsd:int", null);
+ value00.addChild(omfactory.createText("255"));
+ OMElement value01 = omfactory.createOMElement("varString", "", null);
+ value01.addAttribute("xsi:type", "xsd:string", null);
+ value01.addChild(omfactory.createText("Axis2"));
+ OMElement value02 = omfactory.createOMElement("child", "", null);
+ value02.addAttribute("href", "#ID1", null);
+
+
+ OMElement part2 = omfactory.createOMElement("item0", null);
+ part2.addAttribute("soapenv:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", null);
+
+ part2.addAttribute("xsi:type", "s:List", null);
+ part2.addAttribute("id", "ID1", null);
+
+
+ OMElement value10 = omfactory.createOMElement("varInt", "", null);
+ value10.addAttribute("xsi:type", "xsd:int", null);
+ value10.addChild(omfactory.createText("21"));
+ OMElement value11 = omfactory.createOMElement("varString", "", null);
+ value11.addAttribute("xsi:type", "xsd:string", null);
+ value11.addChild(omfactory.createText("LSF"));
+ OMElement value12 = omfactory.createOMElement("child", "", null);
+ value12.addAttribute("xsi:type", "xsd:anyType", null);
+ value12.addAttribute(" xsi:nil", "1", null);
+ part.addChild(value00);
+ part.addChild(value01);
+ part.addChild(value02);
+
+ part2.addChild(value10);
+ part2.addChild(value11);
+ part2.addChild(value12);
+
+ operation.addChild(part);
+ body.addChild(part2);
+
+ return reqEnv;
+
+ }
+}
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/GEListUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/GEListUtil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/GEListUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/GEListUtil.java Tue Jan 31 13:13:01 2006
@@ -20,8 +20,9 @@
import org.apache.axis2.om.OMElement;
import org.apache.axis2.soap.SOAPEnvelope;
import org.apache.axis2.soap.SOAPFactory;
+import test.interop.whitemesa.SunClientUtil;
-public class GEListUtil implements SunRound3ClientUtil {
+public class GEListUtil implements SunClientUtil {
public SOAPEnvelope getEchoSoapEnvelope() {
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/GFHeaderTestUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/GFHeaderTestUtil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/GFHeaderTestUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/GFHeaderTestUtil.java Tue Jan 31 13:13:01 2006
@@ -20,9 +20,10 @@
import org.apache.axis2.om.OMElement;
import org.apache.axis2.soap.SOAPEnvelope;
import org.apache.axis2.soap.SOAPFactory;
+import test.interop.whitemesa.SunClientUtil;
-public class GFHeaderTestUtil implements SunRound3ClientUtil{
+public class GFHeaderTestUtil implements SunClientUtil {
public SOAPEnvelope getEchoSoapEnvelope() {
@@ -33,7 +34,7 @@
reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
reqEnv.declareNamespace("http://soapinterop.org/", "tns");
reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
- reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi");
OMElement operation = omfactory.createOMElement("echoStringParam", "http://soapinterop.org/xsd", null);
reqEnv.getBody().addChild(operation);
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/Round3EmptySAEchoStringUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/Round3EmptySAEchoStringUtil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/Round3EmptySAEchoStringUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/Round3EmptySAEchoStringUtil.java Tue Jan 31 13:13:01 2006
@@ -20,9 +20,10 @@
import org.apache.axis2.om.OMElement;
import org.apache.axis2.soap.SOAPEnvelope;
import org.apache.axis2.soap.SOAPFactory;
+import test.interop.whitemesa.SunClientUtil;
-public class Round3EmptySAEchoStringUtil implements SunRound3ClientUtil{
+public class Round3EmptySAEchoStringUtil implements SunClientUtil {
public SOAPEnvelope getEchoSoapEnvelope() {
SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory();
@@ -32,7 +33,7 @@
reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
reqEnv.declareNamespace("http://soapinterop/", "tns");
reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
- reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi");
OMElement operation = omfactory.createOMElement("echoString", "http://soapinterop/", null);
reqEnv.getBody().addChild(operation);
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/SunRound3ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/SunRound3ClientUtil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/SunRound3ClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round3/util/SunRound3ClientUtil.java Tue Jan 31 13:13:01 2006
@@ -1,23 +0,0 @@
-/*
- * 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.
- */
-
-package test.interop.whitemesa.round3.util;
-
-import org.apache.axis2.soap.SOAPEnvelope;
-
-public interface SunRound3ClientUtil {
- SOAPEnvelope getEchoSoapEnvelope();
-}
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/EchoBlockingClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/EchoBlockingClient.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/EchoBlockingClient.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/EchoBlockingClient.java Tue Jan 31 13:13:01 2006
@@ -1,61 +0,0 @@
-/*
- * 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.
- */
-
-package test.interop.whitemesa.round4.complex;
-
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.Constants;
-import org.apache.axis2.addressing.EndpointReference;
-import org.apache.axis2.client.Options;
-import org.apache.axis2.client.ServiceClient;
-import org.apache.axis2.context.ConfigurationContext;
-import org.apache.axis2.context.ConfigurationContextFactory;
-import org.apache.axis2.om.OMElement;
-import test.interop.whitemesa.round4.complex.utils.WhitemesaR4ClientUtil;
-
-
-public class EchoBlockingClient {
-
- public OMElement sendMsg(WhitemesaR4ClientUtil util, String soapAction) throws AxisFault {
- OMElement firstchild = null;
-
- EndpointReference targetEPR = new EndpointReference("http://www.whitemesa.net/interop/r4/fault-rpc-complex");
-
- try {
- Options options = new Options();
- options.setTo(targetEPR);
- options.setExceptionToBeThrownOnSOAPFault(false);
- options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
- options.setSoapAction(soapAction);
-
- //Blocking invocation
-
- ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo",null);
- ServiceClient sender = new ServiceClient(configContext,null);
- sender.setOptions(options);
- options.setTo(targetEPR);
- firstchild = sender.sendReceive(util.getEchoOMElement());
-
-
- } catch (Exception e) {
- throw new AxisFault(e);
- }
- return firstchild;
-
- }
-
-}
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoBaseStructFaultClientutil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoBaseStructFaultClientutil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoBaseStructFaultClientutil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoBaseStructFaultClientutil.java Tue Jan 31 13:13:01 2006
@@ -18,39 +18,41 @@
import org.apache.axis2.om.OMAbstractFactory;
import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMFactory;
import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import test.interop.whitemesa.SunClientUtil;
-public class EchoBaseStructFaultClientutil implements WhitemesaR4ClientUtil{
+public class EchoBaseStructFaultClientutil implements SunClientUtil {
- public OMElement getEchoOMElement() {
+ public SOAPEnvelope getEchoSoapEnvelope() {
- OMFactory fac = OMAbstractFactory.getOMFactory();
+ SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
+ SOAPEnvelope reqEnv = fac.getDefaultEnvelope();
OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
OMElement method = fac.createOMElement("echoBaseStructFault", omNs);
- method.addAttribute("soapenv:encodingStyle","http://schemas.xmlsoap.org/soap/encoding/",null);
- method.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance",null);
- method.addAttribute("xmlns:xsd","http://www.w3.org/2001/XMLSchema",null);
+ method.addAttribute("soapenv:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", null);
+ method.addAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance", null);
+ method.addAttribute("xmlns:xsd", "http://www.w3.org/2001/XMLSchema", null);
method.addAttribute("xmlns:ns2", "http://soapinterop.org/types", null);
method.addAttribute("xmlns:wsdl", "http://schemas.xmlsoap.org/wsdl/", null);
+ reqEnv.getBody().addChild(method);
- OMElement value1 = fac.createOMElement("param", null);
- OMElement value2=fac.createOMElement("floatMessage",null);
- OMElement value3=fac.createOMElement("shortMessage ",null);
+ OMElement para = fac.createOMElement("param", null);
+ OMElement floatMsg = fac.createOMElement("floatMessage", null);
+ OMElement shortMsg = fac.createOMElement("shortMessage ", null);
- value2.addChild(fac.createText(value2, "10.3"));
- value3.addChild(fac.createText(value3, "1.55"));
+ floatMsg.addChild(fac.createText(floatMsg, "10.3"));
+ shortMsg.addChild(fac.createText(shortMsg, "10"));
+ para.addChild(floatMsg);
+ para.addChild(shortMsg);
+ method.addChild(para);
- value1.addChild(value2);
- value1.addChild(value3);
- method.addChild(value1);
-
-
- return method;
+ return reqEnv;
}
}
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoExtendedStructFaultClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoExtendedStructFaultClientUtil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoExtendedStructFaultClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoExtendedStructFaultClientUtil.java Tue Jan 31 13:13:01 2006
@@ -18,50 +18,45 @@
import org.apache.axis2.om.OMAbstractFactory;
import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMFactory;
import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import test.interop.whitemesa.SunClientUtil;
-public class EchoExtendedStructFaultClientUtil implements WhitemesaR4ClientUtil{
-
- public OMElement getEchoOMElement() {
+public class EchoExtendedStructFaultClientUtil implements SunClientUtil {
+ public SOAPEnvelope getEchoSoapEnvelope() {
- OMFactory fac = OMAbstractFactory.getOMFactory();
+ SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
+ SOAPEnvelope reqEnv = fac.getDefaultEnvelope();
OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
+ OMNamespace envNs = reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "SOAP-ENV");
OMElement method = fac.createOMElement("echoExtendedStructFault", omNs);
- method.addAttribute("soapenv:encodingStyle","http://schemas.xmlsoap.org/soap/encoding/",null);
+ method.declareNamespace(envNs);
+ method.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", envNs);
+ reqEnv.getBody().addChild(method);
+
+ OMElement param = fac.createOMElement("param", null);
+ OMElement floatMsg = fac.createOMElement("floatMessage", null);
+ OMElement shortMsg = fac.createOMElement("shortMessage", null);
+ OMElement stringMsg = fac.createOMElement("stringMessage", null);
+ OMElement intMsg = fac.createOMElement("intMessage", null);
+ OMElement anotherMsg = fac.createOMElement("anotherIntMessage", null);
+
+ floatMsg.addChild(fac.createText(floatMsg, "2.023"));
+ shortMsg.addChild(fac.createText(shortMsg, "13"));
+ stringMsg.addChild(fac.createText(stringMsg, "String"));
+ intMsg.addChild(fac.createText(intMsg, "6"));
+ anotherMsg.addChild(fac.createText(anotherMsg, "10"));
+
+ param.addChild(floatMsg);
+ param.addChild(shortMsg);
+ param.addChild(stringMsg);
+ param.addChild(intMsg);
+ param.addChild(anotherMsg);
+ method.addChild(param);
- OMElement value1 = fac.createOMElement("param", null);
- OMElement value2=fac.createOMElement("floatMessage",null);
- OMElement value3=fac.createOMElement("shortMessage",null);
- OMElement value4=fac.createOMElement("stringMessage",null);
- OMElement value5=fac.createOMElement("intMessage",null);
- OMElement value6=fac.createOMElement("anotherIntMessage",null);
-
-
-
- value2.addChild(fac.createText(value2, ".023"));
- value3.addChild(fac.createText(value3, "1.3"));
- value4.addChild(fac.createText(value4, "hi"));
- value5.addChild(fac.createText(value5, "6"));
- value6.addChild(fac.createText(value6, "78"));
-
-
-
- value1.addChild(value2);
- value1.addChild(value3);
- value1.addChild(value4);
- value1.addChild(value5);
- value1.addChild(value6);
-
- method.addChild(value1);
-
-
- return method;
+ return reqEnv;
}
-
-
-
-
}
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoMultipleFaults1ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoMultipleFaults1ClientUtil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoMultipleFaults1ClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoMultipleFaults1ClientUtil.java Tue Jan 31 13:13:01 2006
@@ -18,50 +18,52 @@
import org.apache.axis2.om.OMAbstractFactory;
import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMFactory;
import org.apache.axis2.om.OMNamespace;
-public class EchoMultipleFaults1ClientUtil implements WhitemesaR4ClientUtil{
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import test.interop.whitemesa.SunClientUtil;
- public OMElement getEchoOMElement() {
+public class EchoMultipleFaults1ClientUtil implements SunClientUtil {
- OMFactory fac = OMAbstractFactory.getOMFactory();
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
+ SOAPEnvelope reqEnv = fac.getDefaultEnvelope();
OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
+ OMNamespace envNs = reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "SOAP-ENV");
OMElement method = fac.createOMElement("echoMultipleFaults1", omNs);
- method.addAttribute("soapenv:encodingStyle","http://schemas.xmlsoap.org/soap/encoding/",null);
-
- OMElement value1 = fac.createOMElement("whichFault", null);
- OMElement value2=fac.createOMElement("param1",null);
- OMElement value3=fac.createOMElement("param2",null);
- OMElement value4 = fac.createOMElement("varInt", null);
- OMElement value5=fac.createOMElement("varFloat",null);
- OMElement value6=fac.createOMElement("varString",null);
- OMElement value7 = fac.createOMElement("floatMessage", null);
- OMElement value8=fac.createOMElement("shortMessage",null);
-
- value1.addChild(fac.createText(value1, "10"));
- value4.addChild(fac.createText(value4, "1"));
- value5.addChild(fac.createText(value5, "1.0"));
- value6.addChild(fac.createText(value6, "hi"));
- value7.addChild(fac.createText(value7, "0.23"));
- value8.addChild(fac.createText(value8, "45"));
-
-
- value2.addChild(value4);
- value2.addChild(value5);
- value2.addChild(value6);
-
- value3.addChild(value7);
- value3.addChild(value8);
- method.addChild(value1);
- method.addChild(value2);
- method.addChild(value3);
-
+ method.declareNamespace(envNs);
+ method.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", envNs);
+ reqEnv.getBody().addChild(method);
+
+ OMElement whichfault = fac.createOMElement("whichFault", null);
+ OMElement param1 = fac.createOMElement("param1", null);
+ OMElement param2 = fac.createOMElement("param2", null);
+ OMElement vInt = fac.createOMElement("varInt", null);
+ OMElement vFloat = fac.createOMElement("varFloat", null);
+ OMElement vString = fac.createOMElement("varString", null);
+ OMElement floatMsg = fac.createOMElement("floatMessage", null);
+ OMElement shortMsg = fac.createOMElement("shortMessage", null);
+
+ whichfault.addChild(fac.createText(whichfault, "10"));
+ vInt.addChild(fac.createText(vInt, "1"));
+ vFloat.addChild(fac.createText(vFloat, "1.0"));
+ vString.addChild(fac.createText(vString, "String"));
+ floatMsg.addChild(fac.createText(floatMsg, "0.23"));
+ shortMsg.addChild(fac.createText(shortMsg, "45"));
+
+ param1.addChild(vString);
+ param1.addChild(vInt);
+ param1.addChild(vFloat);
+
+ param2.addChild(floatMsg);
+ param2.addChild(shortMsg);
+ method.addChild(whichfault);
+ method.addChild(param1);
+ method.addChild(param2);
- return method;
+ return reqEnv;
}
-
-
-
}
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoMultipleFaults2ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoMultipleFaults2ClientUtil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoMultipleFaults2ClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoMultipleFaults2ClientUtil.java Tue Jan 31 13:13:01 2006
@@ -18,83 +18,82 @@
import org.apache.axis2.om.OMAbstractFactory;
import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMFactory;
import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import test.interop.whitemesa.SunClientUtil;
-public class EchoMultipleFaults2ClientUtil implements WhitemesaR4ClientUtil{
+public class EchoMultipleFaults2ClientUtil implements SunClientUtil {
- public OMElement getEchoOMElement() {
+ public SOAPEnvelope getEchoSoapEnvelope() {
- OMFactory fac = OMAbstractFactory.getOMFactory();
+ SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
+ SOAPEnvelope reqEnv = fac.getDefaultEnvelope();
OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
+ OMNamespace envNs = 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/2001/XMLSchema-instance","xsi");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema","xsd");
+ reqEnv.declareNamespace("http://soapinterop.org/types","m0");
OMElement method = fac.createOMElement("echoMultipleFaults2", omNs);
- method.addAttribute("soapenv:encodingStyle","http://schemas.xmlsoap.org/soap/encoding/",null);
+ method.declareNamespace(envNs);
+ method.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", envNs);
+ reqEnv.getBody().addChild(method);
+
+ OMElement wfault = fac.createOMElement("whichFault", null);
+ OMElement para1 = fac.createOMElement("param1", null);
+ OMElement para2 = fac.createOMElement("param2", null);
+ OMElement para3 = fac.createOMElement("param3", null);
+ OMElement floatMsg1 = fac.createOMElement("floatMessage", null);
+ OMElement shortMsg1 = fac.createOMElement("shortMessage", null);
+ OMElement floatMsg2 = fac.createOMElement("floatMessage", null);
+ OMElement shortMsg2 = fac.createOMElement("shortMessage", null);
+ OMElement stringMsg2 = fac.createOMElement("stringMessage", null);
+ OMElement intMsg2 = fac.createOMElement("intMessage", null);
+ OMElement anotherMsg2 = fac.createOMElement("anotherIntMessage", null);
+ OMElement floatMsg3 = fac.createOMElement("floatMessage", null);
+ OMElement shortMsg3 = fac.createOMElement("shortMessage", null);
+ OMElement stringMsg3 = fac.createOMElement("stringMessage", null);
+ OMElement intMsg3 = fac.createOMElement("intMessage", null);
+ OMElement anotherMsg3 = fac.createOMElement("anotherIntMessage", null);
+ OMElement booleanMsg3 = fac.createOMElement("booleanMessage", null);
+
+ wfault.addChild(fac.createText(wfault, "0"));
+ floatMsg1.addChild(fac.createText(floatMsg1, "7.22"));
+ shortMsg1.addChild(fac.createText(shortMsg1, "10"));
+ floatMsg2.addChild(fac.createText(floatMsg2, "1.414"));
+ shortMsg2.addChild(fac.createText(shortMsg2, "10"));
+ stringMsg2.addChild(fac.createText(stringMsg2, "String Value1"));
+ intMsg2.addChild(fac.createText(intMsg2, "1"));
+ anotherMsg2.addChild(fac.createText(anotherMsg2, "15"));
+ floatMsg3.addChild(fac.createText(floatMsg3, "0.569"));
+ shortMsg3.addChild(fac.createText(shortMsg3, "2"));
+ stringMsg3.addChild(fac.createText(stringMsg3, "String Value3"));
+ intMsg3.addChild(fac.createText(intMsg3, "14"));
+ anotherMsg3.addChild(fac.createText(anotherMsg3, "11"));
+ booleanMsg3.addChild(fac.createText(booleanMsg3, "true"));
+
+ para1.addChild(floatMsg1);
+ para1.addChild(shortMsg1);
+ para2.addChild(floatMsg2);
+ para2.addChild(shortMsg2);
+ para2.addChild(stringMsg2);
+ para2.addChild(intMsg2);
+ para2.addChild(anotherMsg2);
+ para3.addChild(floatMsg3);
+ para3.addChild(shortMsg3);
+ para3.addChild(stringMsg3);
+ para3.addChild(intMsg3);
+ para3.addChild(anotherMsg3);
+ para3.addChild(booleanMsg3);
+
+ method.addChild(wfault);
+ method.addChild(para1);
+ method.addChild(para2);
+ method.addChild(para3);
- OMElement value1 = fac.createOMElement("whichFault", null);
- OMElement value2=fac.createOMElement("param1",null);
- OMElement value3=fac.createOMElement("param2",null);
- OMElement value4=fac.createOMElement("param3",null);
- OMElement value5 = fac.createOMElement("floatMessage", null);
- OMElement value6=fac.createOMElement("shortMessage",null);
- OMElement value7=fac.createOMElement("floatMessage",null);
- OMElement value8=fac.createOMElement("shortMessage",null);
- OMElement value9 = fac.createOMElement("stringMessage", null);
- OMElement value10=fac.createOMElement("intMessage",null);
- OMElement value11=fac.createOMElement("anotherIntMessage",null);
- OMElement value12=fac.createOMElement("floatMessage",null);
- OMElement value13=fac.createOMElement("shortMessage",null);
- OMElement value14=fac.createOMElement("stringMessage",null);
- OMElement value15=fac.createOMElement("intMessage",null);
- OMElement value16=fac.createOMElement("anotherIntMessage",null);
- OMElement value17=fac.createOMElement("booleanMessage",null);
-
-
- value1.addChild(fac.createText(value1, "1"));
- value5.addChild(fac.createText(value5, "0.10"));
- value6.addChild(fac.createText(value6, "10"));
- value7.addChild(fac.createText(value7, "0.210"));
- value8.addChild(fac.createText(value8, "10"));
- value9.addChild(fac.createText(value9, "hi"));
- value10.addChild(fac.createText(value10, "10"));
- value11.addChild(fac.createText(value11, "15"));
- value12.addChild(fac.createText(value12, "0.569"));
- value13.addChild(fac.createText(value13, "10"));
- value14.addChild(fac.createText(value14, "Nadana"));
- value15.addChild(fac.createText(value15, "14"));
- value16.addChild(fac.createText(value16, "89"));
- value17.addChild(fac.createText(value17, "1"));
-
- value2.addChild(value5);
- value2.addChild(value6);
- value3.addChild(value7);
- value3.addChild(value8);
- value3.addChild(value9);
- value3.addChild(value10);
- value3.addChild(value11);
- value4.addChild(value12);
- value4.addChild(value13);
- value4.addChild(value14);
- value4.addChild(value15);
- value4.addChild(value16);
- value4.addChild(value17);
-
-
-
- method.addChild(value1);
- method.addChild(value2);
- method.addChild(value3);
- method.addChild(value4);
-
- return method;
+ return reqEnv;
}
-
-
-
-
-
-
-
-
}
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoSOAPStructFaultClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoSOAPStructFaultClientUtil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoSOAPStructFaultClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/EchoSOAPStructFaultClientUtil.java Tue Jan 31 13:13:01 2006
@@ -18,45 +18,58 @@
import org.apache.axis2.om.OMAbstractFactory;
import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMFactory;
import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import test.interop.whitemesa.SunClientUtil;
+
+public class EchoSOAPStructFaultClientUtil implements SunClientUtil {
+
+ public SOAPEnvelope getEchoSoapEnvelope() {
+ SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
+ SOAPEnvelope reqEnv = fac.getDefaultEnvelope();
+
+ OMNamespace omNs = reqEnv.declareNamespace("http://soapinterop.org/wsdl", "m");
+ OMNamespace typeNs = reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
-public class EchoSOAPStructFaultClientUtil implements WhitemesaR4ClientUtil{
-
- public OMElement getEchoOMElement() {
-
- OMFactory fac = OMAbstractFactory.getOMFactory();
-
- OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://soapinterop.org/types", "m0");
OMElement method = fac.createOMElement("echoSOAPStructFault", omNs);
- method.addAttribute("soapenv:encodingStyle","http://schemas.xmlsoap.org/soap/encoding/",null);
- method.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance",null);
-
- method.addAttribute("xmlns:ns2", "http://soapinterop.org/types", null);
- method.addAttribute("xmlns:wsdl", "http://schemas.xmlsoap.org/wsdl/", null);
-
- OMElement value1 = fac.createOMElement("param", null);
- OMElement value2 = fac.createOMElement("soapStruct", null);
- OMElement value3 = fac.createOMElement("varString", null);
- OMElement value4 = fac.createOMElement("varInt", null);
- OMElement value5 = fac.createOMElement("varFloat", null);
+ OMNamespace soapEnvNs = method.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "SOAP-ENV");
+ method.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", soapEnvNs);
+ reqEnv.getBody().addChild(method);
- value3.addChild(fac.createText(value3, "hi"));
- value4.addChild(fac.createText(value4, "10"));
- value5.addChild(fac.createText(value5, "5.3"));
+ OMElement param = fac.createOMElement("param", null);
+ OMElement sstruct = fac.createOMElement("soapStruct", null);
+ OMElement vstring = fac.createOMElement("varString", null);
+ OMElement vint = fac.createOMElement("varInt", null);
+ OMElement vfloat = fac.createOMElement("varFloat", null);
+
+ param.declareNamespace(typeNs);
+ sstruct.declareNamespace(typeNs);
+ vstring.declareNamespace(typeNs);
+ vint.declareNamespace(typeNs);
+ vfloat.declareNamespace(typeNs);
+
+ param.addAttribute("type", "m0:SOAPStructFault", typeNs);
+ sstruct.addAttribute("type", "m0:SOAPStruct", typeNs);
+ vstring.addAttribute("type", "xsd:string", typeNs);
+ vint.addAttribute("type", "xsd:int", typeNs);
+ vfloat.addAttribute("type", "xsd:float", typeNs);
+
+ vstring.addChild(fac.createText(vstring, "String"));
+ vint.addChild(fac.createText(vint, "0"));
+ vfloat.addChild(fac.createText(vfloat, "3.14159E0"));
+
+ sstruct.addChild(vstring);
+ sstruct.addChild(vint);
+ sstruct.addChild(vfloat);
+ param.addChild(sstruct);
+ method.addChild(param);
-
- value2.addChild(value5);
- value2.addChild(value4);
- value2.addChild(value3);
- value1.addChild(value2);
- method.addChild(value1);
-
-
- return method;
+ return reqEnv;
}
-
-
}
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/WhitemesaR4ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/WhitemesaR4ClientUtil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/WhitemesaR4ClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/complex/utils/WhitemesaR4ClientUtil.java Tue Jan 31 13:13:01 2006
@@ -1,24 +0,0 @@
-/*
- * 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.
- */
-
-package test.interop.whitemesa.round4.complex.utils;
-
-import org.apache.axis2.om.OMElement;
-
-public interface WhitemesaR4ClientUtil {
- OMElement getEchoOMElement();
-
-}
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/EchoBlockingClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/EchoBlockingClient.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/EchoBlockingClient.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/EchoBlockingClient.java Tue Jan 31 13:13:01 2006
@@ -1,61 +0,0 @@
-/*
- * 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.
- */
-
-package test.interop.whitemesa.round4.simple;
-
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.Constants;
-import org.apache.axis2.addressing.EndpointReference;
-import org.apache.axis2.client.Options;
-import org.apache.axis2.client.ServiceClient;
-import org.apache.axis2.context.ConfigurationContext;
-import org.apache.axis2.context.ConfigurationContextFactory;
-import org.apache.axis2.om.OMElement;
-import test.interop.whitemesa.round4.simple.utils.WhitemesaR4ClientUtil;
-
-
-public class EchoBlockingClient {
-
-
- public OMElement sendMsg(WhitemesaR4ClientUtil util, String soapAction) throws AxisFault {
- OMElement firstchild ;
- EndpointReference targetEPR = new EndpointReference("http://www.whitemesa.net:80/interop/r4/fault-rpc");
-
- try {
- Options options = new Options();
- options.setTo(targetEPR);
- options.setExceptionToBeThrownOnSOAPFault(false);
- options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
- options.setSoapAction(soapAction);
- //Blocking invocation
-
- ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
- ServiceClient sender = new ServiceClient(configContext, null);
- sender.setOptions(options);
- options.setTo(targetEPR);
- firstchild = sender.sendReceive(util.getEchoOMElement());
-
-
- } catch (Exception e) {
- throw new AxisFault(e);
- }
- return firstchild;
-
- }
-
-}
-
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoEmptyFaultClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoEmptyFaultClientUtil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoEmptyFaultClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoEmptyFaultClientUtil.java Tue Jan 31 13:13:01 2006
@@ -18,20 +18,26 @@
import org.apache.axis2.om.OMAbstractFactory;
import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMFactory;
import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import test.interop.whitemesa.SunClientUtil;
-public class EchoEmptyFaultClientUtil implements WhitemesaR4ClientUtil {
+public class EchoEmptyFaultClientUtil implements SunClientUtil {
- public OMElement getEchoOMElement() {
- OMFactory fac = OMAbstractFactory.getOMFactory();
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
+ SOAPEnvelope reqEnv = fac.getDefaultEnvelope();
OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
+ OMNamespace envNs = reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
- OMElement method = fac.createOMElement("echoEmptyFault", omNs);
- method.addAttribute("soapenv:encodingStyle","http://schemas.xmlsoap.org/soap/encoding/",null);
+ OMElement operation = fac.createOMElement("echoEmptyFault", omNs);
+ operation.declareNamespace(envNs);
+ operation.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", envNs);
+ reqEnv.getBody().addChild(operation);
- return method;
+ return reqEnv;
}
-
}
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoIntArrayFaultClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoIntArrayFaultClientUtil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoIntArrayFaultClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoIntArrayFaultClientUtil.java Tue Jan 31 13:13:01 2006
@@ -18,51 +18,51 @@
import org.apache.axis2.om.OMAbstractFactory;
import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMFactory;
import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import test.interop.whitemesa.SunClientUtil;
+
+public class EchoIntArrayFaultClientUtil implements SunClientUtil {
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory();
+ SOAPEnvelope reqEnv = omfactory.getDefaultEnvelope();
+
+ OMNamespace omNs = omfactory.createOMNamespace("http://soapinterop.org/wsdl", "m");
+ OMNamespace envNs = reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "SOAP-ENV");
+ OMNamespace encNs = reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ OMNamespace typeNs = reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "m0");
+
+ OMElement operation = omfactory.createOMElement("echoIntArrayFault", omNs);
+ operation.declareNamespace(envNs);
+ reqEnv.getBody().addChild(operation);
+ operation.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", envNs);
+
+ OMElement part = omfactory.createOMElement("param", null);
+ part.declareNamespace(encNs);
+ part.declareNamespace(typeNs);
+ part.addAttribute("arrayType", "m0:int[3]", encNs);
+ part.addAttribute("type", "SOAP-ENC:Array", typeNs);
+ OMElement item0 = omfactory.createOMElement("item0", null);
+ item0.declareNamespace(typeNs);
+ item0.addAttribute("type", "m0:int", typeNs);
+ item0.addChild(omfactory.createText("451"));
+ OMElement item1 = omfactory.createOMElement("item1", null);
+ item1.declareNamespace(typeNs);
+ item1.addAttribute("type", "m0:int", typeNs);
+ item1.addChild(omfactory.createText("425"));
+ OMElement item2 = omfactory.createOMElement("item2", null);
+ item2.declareNamespace(typeNs);
+ item2.addAttribute("type", "m0:int", typeNs);
+ item2.addChild(omfactory.createText("2523"));
+
+ part.addChild(item0);
+ part.addChild(item1);
+ part.addChild(item2);
-public class EchoIntArrayFaultClientUtil implements WhitemesaR4ClientUtil {
-
-
- public OMElement getEchoOMElement() {
- OMFactory fac = OMAbstractFactory.getOMFactory();
-
- OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
-
- OMElement method = fac.createOMElement("echoIntArrayFault", omNs);
- method.addAttribute("soapenv:encodingStyle","http://schemas.xmlsoap.org/soap/encoding/",null);
-
-
- OMElement value1 = fac.createOMElement("param", null);
- OMElement value2=fac.createOMElement("Item",null);
- OMElement value3=fac.createOMElement("Item",null);
- OMElement value4=fac.createOMElement("Item",null);
-
-
- value1.addAttribute("soapenc:arrayType","nsa:int[3]",null);
- value1.addAttribute("soapenc:offset","[0]",null);
- value1.addAttribute("xmlns:soapenc","http://schemas.xmlsoap.org/soap/encoding/",null);
- value1.addAttribute("xmlns:nsa","http://www.w3.org/2001/XMLSchema",null);
-
-
- value2.addChild(fac.createText(value2, "10"));
- value3.addChild(fac.createText(value3, "11"));
- value4.addChild(fac.createText(value4, "1"));
-
- value1.addChild(value2);
- value1.addChild(value3);
- value1.addChild(value4);
-
-
-
- method.addChild(value1);
-
-
-
- return method;
+ operation.addChild(part);
+ return reqEnv;
}
-
-
-
-
-}
+}
\ No newline at end of file
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoMultipleFaults1ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoMultipleFaults1ClientUtil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoMultipleFaults1ClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoMultipleFaults1ClientUtil.java Tue Jan 31 13:13:01 2006
@@ -18,46 +18,56 @@
import org.apache.axis2.om.OMAbstractFactory;
import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMFactory;
import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import test.interop.whitemesa.SunClientUtil;
+
+public class EchoMultipleFaults1ClientUtil implements SunClientUtil {
+ public SOAPEnvelope getEchoSoapEnvelope() {
+
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory();
+ SOAPEnvelope reqEnv = omfactory.getDefaultEnvelope();
+
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "m0");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ OMNamespace omNs = omfactory.createOMNamespace("http://soapinterop.org/wsdl", "m");
+ OMNamespace envNs = reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "SOAP-ENV");
+ OMNamespace typeNs = reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi");
+ OMNamespace encNs1 = reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+
+ OMElement operation = omfactory.createOMElement("echoMultipleFaults1", omNs);
+ operation.declareNamespace(envNs);
+ operation.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", envNs);
+ reqEnv.getBody().addChild(operation);
+
+ OMElement wfault = omfactory.createOMElement("whichFault", null);
+ OMElement param1 = omfactory.createOMElement("param1", null);
+ OMElement param2 = omfactory.createOMElement("param2", null);
+ OMElement item0 = omfactory.createOMElement("item0", null);
+
+ wfault.declareNamespace(typeNs);
+ param1.declareNamespace(typeNs);
+ param2.declareNamespace(typeNs);
+ param2.declareNamespace(encNs1);
+ item0.declareNamespace(typeNs);
+
+ wfault.addAttribute("type", "xsd:int", typeNs);
+ param1.addAttribute("type", "xsd:string", typeNs);
+ param2.addAttribute("type", "SOAP-ENC:Array", typeNs);
+ param2.addAttribute("arrayType", "xsd:float[1]", encNs1);
+ item0.addAttribute("type", "xsd:float", typeNs);
+
+ wfault.addChild(omfactory.createText(wfault, "0"));
+ param1.addChild(omfactory.createText(param1, "String"));
+ item0.addChild(omfactory.createText(item0, "1.3456"));
+ param2.addChild(item0);
+
+ operation.addChild(wfault);
+ operation.addChild(param1);
+ operation.addChild(param2);
-public class EchoMultipleFaults1ClientUtil implements WhitemesaR4ClientUtil {
+ return reqEnv;
- public OMElement getEchoOMElement() {
-
- OMFactory fac = OMAbstractFactory.getOMFactory();
- OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
-
- OMElement method = fac.createOMElement("echoMultipleFaults1", omNs);
- method.addAttribute("soapenv:encodingStyle","http://schemas.xmlsoap.org/soap/encoding/",null);
-
-
- OMElement value = fac.createOMElement("whichFault", null);
- OMElement value1 = fac.createOMElement("param1", null);
- OMElement value2 = fac.createOMElement("param2", null);
- OMElement value3 = fac.createOMElement("Item", null);
- OMElement value4 = fac.createOMElement("Item", null);
- OMElement value5 = fac.createOMElement("Item", null);
-
-
-
- value.addChild(fac.createText(value, "10"));
- value1.addChild(fac.createText(value1, "hi"));
- value3.addChild(fac.createText(value3, "1.0"));
- value4.addChild(fac.createText(value4, "20.6"));
- value5.addChild(fac.createText(value5, "2.6"));
-
- value2.addChild(value3);
- value2.addChild(value4);
- value2.addChild(value5);
-
- method.addChild(value);
- method.addChild(value1);
- method.addChild(value2);
-
-
- return method;
}
-
-
}
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoMultipleFaults2ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoMultipleFaults2ClientUtil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoMultipleFaults2ClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoMultipleFaults2ClientUtil.java Tue Jan 31 13:13:01 2006
@@ -18,52 +18,73 @@
import org.apache.axis2.om.OMAbstractFactory;
import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMFactory;
import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import test.interop.whitemesa.SunClientUtil;
-public class EchoMultipleFaults2ClientUtil implements WhitemesaR4ClientUtil{
+public class EchoMultipleFaults2ClientUtil implements SunClientUtil {
- public OMElement getEchoOMElement() {
- OMFactory fac = OMAbstractFactory.getOMFactory();
+ public SOAPEnvelope getEchoSoapEnvelope() {
- OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
-
-
- OMElement method = fac.createOMElement("echoMultipleFaults2", omNs);
- method.addAttribute("soapenv:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/",null);
-
- OMElement value = fac.createOMElement("whichFault", null);
- OMElement value1 = fac.createOMElement("param1", null);
- OMElement value2 = fac.createOMElement("param2", null);
- OMElement value3 = fac.createOMElement("param3", null);
-
- OMElement value4 = fac.createOMElement("Item", null);
- OMElement value5 = fac.createOMElement("Item", null);
- OMElement value6 = fac.createOMElement("Item", null);
-
- value3.addAttribute("xmlns:nsa","http://www.w3.org/2001/XMLSchema",null);
- value3.addAttribute("soapenc:arrayType","nsa:string[3]", null);
- value3.addAttribute("soapenc:offset","[0]", null);
- value3.addAttribute("xmlns:soapenc","http://schemas.xmlsoap.org/soap/encoding/" , null);
-
- value.addChild(fac.createText(value, "10"));
- value1.addChild(fac.createText(value1, "hi"));
- value2.addChild(fac.createText(value3, "0.236"));
- value4.addChild(fac.createText(value4, "String1"));
- value5.addChild(fac.createText(value5, "String2"));
- value6.addChild(fac.createText(value6, "String3"));
-
- value3.addChild(value4);
- value3.addChild(value5);
- value3.addChild(value6);
-
- method.addChild(value);
- method.addChild(value1);
- method.addChild(value2);
- method.addChild(value3);
+ SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
+ SOAPEnvelope reqEnv = fac.getDefaultEnvelope();
+ OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
+ OMNamespace envNs = reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "SOAP-ENV");
+ OMNamespace encNs = reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+ OMNamespace typeNs = reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "m0");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+
+ OMElement operation = fac.createOMElement("echoMultipleFaults2", omNs);
+ operation.declareNamespace(envNs);
+ operation.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", envNs);
+ reqEnv.getBody().addChild(operation);
+
+ OMElement wfault = fac.createOMElement("whichFault", null);
+ wfault.declareNamespace(typeNs);
+ wfault.addAttribute("type", "xsd:int", typeNs);
+ OMElement para1 = fac.createOMElement("param1", null);
+ para1.declareNamespace(typeNs);
+ para1.addAttribute("type", "xsd:string", typeNs);
+ OMElement para2 = fac.createOMElement("param2", null);
+ para2.declareNamespace(typeNs);
+ para2.addAttribute("type", "xsd:float", typeNs);
+ OMElement para3 = fac.createOMElement("param3", null);
+ para3.declareNamespace(typeNs);
+ para3.declareNamespace(encNs);
+ para3.addAttribute("type", "SOAP-ENC:Array", typeNs);
+ para3.addAttribute("arrayType", "xsd:string[3]", encNs);
+
+ OMElement item0 = fac.createOMElement("Item", null);
+ OMElement item1 = fac.createOMElement("Item", null);
+ OMElement item2 = fac.createOMElement("Item", null);
+
+ item0.declareNamespace(typeNs);
+ item1.declareNamespace(typeNs);
+ item2.declareNamespace(typeNs);
+ item0.addAttribute("type", "xsd:string", typeNs);
+ item1.addAttribute("type", "xsd:string", typeNs);
+ item2.addAttribute("type", "xsd:string", typeNs);
+
+ wfault.addChild(fac.createText(wfault, "10"));
+ para1.addChild(fac.createText(para1, "String"));
+ para2.addChild(fac.createText(para2, "1.2365"));
+ item0.addChild(fac.createText(item0, "StringValue0"));
+ item1.addChild(fac.createText(item1, "StringValue1"));
+ item2.addChild(fac.createText(item2, "StringValue2"));
+
+ para3.addChild(item0);
+ para3.addChild(item1);
+ para3.addChild(item2);
+
+ operation.addChild(wfault);
+ operation.addChild(para1);
+ operation.addChild(para2);
+ operation.addChild(para3);
- return method;
+ return reqEnv;
}
}
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoMultipleFaults3Clientutil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoMultipleFaults3Clientutil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoMultipleFaults3Clientutil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoMultipleFaults3Clientutil.java Tue Jan 31 13:13:01 2006
@@ -18,38 +18,42 @@
import org.apache.axis2.om.OMAbstractFactory;
import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMFactory;
import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import test.interop.whitemesa.SunClientUtil;
-public class EchoMultipleFaults3Clientutil implements WhitemesaR4ClientUtil{
- public OMElement getEchoOMElement() {
- OMFactory fac = OMAbstractFactory.getOMFactory();
-
- OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
-
- OMElement method = fac.createOMElement("echoMultipleFaults3", omNs);
- method.addAttribute("soapenv:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/",null);
-
-
- OMElement value = fac.createOMElement("whichFault", null);
- OMElement value1 = fac.createOMElement("param1", null);
- OMElement value2 = fac.createOMElement("param2", null);
-
+public class EchoMultipleFaults3Clientutil implements SunClientUtil {
+ public SOAPEnvelope getEchoSoapEnvelope() {
+ SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
+ SOAPEnvelope reqEnv = fac.getDefaultEnvelope();
+ OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
- value.addChild(fac.createText(value, "10"));
- value1.addChild(fac.createText(value1, "hi"));
- value2.addChild(fac.createText(value2, "hello"));
-
- method.addChild(value);
- method.addChild(value1);
- method.addChild(value2);
-
-
+ OMNamespace envNs = reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "SOAP-ENV");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "m0");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+
+ OMElement operation = fac.createOMElement("echoMultipleFaults3", omNs);
+ operation.declareNamespace(envNs);
+ operation.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", envNs);
+ reqEnv.getBody().addChild(operation);
+
+ OMElement wfault = fac.createOMElement("whichFault", null);
+ OMElement para1 = fac.createOMElement("param1", null);
+ OMElement para2 = fac.createOMElement("param2", null);
+
+ wfault.addChild(fac.createText(wfault, "10"));
+ para1.addChild(fac.createText(para1, "String Value1"));
+ para2.addChild(fac.createText(para2, "String Value2"));
+
+ operation.addChild(wfault);
+ operation.addChild(para1);
+ operation.addChild(para2);
- return method;
+ return reqEnv;
}
-
-
}
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoMultipleFaults4ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoMultipleFaults4ClientUtil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoMultipleFaults4ClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoMultipleFaults4ClientUtil.java Tue Jan 31 13:13:01 2006
@@ -18,17 +18,27 @@
import org.apache.axis2.om.OMAbstractFactory;
import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMFactory;
import org.apache.axis2.om.OMNamespace;
-
-public class EchoMultipleFaults4ClientUtil implements WhitemesaR4ClientUtil{
- public OMElement getEchoOMElement() {
- OMFactory fac = OMAbstractFactory.getOMFactory();
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import test.interop.whitemesa.SunClientUtil;
+
+public class EchoMultipleFaults4ClientUtil implements SunClientUtil {
+ public SOAPEnvelope getEchoSoapEnvelope() {
+ SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
+ SOAPEnvelope reqEnv = fac.getDefaultEnvelope();
OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
-
- OMElement method = fac.createOMElement("echoMultipleFaults4", omNs);
- method.addAttribute("soapenv:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/",null);
+ OMNamespace envNs = reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "SOAP-ENV");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "m0");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
+ reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi");
+ reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
+
+ OMElement operation = fac.createOMElement("echoMultipleFaults4", omNs);
+ operation.declareNamespace(envNs);
+ operation.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", envNs);
+ reqEnv.getBody().addChild(operation);
OMElement value = fac.createOMElement("whichFault", null);
OMElement value1 = fac.createOMElement("param1", null);
@@ -38,16 +48,10 @@
value1.addChild(fac.createText(value1, "11"));
value2.addChild(fac.createText(value2, "1"));
+ operation.addChild(value);
+ operation.addChild(value1);
+ operation.addChild(value2);
- method.addChild(value);
- method.addChild(value1);
- method.addChild(value2);
-
-
-
- return method;
+ return reqEnv;
}
-
-
-
}
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoStringFaultClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoStringFaultClientUtil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoStringFaultClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/EchoStringFaultClientUtil.java Tue Jan 31 13:13:01 2006
@@ -18,29 +18,34 @@
import org.apache.axis2.om.OMAbstractFactory;
import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMFactory;
import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import test.interop.whitemesa.SunClientUtil;
-public class EchoStringFaultClientUtil implements WhitemesaR4ClientUtil {
- public OMElement getEchoOMElement() {
- OMFactory fac = OMAbstractFactory.getOMFactory();
+public class EchoStringFaultClientUtil implements SunClientUtil {
+ public SOAPEnvelope getEchoSoapEnvelope() {
- OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
+ SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory();
+ SOAPEnvelope reqEnv = omfactory.getDefaultEnvelope();
+ OMNamespace omNs = omfactory.createOMNamespace("http://soapinterop.org/wsdl", "m");
+ OMNamespace envNs = reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
+ OMNamespace typeNs = reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsi");
- OMElement method = fac.createOMElement("echoStringFault", omNs);
- method.addAttribute("soapenv:encodingStyle","http://schemas.xmlsoap.org/soap/encoding/",null);
-
- OMElement value = fac.createOMElement("param", null);
+ OMElement operation = omfactory.createOMElement("echoStringFault", omNs);
+ operation.declareNamespace(envNs);
+ reqEnv.getBody().addChild(operation);
+ operation.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", envNs);
+ OMElement part = omfactory.createOMElement("param", null);
+ part.declareNamespace(typeNs);
+ part.addAttribute("type", "xsd:string", typeNs);
+ part.addChild(omfactory.createText("String"));
- value.addChild(fac.createText(value, "Axis2 Echo String "));
+ operation.addChild(part);
- method.addChild(value);
-
- return method;
+ return reqEnv;
}
-
-
-}
+}
\ No newline at end of file
Modified: webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/WhitemesaR4ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/WhitemesaR4ClientUtil.java?rev=373912&r1=373911&r2=373912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/WhitemesaR4ClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/test/interop/whitemesa/round4/simple/utils/WhitemesaR4ClientUtil.java Tue Jan 31 13:13:01 2006
@@ -1,24 +0,0 @@
-/*
- * 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.
- */
-
-package test.interop.whitemesa.round4.simple.utils;
-
-import org.apache.axis2.om.OMElement;
-
-public interface WhitemesaR4ClientUtil {
- OMElement getEchoOMElement();
-
-}