You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/09/15 21:07:03 UTC
svn commit: r289289 [67/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...
Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/XMLComparatorInterop.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/XMLComparatorInterop.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/XMLComparatorInterop.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/XMLComparatorInterop.java Thu Sep 15 11:52:11 2005
@@ -1,252 +1,252 @@
-package org.apache.axis2;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMNode;
-import org.apache.axis2.om.OMNamespace;
-import org.apache.axis2.om.OMAttribute;
-
-import java.util.Vector;
-import java.util.Iterator;
-/*
-* 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: 11:27:11 AM
- */
-public class XMLComparatorInterop {
- /**
- * Eran Chinthaka (chinthaka@apache.org)
- */
- private Log log = LogFactory.getLog(getClass());
-
- String failureNotice = "";
-
- private Vector ignorableNamespaceList = new Vector();
-
- public void addIgnorableNamespace(String nsURI) {
- ignorableNamespaceList.add(nsURI);
- }
-
- public void clearIgnorableNamespaces() {
- ignorableNamespaceList.clear();
- }
-
-
- public boolean compare(OMElement elementOne, OMElement elementTwo) {
-
- boolean status = false;
- //ignore if the elements belong to any of the ignorable namespaces list
-
- if (isIgnorable(elementOne) ||
- isIgnorable(elementTwo)) {
- return true;
- }
-
- if (elementOne == null && elementTwo == null) {
- log.info("Both Elements are null.");
- return true;
- }
- if (elementOne == null && elementTwo != null) {
- //failureNotice = "Element One is null and Element Two is not null";
- return false;
- }
- if (elementOne != null && elementTwo == null) {
- //failureNotice = "Element Two is null and Element One is not null";
- return false;
- }
-
- log.info("Now Checking " + elementOne.getLocalName() + " and " +
- elementTwo.getLocalName() +
- "=============================");
-
- log.info("Comparing Element Names .......");
- status = compare(elementOne.getLocalName(),elementTwo.getLocalName());
- if (status == false)
- return false;
-
- log.info("Comparing Namespaces .........");
- status = compare(elementOne.getNamespace(),
- elementTwo.getNamespace());
- if (status == false)
- return false;
-
- log.info("Comparing attributes .....");
- status = compareAllAttributes(elementOne, elementTwo);
- if (status == false)
- return false;
-
- log.info("Comparing texts .....");
-
- /*
- * Trimming the value of the XMLElement is not correct
- * since this compare method cannot be used to compare
- * element contents with trailing and leading whitespaces
- * BUT for the practicalltiy of tests and to get the current
- * tests working we have to trim() the contents
- */
- status = compare(
- elementOne.getText().trim(),
- elementTwo.getText().trim());
- if (status == false)
- return false;
-
- log.info("Comparing Children ......");
- status = compareAllChildren(elementOne, elementTwo);
-
- return status;
- }
-
- private boolean compareAllAttributes(OMElement elementOne,
- OMElement elementTwo) {
- boolean status = false;
- status = compareAttibutes(elementOne, elementTwo);
- status = compareAttibutes(elementTwo, elementOne);
- return status;
- }
-
- private boolean compareAllChildren(OMElement elementOne,
- OMElement elementTwo) {
- boolean status = false;
- status = compareChildren(elementOne, elementTwo);
- //status =compareChildren(elementTwo, elementOne);
- return status;
- }
-
-
- private boolean isIgnorable(OMElement elt) {
- if (elt != null) {
- OMNamespace namespace = elt.getNamespace();
- if (namespace != null) {
- return ignorableNamespaceList.contains(namespace.getName());
- } else {
- return false;
- }
- } else {
- return false;
- }
- }
-
-
- private boolean compareChildren(OMElement elementOne, OMElement elementTwo) {
- //ignore if the elements belong to any of the ignorable namespaces list
- boolean status = true;
- if (isIgnorable(elementOne) ||
- isIgnorable(elementTwo)) {
- return true;
- }
- Iterator elementOneChildren = elementOne.getChildren();
- while (elementOneChildren.hasNext()) {
- OMNode omNode = (OMNode) elementOneChildren.next();
- if (omNode instanceof OMElement) {
- OMElement elementOneChild = (OMElement) omNode;
- OMElement elementTwoChild = null;
-// if ("Reference4".equals(elementOneChild.getLocalName())) {
-// log.info("Reference4");
-// }
- //Do the comparison only if the element is not ignorable
- if (!isIgnorable(elementOneChild)) {
- Iterator elementTwoChildren = elementTwo.getChildren();
- while (elementTwoChildren.hasNext() ) {
- status = false;
- OMNode node = (OMNode) elementTwoChildren.next();
- if (node.getType() == OMNode.ELEMENT_NODE) {
- elementTwoChild = (OMElement) node;
- if (elementTwoChild.getLocalName().equals(elementOneChild.getLocalName())) {
- //Do the comparison only if the element is not ignorable
- if (!isIgnorable(elementTwoChild)) {
- if (elementTwoChild == null) {
- return false;
-// throw new XMLComparisonException(
-// " There is no " + elementOneChild.getLocalName() +
-// " element under " +
-// elementTwo.getLocalName());
- }
- }
-
- status = compare(elementOneChild, elementTwoChild);
-
- }
- }
- if(status == true){
- break;
- }
- }
- if (status == false) {
- return false;
- }
- } else
- status = compare(elementOneChild, elementTwoChild);
- }
- }
-
- return status;
- }
-
- private boolean compareAttibutes(OMElement elementOne, OMElement elementTwo) {
- int elementOneAtribCount = 0;
- int elementTwoAtribCount = 0;
- Iterator attributes = elementOne.getAttributes();
- while (attributes.hasNext()) {
- OMAttribute omAttribute = (OMAttribute) attributes.next();
- OMAttribute attr = elementTwo.getFirstAttribute(omAttribute.getQName());
- if (attr == null) {
- return false;
- }
- elementOneAtribCount++;
- }
-
- Iterator elementTwoIter = elementTwo.getAttributes();
- while (elementTwoIter.hasNext()) {
- elementTwoIter.next();
- elementTwoAtribCount++;
-
- }
-
- if (elementOneAtribCount != elementTwoAtribCount) {
- return false;
- }
- return true;
- }
-
- private boolean compare(String one, String two) {
- if (!one.equals(two)) {
- return false;
- }
- return true;
- }
-
- private boolean compare(OMNamespace one,OMNamespace two) {
- if (one == null && two == null) {
- return true;
- } else if (one != null && two == null) {
- return false;
- } else if (one == null && two != null) {
- return false;
- }
- if (!one.getName().equals(two.getName())) {
- return false;
- }
-
-// Do we need to compare prefixes as well
- return true;
- }
-}
+package org.apache.axis2;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMNode;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.om.OMAttribute;
+
+import java.util.Vector;
+import java.util.Iterator;
+/*
+* 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: 11:27:11 AM
+ */
+public class XMLComparatorInterop {
+ /**
+ * Eran Chinthaka (chinthaka@apache.org)
+ */
+ private Log log = LogFactory.getLog(getClass());
+
+ String failureNotice = "";
+
+ private Vector ignorableNamespaceList = new Vector();
+
+ public void addIgnorableNamespace(String nsURI) {
+ ignorableNamespaceList.add(nsURI);
+ }
+
+ public void clearIgnorableNamespaces() {
+ ignorableNamespaceList.clear();
+ }
+
+
+ public boolean compare(OMElement elementOne, OMElement elementTwo) {
+
+ boolean status = false;
+ //ignore if the elements belong to any of the ignorable namespaces list
+
+ if (isIgnorable(elementOne) ||
+ isIgnorable(elementTwo)) {
+ return true;
+ }
+
+ if (elementOne == null && elementTwo == null) {
+ log.info("Both Elements are null.");
+ return true;
+ }
+ if (elementOne == null && elementTwo != null) {
+ //failureNotice = "Element One is null and Element Two is not null";
+ return false;
+ }
+ if (elementOne != null && elementTwo == null) {
+ //failureNotice = "Element Two is null and Element One is not null";
+ return false;
+ }
+
+ log.info("Now Checking " + elementOne.getLocalName() + " and " +
+ elementTwo.getLocalName() +
+ "=============================");
+
+ log.info("Comparing Element Names .......");
+ status = compare(elementOne.getLocalName(),elementTwo.getLocalName());
+ if (status == false)
+ return false;
+
+ log.info("Comparing Namespaces .........");
+ status = compare(elementOne.getNamespace(),
+ elementTwo.getNamespace());
+ if (status == false)
+ return false;
+
+ log.info("Comparing attributes .....");
+ status = compareAllAttributes(elementOne, elementTwo);
+ if (status == false)
+ return false;
+
+ log.info("Comparing texts .....");
+
+ /*
+ * Trimming the value of the XMLElement is not correct
+ * since this compare method cannot be used to compare
+ * element contents with trailing and leading whitespaces
+ * BUT for the practicalltiy of tests and to get the current
+ * tests working we have to trim() the contents
+ */
+ status = compare(
+ elementOne.getText().trim(),
+ elementTwo.getText().trim());
+ if (status == false)
+ return false;
+
+ log.info("Comparing Children ......");
+ status = compareAllChildren(elementOne, elementTwo);
+
+ return status;
+ }
+
+ private boolean compareAllAttributes(OMElement elementOne,
+ OMElement elementTwo) {
+ boolean status = false;
+ status = compareAttibutes(elementOne, elementTwo);
+ status = compareAttibutes(elementTwo, elementOne);
+ return status;
+ }
+
+ private boolean compareAllChildren(OMElement elementOne,
+ OMElement elementTwo) {
+ boolean status = false;
+ status = compareChildren(elementOne, elementTwo);
+ //status =compareChildren(elementTwo, elementOne);
+ return status;
+ }
+
+
+ private boolean isIgnorable(OMElement elt) {
+ if (elt != null) {
+ OMNamespace namespace = elt.getNamespace();
+ if (namespace != null) {
+ return ignorableNamespaceList.contains(namespace.getName());
+ } else {
+ return false;
+ }
+ } else {
+ return false;
+ }
+ }
+
+
+ private boolean compareChildren(OMElement elementOne, OMElement elementTwo) {
+ //ignore if the elements belong to any of the ignorable namespaces list
+ boolean status = true;
+ if (isIgnorable(elementOne) ||
+ isIgnorable(elementTwo)) {
+ return true;
+ }
+ Iterator elementOneChildren = elementOne.getChildren();
+ while (elementOneChildren.hasNext()) {
+ OMNode omNode = (OMNode) elementOneChildren.next();
+ if (omNode instanceof OMElement) {
+ OMElement elementOneChild = (OMElement) omNode;
+ OMElement elementTwoChild = null;
+// if ("Reference4".equals(elementOneChild.getLocalName())) {
+// log.info("Reference4");
+// }
+ //Do the comparison only if the element is not ignorable
+ if (!isIgnorable(elementOneChild)) {
+ Iterator elementTwoChildren = elementTwo.getChildren();
+ while (elementTwoChildren.hasNext() ) {
+ status = false;
+ OMNode node = (OMNode) elementTwoChildren.next();
+ if (node.getType() == OMNode.ELEMENT_NODE) {
+ elementTwoChild = (OMElement) node;
+ if (elementTwoChild.getLocalName().equals(elementOneChild.getLocalName())) {
+ //Do the comparison only if the element is not ignorable
+ if (!isIgnorable(elementTwoChild)) {
+ if (elementTwoChild == null) {
+ return false;
+// throw new XMLComparisonException(
+// " There is no " + elementOneChild.getLocalName() +
+// " element under " +
+// elementTwo.getLocalName());
+ }
+ }
+
+ status = compare(elementOneChild, elementTwoChild);
+
+ }
+ }
+ if(status == true){
+ break;
+ }
+ }
+ if (status == false) {
+ return false;
+ }
+ } else
+ status = compare(elementOneChild, elementTwoChild);
+ }
+ }
+
+ return status;
+ }
+
+ private boolean compareAttibutes(OMElement elementOne, OMElement elementTwo) {
+ int elementOneAtribCount = 0;
+ int elementTwoAtribCount = 0;
+ Iterator attributes = elementOne.getAttributes();
+ while (attributes.hasNext()) {
+ OMAttribute omAttribute = (OMAttribute) attributes.next();
+ OMAttribute attr = elementTwo.getFirstAttribute(omAttribute.getQName());
+ if (attr == null) {
+ return false;
+ }
+ elementOneAtribCount++;
+ }
+
+ Iterator elementTwoIter = elementTwo.getAttributes();
+ while (elementTwoIter.hasNext()) {
+ elementTwoIter.next();
+ elementTwoAtribCount++;
+
+ }
+
+ if (elementOneAtribCount != elementTwoAtribCount) {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean compare(String one, String two) {
+ if (!one.equals(two)) {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean compare(OMNamespace one,OMNamespace two) {
+ if (one == null && two == null) {
+ return true;
+ } else if (one != null && two == null) {
+ return false;
+ } else if (one == null && two != null) {
+ return false;
+ }
+ if (!one.getName().equals(two.getName())) {
+ return false;
+ }
+
+// Do we need to compare prefixes as well
+ return true;
+ }
+}
Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/XMLComparatorInterop.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBaseStructFaultClientutil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBaseStructFaultClientutil.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBaseStructFaultClientutil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBaseStructFaultClientutil.java Thu Sep 15 11:52:11 2005
@@ -1,48 +1,48 @@
-package org.apache.axis2.interopt.sun.round4.complex;
-
-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: Jaliya
- * Date: Aug 8, 2005
- * Time: 9:26:41 AM
- * To change this template use File | Settings | File Templates.
- */
-public class EchoBaseStructFaultClientutil implements SunGroupHClientUtil{
-
- public OMElement getEchoOMElement() {
-
-
- OMFactory fac = OMAbstractFactory.getOMFactory();
-
- OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "mns");
-
- OMElement method = fac.createOMElement("echoBaseStructFault", 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 value1 = fac.createOMElement("param", null);
- method.addChild(value1);
-
- OMElement value2 = fac.createOMElement("floatMessage", null);
- OMElement value3 = fac.createOMElement("shortMessage ", null);
-
- value1.addChild(value2);
- value1.addChild(value3);
- method.addChild(value1);
-
- value2.addChild(fac.createText(value2, "10.3"));
- value3.addChild(fac.createText(value3, "1"));
-
- return method;
- }
-
-}
+package org.apache.axis2.interopt.sun.round4.complex;
+
+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: Jaliya
+ * Date: Aug 8, 2005
+ * Time: 9:26:41 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class EchoBaseStructFaultClientutil implements SunGroupHClientUtil{
+
+ public OMElement getEchoOMElement() {
+
+
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+
+ OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "mns");
+
+ OMElement method = fac.createOMElement("echoBaseStructFault", 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 value1 = fac.createOMElement("param", null);
+ method.addChild(value1);
+
+ OMElement value2 = fac.createOMElement("floatMessage", null);
+ OMElement value3 = fac.createOMElement("shortMessage ", null);
+
+ value1.addChild(value2);
+ value1.addChild(value3);
+ method.addChild(value1);
+
+ value2.addChild(fac.createText(value2, "10.3"));
+ value3.addChild(fac.createText(value3, "1"));
+
+ return method;
+ }
+
+}
Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBaseStructFaultClientutil.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBlockingClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBlockingClient.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBlockingClient.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBlockingClient.java Thu Sep 15 11:52:11 2005
@@ -1,67 +1,67 @@
-package org.apache.axis2.interopt.sun.round4.complex;
-
-import org.apache.axis2.addressing.EndpointReference;
-import org.apache.axis2.clientapi.Call;
-import org.apache.axis2.Constants;
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.soap.SOAPEnvelope;
-import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder;
-import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMXMLParserWrapper;
-import org.apache.axis2.om.impl.llom.util.XMLComparator;
-import org.apache.axis2.om.impl.llom.exception.XMLComparisonException;
-
-import javax.xml.stream.XMLOutputFactory;
-import javax.xml.stream.XMLStreamException;
-import javax.xml.stream.XMLStreamReader;
-import javax.xml.stream.XMLInputFactory;
-import java.io.*;
-
-/**
- * Created by IntelliJ IDEA.
- * User: Nadana
- * Date: Aug 8, 2005
- * Time: 8:32:49 AM
- * To change this template use File | Settings | File Templates.
- */
-public class EchoBlockingClient {
-
-
-
- public OMElement sendMsg(SunGroupHClientUtil util,String soapAction){
- OMElement firstchild=null;
-
- EndpointReference targetEPR = new EndpointReference("http://soapinterop.java.sun.com:80/round4/grouph/complexrpcenc" );
- try {
-
-
- Call call = new Call();
- call.setTo(targetEPR);
- call.setExceptionToBeThrownOnSOAPFault(false);
- call.setTransportInfo(Constants.TRANSPORT_HTTP,Constants.TRANSPORT_HTTP,false);
- call.setSoapAction(soapAction);
-
- //Blocking invocation
-
- firstchild = call.invokeBlocking("",util.getEchoOMElement());
-
- StringWriter writer = new StringWriter();
-
- System.out.println(writer.toString());
-
- } catch (AxisFault axisFault) {
- axisFault.printStackTrace();
-
- }
- return firstchild;
-
- }
-
-
-
-
-
-
-
-
-}
+package org.apache.axis2.interopt.sun.round4.complex;
+
+import org.apache.axis2.addressing.EndpointReference;
+import org.apache.axis2.clientapi.Call;
+import org.apache.axis2.Constants;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMXMLParserWrapper;
+import org.apache.axis2.om.impl.llom.util.XMLComparator;
+import org.apache.axis2.om.impl.llom.exception.XMLComparisonException;
+
+import javax.xml.stream.XMLOutputFactory;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLInputFactory;
+import java.io.*;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Nadana
+ * Date: Aug 8, 2005
+ * Time: 8:32:49 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class EchoBlockingClient {
+
+
+
+ public OMElement sendMsg(SunGroupHClientUtil util,String soapAction){
+ OMElement firstchild=null;
+
+ EndpointReference targetEPR = new EndpointReference("http://soapinterop.java.sun.com:80/round4/grouph/complexrpcenc" );
+ try {
+
+
+ Call call = new Call();
+ call.setTo(targetEPR);
+ call.setExceptionToBeThrownOnSOAPFault(false);
+ call.setTransportInfo(Constants.TRANSPORT_HTTP,Constants.TRANSPORT_HTTP,false);
+ call.setSoapAction(soapAction);
+
+ //Blocking invocation
+
+ firstchild = call.invokeBlocking("",util.getEchoOMElement());
+
+ StringWriter writer = new StringWriter();
+
+ System.out.println(writer.toString());
+
+ } catch (AxisFault axisFault) {
+ axisFault.printStackTrace();
+
+ }
+ return firstchild;
+
+ }
+
+
+
+
+
+
+
+
+}
Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBlockingClient.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoExtendedStructFaultClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoExtendedStructFaultClientUtil.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoExtendedStructFaultClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoExtendedStructFaultClientUtil.java Thu Sep 15 11:52:11 2005
@@ -1,61 +1,61 @@
-package org.apache.axis2.interopt.sun.round4.complex;
-
-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 8, 2005
- * Time: 10:30:10 AM
- * To change this template use File | Settings | File Templates.
- */
-public class EchoExtendedStructFaultClientUtil implements SunGroupHClientUtil{
-
- public OMElement getEchoOMElement() {
-
- OMFactory fac = OMAbstractFactory.getOMFactory();
-
- OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
-
- OMElement method = fac.createOMElement("echoExtendedStructFault", 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 value1 = fac.createOMElement("param", null);
- method.addChild(value1);
-
- 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);
-
- value1.addChild(value2);
- value1.addChild(value3);
- value1.addChild(value4);
- value1.addChild(value5);
- value1.addChild(value6);
-
- method.addChild(value1);
-
- value2.addChild(fac.createText(value2, "0.99"));
- value3.addChild(fac.createText(value3, "10"));
- value4.addChild(fac.createText(value4, "hi"));
- value5.addChild(fac.createText(value5, "1"));
- value6.addChild(fac.createText(value6, "56"));
-
-
-
- return method;
- }
-
-
-
-}
+package org.apache.axis2.interopt.sun.round4.complex;
+
+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 8, 2005
+ * Time: 10:30:10 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class EchoExtendedStructFaultClientUtil implements SunGroupHClientUtil{
+
+ public OMElement getEchoOMElement() {
+
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+
+ OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
+
+ OMElement method = fac.createOMElement("echoExtendedStructFault", 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 value1 = fac.createOMElement("param", null);
+ method.addChild(value1);
+
+ 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);
+
+ value1.addChild(value2);
+ value1.addChild(value3);
+ value1.addChild(value4);
+ value1.addChild(value5);
+ value1.addChild(value6);
+
+ method.addChild(value1);
+
+ value2.addChild(fac.createText(value2, "0.99"));
+ value3.addChild(fac.createText(value3, "10"));
+ value4.addChild(fac.createText(value4, "hi"));
+ value5.addChild(fac.createText(value5, "1"));
+ value6.addChild(fac.createText(value6, "56"));
+
+
+
+ return method;
+ }
+
+
+
+}
Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoExtendedStructFaultClientUtil.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults1ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults1ClientUtil.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults1ClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults1ClientUtil.java Thu Sep 15 11:52:11 2005
@@ -1,70 +1,70 @@
-package org.apache.axis2.interopt.sun.round4.complex;
-
-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 8, 2005
- * Time: 11:08:12 AM
- * To change this template use File | Settings | File Templates.
- */
-public class EchoMultipleFaults1ClientUtil implements SunGroupHClientUtil{
-
- public OMElement getEchoOMElement() {
-
- OMFactory fac = OMAbstractFactory.getOMFactory();
-
- OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
-
- OMElement method = fac.createOMElement("echoMultipleFaults1", 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 value1 = fac.createOMElement("whichFault", null);
- method.addChild(value1);
-
-
- OMElement value2 = fac.createOMElement("param1", null);
- OMElement value3 = fac.createOMElement("varInt", null);
- OMElement value4 = fac.createOMElement("varFloat", null);
- OMElement value5 = fac.createOMElement("varString", null);
- OMElement value6 = fac.createOMElement("param2", null);
- OMElement value7 = fac.createOMElement("floatMessage", null);
- OMElement value8 = fac.createOMElement("shortMessage", null);
-
-
- value2.addChild(value3);
- value2.addChild(value4);
- value2.addChild(value5);
-
- value6.addChild(value7);
- value6.addChild(value8);
-
-
- method.addChild(value2);
- method.addChild(value6);
-
- value1.addChild(fac.createText(value1, "1"));
- value3.addChild(fac.createText(value3, "210"));
- value4.addChild(fac.createText(value4, "0.256"));
- value5.addChild(fac.createText(value5, "hi"));
- value7.addChild(fac.createText(value7, "0.569"));
- value8.addChild(fac.createText(value8, "56"));
-
-
-
- return method;
-
-
- }
-
-
-
-
-}
+package org.apache.axis2.interopt.sun.round4.complex;
+
+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 8, 2005
+ * Time: 11:08:12 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class EchoMultipleFaults1ClientUtil implements SunGroupHClientUtil{
+
+ public OMElement getEchoOMElement() {
+
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+
+ OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
+
+ OMElement method = fac.createOMElement("echoMultipleFaults1", 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 value1 = fac.createOMElement("whichFault", null);
+ method.addChild(value1);
+
+
+ OMElement value2 = fac.createOMElement("param1", null);
+ OMElement value3 = fac.createOMElement("varInt", null);
+ OMElement value4 = fac.createOMElement("varFloat", null);
+ OMElement value5 = fac.createOMElement("varString", null);
+ OMElement value6 = fac.createOMElement("param2", null);
+ OMElement value7 = fac.createOMElement("floatMessage", null);
+ OMElement value8 = fac.createOMElement("shortMessage", null);
+
+
+ value2.addChild(value3);
+ value2.addChild(value4);
+ value2.addChild(value5);
+
+ value6.addChild(value7);
+ value6.addChild(value8);
+
+
+ method.addChild(value2);
+ method.addChild(value6);
+
+ value1.addChild(fac.createText(value1, "1"));
+ value3.addChild(fac.createText(value3, "210"));
+ value4.addChild(fac.createText(value4, "0.256"));
+ value5.addChild(fac.createText(value5, "hi"));
+ value7.addChild(fac.createText(value7, "0.569"));
+ value8.addChild(fac.createText(value8, "56"));
+
+
+
+ return method;
+
+
+ }
+
+
+
+
+}
Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults1ClientUtil.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults2ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults2ClientUtil.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults2ClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults2ClientUtil.java Thu Sep 15 11:52:11 2005
@@ -1,102 +1,102 @@
-package org.apache.axis2.interopt.sun.round4.complex;
-
-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 8, 2005
- * Time: 11:54:36 AM
- * To change this template use File | Settings | File Templates.
- */
-public class EchoMultipleFaults2ClientUtil implements SunGroupHClientUtil{
-
- public OMElement getEchoOMElement() {
- OMFactory fac = OMAbstractFactory.getOMFactory();
-
- OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
-
- OMElement method = fac.createOMElement("echoMultipleFaults2", 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 value1 = fac.createOMElement("whichFault", null);
- method.addChild(value1);
-
-
- OMElement value2 = fac.createOMElement("param1", null);
-
- OMElement value3 = fac.createOMElement("floatMessage", null);
- OMElement value4 = fac.createOMElement("shortMessage", null);
- OMElement value5 = fac.createOMElement("param2", null);
- OMElement value6 = fac.createOMElement("floatMessage", null);
- OMElement value7 = fac.createOMElement("shortMessage", null);
- OMElement value8 = fac.createOMElement("stringMessage", null);
- OMElement value9 = fac.createOMElement("intMessage", null);
- OMElement value10 = fac.createOMElement("anotherIntMessage", null);
- OMElement value11 = fac.createOMElement("param3", 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);
-
-
- value2.addChild(value3);
- value2.addChild(value4);
- value5.addChild(value6);
- value5.addChild(value7);
- value5.addChild(value8);
- value5.addChild(value9);
- value5.addChild(value10);
- value11.addChild(value12);
- value11.addChild(value13);
- value11.addChild(value14);
- value11.addChild(value15);
- value11.addChild(value16);
- value11.addChild(value17);
-
-
- method.addChild(value2);
- method.addChild(value5);
- method.addChild(value11);
-
-
- value1.addChild(fac.createText(value1, "2"));
- value3.addChild(fac.createText(value3, "0.21"));
- value4.addChild(fac.createText(value4, "6"));
- value6.addChild(fac.createText(value6, "0.555"));
- value7.addChild(fac.createText(value7, "9"));
- value8.addChild(fac.createText(value8, "hi"));
- value9.addChild(fac.createText(value9, "10"));
-
- value10.addChild(fac.createText(value10, "20"));
-
- value12.addChild(fac.createText(value12, "0.111"));
-
- value13.addChild(fac.createText(value13, "11"));
-
- value14.addChild(fac.createText(value14, "hi"));
- value15.addChild(fac.createText(value15, "8"));
- value16.addChild(fac.createText(value16, "9"));
- value17.addChild(fac.createText(value17, "1"));
-
- return method;
- }
-
-
-
-
-
-
-
-
-}
+package org.apache.axis2.interopt.sun.round4.complex;
+
+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 8, 2005
+ * Time: 11:54:36 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class EchoMultipleFaults2ClientUtil implements SunGroupHClientUtil{
+
+ public OMElement getEchoOMElement() {
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+
+ OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
+
+ OMElement method = fac.createOMElement("echoMultipleFaults2", 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 value1 = fac.createOMElement("whichFault", null);
+ method.addChild(value1);
+
+
+ OMElement value2 = fac.createOMElement("param1", null);
+
+ OMElement value3 = fac.createOMElement("floatMessage", null);
+ OMElement value4 = fac.createOMElement("shortMessage", null);
+ OMElement value5 = fac.createOMElement("param2", null);
+ OMElement value6 = fac.createOMElement("floatMessage", null);
+ OMElement value7 = fac.createOMElement("shortMessage", null);
+ OMElement value8 = fac.createOMElement("stringMessage", null);
+ OMElement value9 = fac.createOMElement("intMessage", null);
+ OMElement value10 = fac.createOMElement("anotherIntMessage", null);
+ OMElement value11 = fac.createOMElement("param3", 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);
+
+
+ value2.addChild(value3);
+ value2.addChild(value4);
+ value5.addChild(value6);
+ value5.addChild(value7);
+ value5.addChild(value8);
+ value5.addChild(value9);
+ value5.addChild(value10);
+ value11.addChild(value12);
+ value11.addChild(value13);
+ value11.addChild(value14);
+ value11.addChild(value15);
+ value11.addChild(value16);
+ value11.addChild(value17);
+
+
+ method.addChild(value2);
+ method.addChild(value5);
+ method.addChild(value11);
+
+
+ value1.addChild(fac.createText(value1, "2"));
+ value3.addChild(fac.createText(value3, "0.21"));
+ value4.addChild(fac.createText(value4, "6"));
+ value6.addChild(fac.createText(value6, "0.555"));
+ value7.addChild(fac.createText(value7, "9"));
+ value8.addChild(fac.createText(value8, "hi"));
+ value9.addChild(fac.createText(value9, "10"));
+
+ value10.addChild(fac.createText(value10, "20"));
+
+ value12.addChild(fac.createText(value12, "0.111"));
+
+ value13.addChild(fac.createText(value13, "11"));
+
+ value14.addChild(fac.createText(value14, "hi"));
+ value15.addChild(fac.createText(value15, "8"));
+ value16.addChild(fac.createText(value16, "9"));
+ value17.addChild(fac.createText(value17, "1"));
+
+ return method;
+ }
+
+
+
+
+
+
+
+
+}
Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults2ClientUtil.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoSOAPStructFaultClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoSOAPStructFaultClientUtil.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoSOAPStructFaultClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoSOAPStructFaultClientUtil.java Thu Sep 15 11:52:11 2005
@@ -1,54 +1,54 @@
-package org.apache.axis2.interopt.sun.round4.complex;
-
-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 8, 2005
- * Time: 8:38:19 AM
- * To change this template use File | Settings | File Templates.
- */
-public class EchoSOAPStructFaultClientUtil implements SunGroupHClientUtil{
-
- public OMElement getEchoOMElement() {
-
- OMFactory fac = OMAbstractFactory.getOMFactory();
-
- OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
-
- OMElement method = fac.createOMElement("echoSOAPStructFault", 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 value1 = fac.createOMElement("param", null);
- method.addChild(value1);
-
-
- OMElement value2 = fac.createOMElement("soapStruct", null);
- OMElement value3 = fac.createOMElement("varInt", null);
- OMElement value4 = fac.createOMElement("varFloat", null);
- OMElement value5 = fac.createOMElement("varString", null);
-
-
- value2.addChild(value3);
- value2.addChild(value4);
- value2.addChild(value5);
-
- value1.addChild(value2);
- value3.addChild(fac.createText(value3, "10"));
- value4.addChild(fac.createText(value4, "0.568"));
- value5.addChild(fac.createText(value5, "Hi"));
-
- return method;
- }
-
-
-
-}
+package org.apache.axis2.interopt.sun.round4.complex;
+
+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 8, 2005
+ * Time: 8:38:19 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class EchoSOAPStructFaultClientUtil implements SunGroupHClientUtil{
+
+ public OMElement getEchoOMElement() {
+
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+
+ OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
+
+ OMElement method = fac.createOMElement("echoSOAPStructFault", 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 value1 = fac.createOMElement("param", null);
+ method.addChild(value1);
+
+
+ OMElement value2 = fac.createOMElement("soapStruct", null);
+ OMElement value3 = fac.createOMElement("varInt", null);
+ OMElement value4 = fac.createOMElement("varFloat", null);
+ OMElement value5 = fac.createOMElement("varString", null);
+
+
+ value2.addChild(value3);
+ value2.addChild(value4);
+ value2.addChild(value5);
+
+ value1.addChild(value2);
+ value3.addChild(fac.createText(value3, "10"));
+ value4.addChild(fac.createText(value4, "0.568"));
+ value5.addChild(fac.createText(value5, "Hi"));
+
+ return method;
+ }
+
+
+
+}
Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoSOAPStructFaultClientUtil.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/SunGroupHClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/SunGroupHClientUtil.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/SunGroupHClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/SunGroupHClientUtil.java Thu Sep 15 11:52:11 2005
@@ -1,15 +1,15 @@
-package org.apache.axis2.interopt.sun.round4.complex;
-
-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.complex;
+
+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/complex/SunGroupHClientUtil.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java Thu Sep 15 11:52:11 2005
@@ -1,72 +1,72 @@
-package org.apache.axis2.interopt.sun.round4.simple;
-
-import org.apache.axis2.addressing.EndpointReference;
-
-import org.apache.axis2.clientapi.Call;
-import org.apache.axis2.Constants;
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.interopt.sun.round4.simple.util.SunGroupHClientUtil;
-import org.apache.axis2.soap.SOAPEnvelope;
-import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder;
-import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMXMLParserWrapper;
-import org.apache.axis2.om.impl.llom.util.XMLComparator;
-import org.apache.axis2.om.impl.llom.exception.XMLComparisonException;
-
-
-import javax.xml.stream.XMLOutputFactory;
-import javax.xml.stream.XMLStreamException;
-import javax.xml.stream.XMLStreamReader;
-import javax.xml.stream.XMLInputFactory;
-
-import java.io.StringWriter;
-import java.io.File;
-import java.io.FileReader;
-import java.io.FileNotFoundException;
-
-/**
- * Created by IntelliJ IDEA.
- * User: Nadana
- * Date: Aug 5, 2005
- * Time: 10:08:20 AM
- * To change this template use File | Settings | File Templates.
- */
-public class EchoBlockingClient {
- public OMElement sendMsg(SunGroupHClientUtil util,String soapAction){
- OMElement firstchild=null;
- EndpointReference targetEPR =
- new EndpointReference("http://soapinterop.java.sun.com:80/round4/grouph/simplerpcenc" );
- try {
-
-
- Call call = new Call();
- call.setTo(targetEPR);
- call.setExceptionToBeThrownOnSOAPFault(false);
- call.setTransportInfo(Constants.TRANSPORT_HTTP,Constants.TRANSPORT_HTTP,false);
- call.setSoapAction(soapAction);
- //Blocking invocation
-
- firstchild = call.invokeBlocking("",util.getEchoOMElement());
-
- StringWriter writer = new StringWriter();
-
-
-
- System.out.println(writer.toString());
-
- } catch (AxisFault axisFault) {
- axisFault.printStackTrace();
-
-
- }
- return firstchild;
-
- }
-
-
-
-
-
-
-}
-
+package org.apache.axis2.interopt.sun.round4.simple;
+
+import org.apache.axis2.addressing.EndpointReference;
+
+import org.apache.axis2.clientapi.Call;
+import org.apache.axis2.Constants;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.interopt.sun.round4.simple.util.SunGroupHClientUtil;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMXMLParserWrapper;
+import org.apache.axis2.om.impl.llom.util.XMLComparator;
+import org.apache.axis2.om.impl.llom.exception.XMLComparisonException;
+
+
+import javax.xml.stream.XMLOutputFactory;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLInputFactory;
+
+import java.io.StringWriter;
+import java.io.File;
+import java.io.FileReader;
+import java.io.FileNotFoundException;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Nadana
+ * Date: Aug 5, 2005
+ * Time: 10:08:20 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class EchoBlockingClient {
+ public OMElement sendMsg(SunGroupHClientUtil util,String soapAction){
+ OMElement firstchild=null;
+ EndpointReference targetEPR =
+ new EndpointReference("http://soapinterop.java.sun.com:80/round4/grouph/simplerpcenc" );
+ try {
+
+
+ Call call = new Call();
+ call.setTo(targetEPR);
+ call.setExceptionToBeThrownOnSOAPFault(false);
+ call.setTransportInfo(Constants.TRANSPORT_HTTP,Constants.TRANSPORT_HTTP,false);
+ call.setSoapAction(soapAction);
+ //Blocking invocation
+
+ firstchild = call.invokeBlocking("",util.getEchoOMElement());
+
+ StringWriter writer = new StringWriter();
+
+
+
+ System.out.println(writer.toString());
+
+ } catch (AxisFault axisFault) {
+ axisFault.printStackTrace();
+
+
+ }
+ return firstchild;
+
+ }
+
+
+
+
+
+
+}
+
Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java Thu Sep 15 11:52:11 2005
@@ -1,44 +1,44 @@
-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:13:47 PM
- * To change this template use File | Settings | File Templates.
- */
-public class EchoEmptyFaultClientUtil implements SunGroupHClientUtil{
-
-
- public OMElement getEchoOMElement() {
-
- OMFactory fac = OMAbstractFactory.getOMFactory();
-
- OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "mns");
-
- OMElement method = fac.createOMElement("echoEmptyFault", 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);
-
-
-
-
- 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:13:47 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class EchoEmptyFaultClientUtil implements SunGroupHClientUtil{
+
+
+ public OMElement getEchoOMElement() {
+
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+
+ OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "mns");
+
+ OMElement method = fac.createOMElement("echoEmptyFault", 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);
+
+
+
+
+ return method;
+
+
+
+
+ }
+
+
+
+
+
+}
Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java Thu Sep 15 11:52:11 2005
@@ -1,62 +1,62 @@
-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:25:27 PM
- * To change this template use File | Settings | File Templates.
- */
-public class EchoIntArrayFaultClientUtil implements SunGroupHClientUtil {
-
-
- public OMElement getEchoOMElement() {
- OMFactory fac = OMAbstractFactory.getOMFactory();
-
- OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
-
- OMElement method = fac.createOMElement("echoIntArrayFault", 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 value1 = fac.createOMElement("param", null);
- method.addChild(value1);
- 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);
- OMElement value2 = fac.createOMElement("Item", null);
- OMElement value3 = fac.createOMElement("Item", null);
- OMElement value4 = fac.createOMElement("Item", null);
-
- value1.addChild(value2);
- value1.addChild(value3);
- value1.addChild(value4);
-
-
-
-
- value2.addChild(fac.createText(value2, "99"));
- value3.addChild(fac.createText(value3, "10"));
- value4.addChild(fac.createText(value4, "12"));
-
-
-
-
- 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:25:27 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class EchoIntArrayFaultClientUtil implements SunGroupHClientUtil {
+
+
+ public OMElement getEchoOMElement() {
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+
+ OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
+
+ OMElement method = fac.createOMElement("echoIntArrayFault", 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 value1 = fac.createOMElement("param", null);
+ method.addChild(value1);
+ 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);
+ OMElement value2 = fac.createOMElement("Item", null);
+ OMElement value3 = fac.createOMElement("Item", null);
+ OMElement value4 = fac.createOMElement("Item", null);
+
+ value1.addChild(value2);
+ value1.addChild(value3);
+ value1.addChild(value4);
+
+
+
+
+ value2.addChild(fac.createText(value2, "99"));
+ value3.addChild(fac.createText(value3, "10"));
+ value4.addChild(fac.createText(value4, "12"));
+
+
+
+
+ return method;
+ }
+
+
+
+
+
+
+}
Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java Thu Sep 15 11:52:11 2005
@@ -1,67 +1,67 @@
-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: 4:28:41 PM
- * To change this template use File | Settings | File Templates.
- */
-public class EchoMultipleFaults1ClientUtil implements SunGroupHClientUtil {
-
- public OMElement getEchoOMElement() {
-
- OMFactory fac = OMAbstractFactory.getOMFactory();
-
- OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
-
- OMElement method = fac.createOMElement("echoMultipleFaults1", 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);
-
- OMNamespace xsiNs = method.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
- OMNamespace ns2 = method.declareNamespace("http://soapinterop.org/types","ns2");
- method.declareNamespace("http://schemas.xmlsoap.org/wsdl/","wsdl");
-
- OMElement value = fac.createOMElement("whichFault", null);
- method.addChild(value);
- 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);
-
- value2.addAttribute("soapenc:arrayType","nsa:float[3]",null);
- value2.addAttribute("soapenc:offset","[0]",null);
- value2.addAttribute("xmlns:soapenc","http://schemas.xmlsoap.org/soap/encoding/",null);
- value2.addAttribute("xmlns:nsa","http://www.w3.org/2001/XMLSchema",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(value1);
- method.addChild(value2);
-
-
-
- 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: 4:28:41 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class EchoMultipleFaults1ClientUtil implements SunGroupHClientUtil {
+
+ public OMElement getEchoOMElement() {
+
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+
+ OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
+
+ OMElement method = fac.createOMElement("echoMultipleFaults1", 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);
+
+ OMNamespace xsiNs = method.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+ OMNamespace ns2 = method.declareNamespace("http://soapinterop.org/types","ns2");
+ method.declareNamespace("http://schemas.xmlsoap.org/wsdl/","wsdl");
+
+ OMElement value = fac.createOMElement("whichFault", null);
+ method.addChild(value);
+ 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);
+
+ value2.addAttribute("soapenc:arrayType","nsa:float[3]",null);
+ value2.addAttribute("soapenc:offset","[0]",null);
+ value2.addAttribute("xmlns:soapenc","http://schemas.xmlsoap.org/soap/encoding/",null);
+ value2.addAttribute("xmlns:nsa","http://www.w3.org/2001/XMLSchema",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(value1);
+ method.addChild(value2);
+
+
+
+ return method;
+ }
+
+
+}
Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults2ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults2ClientUtil.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults2ClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults2ClientUtil.java Thu Sep 15 11:52:11 2005
@@ -1,68 +1,68 @@
-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: 5:37:07 PM
- * To change this template use File | Settings | File Templates.
- */
-public class EchoMultipleFaults2ClientUtil implements SunGroupHClientUtil{
-
- public OMElement getEchoOMElement() {
-
- OMFactory fac = OMAbstractFactory.getOMFactory();
-
- OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
-
- OMElement method = fac.createOMElement("echoMultipleFaults2", 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);
-
- OMNamespace xsiNs = method.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
- OMNamespace ns2 = method.declareNamespace("http://soapinterop.org/types","ns2");
- method.declareNamespace("http://schemas.xmlsoap.org/wsdl/","wsdl");
-
- OMElement value = fac.createOMElement("whichFault", null);
- method.addChild(value);
- 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("soapenc:arrayType","nsa:string[3]",null);
- value3.addAttribute("soapenc:offset","[0]",null);
- value3.addAttribute("xmlns:soapenc","http://schemas.xmlsoap.org/soap/encoding/",null);
- value3.addAttribute("xmlns:nsa","http://www.w3.org/2001/XMLSchema",null);
-
-
- value.addChild(fac.createText(value, "2"));
- value1.addChild(fac.createText(value1, "hi"));
- value2.addChild(fac.createText(value2, "0.23"));
- value4.addChild(fac.createText(value4, "String 1"));
- value5.addChild(fac.createText(value5, "String 2"));
- value6.addChild(fac.createText(value6, "String 3"));
-
- value3.addChild(value4);
- value3.addChild(value5);
- value3.addChild(value6);
-
-
- method.addChild(value1);
- method.addChild(value2);
- method.addChild(value3);
-
-
- 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: 5:37:07 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class EchoMultipleFaults2ClientUtil implements SunGroupHClientUtil{
+
+ public OMElement getEchoOMElement() {
+
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+
+ OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
+
+ OMElement method = fac.createOMElement("echoMultipleFaults2", 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);
+
+ OMNamespace xsiNs = method.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+ OMNamespace ns2 = method.declareNamespace("http://soapinterop.org/types","ns2");
+ method.declareNamespace("http://schemas.xmlsoap.org/wsdl/","wsdl");
+
+ OMElement value = fac.createOMElement("whichFault", null);
+ method.addChild(value);
+ 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("soapenc:arrayType","nsa:string[3]",null);
+ value3.addAttribute("soapenc:offset","[0]",null);
+ value3.addAttribute("xmlns:soapenc","http://schemas.xmlsoap.org/soap/encoding/",null);
+ value3.addAttribute("xmlns:nsa","http://www.w3.org/2001/XMLSchema",null);
+
+
+ value.addChild(fac.createText(value, "2"));
+ value1.addChild(fac.createText(value1, "hi"));
+ value2.addChild(fac.createText(value2, "0.23"));
+ value4.addChild(fac.createText(value4, "String 1"));
+ value5.addChild(fac.createText(value5, "String 2"));
+ value6.addChild(fac.createText(value6, "String 3"));
+
+ value3.addChild(value4);
+ value3.addChild(value5);
+ value3.addChild(value6);
+
+
+ method.addChild(value1);
+ method.addChild(value2);
+ method.addChild(value3);
+
+
+ return method;
+ }
+
+}
Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults2ClientUtil.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java Thu Sep 15 11:52:11 2005
@@ -1,55 +1,55 @@
-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 8, 2005
- * Time: 8:06:26 AM
- * To change this template use File | Settings | File Templates.
- */
-public class EchoMultipleFaults3Clientutil implements SunGroupHClientUtil{
- public OMElement getEchoOMElement() {
-
- OMFactory fac = OMAbstractFactory.getOMFactory();
-
- OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
-
- OMElement method = fac.createOMElement("echoMultipleFaults3", 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);
-
- OMNamespace xsiNs = method.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
- OMNamespace ns2 = method.declareNamespace("http://soapinterop.org/types","ns2");
- method.declareNamespace("http://schemas.xmlsoap.org/wsdl/","wsdl");
-
- OMElement value = fac.createOMElement("whichFault", null);
- method.addChild(value);
- OMElement value1 = fac.createOMElement("param1", null);
- OMElement value2 = fac.createOMElement("param2", null);
-
-
-
- value.addChild(fac.createText(value, "3"));
- value1.addChild(fac.createText(value1, "param 1"));
- value2.addChild(fac.createText(value2, "Param 2"));
-
-
-
-
-
- method.addChild(value1);
- method.addChild(value2);
-
-
- 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 8, 2005
+ * Time: 8:06:26 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class EchoMultipleFaults3Clientutil implements SunGroupHClientUtil{
+ public OMElement getEchoOMElement() {
+
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+
+ OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
+
+ OMElement method = fac.createOMElement("echoMultipleFaults3", 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);
+
+ OMNamespace xsiNs = method.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
+ OMNamespace ns2 = method.declareNamespace("http://soapinterop.org/types","ns2");
+ method.declareNamespace("http://schemas.xmlsoap.org/wsdl/","wsdl");
+
+ OMElement value = fac.createOMElement("whichFault", null);
+ method.addChild(value);
+ OMElement value1 = fac.createOMElement("param1", null);
+ OMElement value2 = fac.createOMElement("param2", null);
+
+
+
+ value.addChild(fac.createText(value, "3"));
+ value1.addChild(fac.createText(value1, "param 1"));
+ value2.addChild(fac.createText(value2, "Param 2"));
+
+
+
+
+
+ method.addChild(value1);
+ method.addChild(value2);
+
+
+ return method;
+ }
+
+
+}
Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java (original)
+++ webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java Thu Sep 15 11:52:11 2005
@@ -1,53 +1,53 @@
-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 8, 2005
- * Time: 8:15:14 AM
- * To change this template use File | Settings | File Templates.
- */
-public class EchoMultipleFaults4ClientUtil implements SunGroupHClientUtil{
- public OMElement getEchoOMElement() {
-
- OMFactory fac = OMAbstractFactory.getOMFactory();
-
- OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
-
- OMElement method = fac.createOMElement("echoMultipleFaults4", 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("whichFault", null);
- method.addChild(value);
- OMElement value1 = fac.createOMElement("param1", null);
- OMElement value2 = fac.createOMElement("param2", null);
-
-
-
- value.addChild(fac.createText(value, "3"));
- value1.addChild(fac.createText(value1, "1"));
- value2.addChild(fac.createText(value2, "8"));
-
-
-
-
-
- method.addChild(value1);
- method.addChild(value2);
-
-
- 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 8, 2005
+ * Time: 8:15:14 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class EchoMultipleFaults4ClientUtil implements SunGroupHClientUtil{
+ public OMElement getEchoOMElement() {
+
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+
+ OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
+
+ OMElement method = fac.createOMElement("echoMultipleFaults4", 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("whichFault", null);
+ method.addChild(value);
+ OMElement value1 = fac.createOMElement("param1", null);
+ OMElement value2 = fac.createOMElement("param2", null);
+
+
+
+ value.addChild(fac.createText(value, "3"));
+ value1.addChild(fac.createText(value1, "1"));
+ value2.addChild(fac.createText(value2, "8"));
+
+
+
+
+
+ method.addChild(value1);
+ method.addChild(value2);
+
+
+ return method;
+ }
+
+
+
+}
Propchange: webservices/axis2/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java
------------------------------------------------------------------------------
svn:eol-style = native