Author: deepal
Date: Mon Aug 22 21:35:13 2005
New Revision: 239343

URL: http://svn.apache.org/viewcvs?rev=239343&view=rev
Log:
Commiting interopt test cases (sun round 4) done by Nadana , which is not 
complete yet will be fix soon :)

Added:
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBaseStructFaultClientutil.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBlockingClient.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoExtendedStructFaultClientUtil.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults1ClientUtil.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults2ClientUtil.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoSOAPStructFaultClientUtil.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/SunGroupHClientUtil.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/SunGroupHMain.java
    
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/
    webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/
    
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/
    
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/
    
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resBaseStrutFault.xml
    
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resExtendedStructFault.xml
    
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resMultipleFaults1.xml
    
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resMultipleFaults2.xml
    
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resSoapStructFault.xml

Added: 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBaseStructFaultClientutil.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBaseStructFaultClientutil.java?rev=239343&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBaseStructFaultClientutil.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBaseStructFaultClientutil.java
 Mon Aug 22 21:35:13 2005
@@ -0,0 +1,58 @@
+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);

+

+        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 value1 = fac.createOMElement("param", null);

+        method.addChild(value1);

+

+        value1.addAttribute("type","ns2:BaseStruct",xsiNs)  ;

+

+

+

+        OMElement value2 = fac.createOMElement("floatMessage", null);

+        OMElement value3 = fac.createOMElement("shortMessage ", null);

+

+        value1.addChild(value2);

+        value1.addChild(value3);

+        method.addChild(value1);

+

+        value2.addAttribute("type", "xsd:float", xsiNs);

+        value3.addAttribute("type", "xsd:short", xsiNs);

+

+        value2.addChild(fac.createText(value2, "10.3"));

+        value3.addChild(fac.createText(value3, "1"));

+

+        return method;

+    }

+

+}


Added: 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBlockingClient.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBlockingClient.java?rev=239343&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBlockingClient.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBlockingClient.java
 Mon Aug 22 21:35:13 2005
@@ -0,0 +1,70 @@
+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 static void sendMsg(SunGroupHClientUtil util, String opName, String 
fName) {

+

+//        EndpointReference targetEPR = new 
EndpointReference("http://soapinterop.java.sun.com:80/round4/grouph/complexrpcenc";);

+        EndpointReference targetEPR = new 
EndpointReference("http://127.0.0.1:8000/round4/grouph/complexrpcenc";);

+

+        try {

+            Call call = new Call();

+            call.setTo(targetEPR);

+            call.setExceptionToBeThrownOnSOAPFault(false);

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

+

+            OMElement firstchile = call.invokeBlocking(opName, 
util.getEchoOMElement());

+

+            StringWriter writer = new StringWriter();

+

+           Class cls = Object.class;

+            InputStream stream = cls.getResourceAsStream(fName);

+

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

+            XMLStreamReader parser =

+                    
XMLInputFactory.newInstance().createXMLStreamReader(stream);

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

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

+            OMElement reselementtobe = (OMElement) 
resEnv.getBody().getFirstElement();

+            XMLComparator comparator = new XMLComparator();

+            boolean compare = comparator.compare(firstchile, reselementtobe);

+            if (!compare) {

+                System.out.println("Error");

+            } else

+                System.out.println("OK");

+

+            System.out.println(writer.toString());

+

+        } catch (AxisFault axisFault) {

+            axisFault.printStackTrace();

+        } catch (XMLStreamException e) {

+            e.printStackTrace();

+        } catch (XMLComparisonException e) {

+            e.printStackTrace();  //To change body of catch statement use File 
| Settings | File Templates.

+        }

+    }

+}


Added: 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoExtendedStructFaultClientUtil.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoExtendedStructFaultClientUtil.java?rev=239343&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoExtendedStructFaultClientUtil.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoExtendedStructFaultClientUtil.java
 Mon Aug 22 21:35:13 2005
@@ -0,0 +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;

+

+/**

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

+

+        OMElement method = fac.createOMElement("echoExtendedStructFault", 
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("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("stringMessage", null);

+        OMElement value3 = fac.createOMElement("intMessage", null);

+        OMElement value4 = fac.createOMElement("anotherIntMessage", null);

+

+        value1.addAttribute("xsi:type", "ns2:ExtendedStruct", null);

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

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

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

+

+        value2.addChild(fac.createText(value2, "hi"));

+        value3.addChild(fac.createText(value3, "1"));

+        value4.addChild(fac.createText(value4, "155"));

+

+        value1.addChild(value2);

+        value1.addChild(value3);

+        value1.addChild(value4);

+        method.addChild(value1);

+

+

+        return method;

+    }

+

+

+}


Added: 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults1ClientUtil.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults1ClientUtil.java?rev=239343&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults1ClientUtil.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults1ClientUtil.java
 Mon Aug 22 21:35:13 2005
@@ -0,0 +1,50 @@
+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;

+

+/**

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

+

+        OMElement method = fac.createOMElement("echoMultipleFaults1", 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("xmlns:ns2", "http://soapinterop.org/types";, null);

+        method.addAttribute("xmlns:wsdl", "http://schemas.xmlsoap.org/wsdl/";, 
null);

+

+

+        OMElement value1 = fac.createOMElement("whichFault", null);

+        OMElement value2 = fac.createOMElement("param1", null);

+        OMElement value3 = fac.createOMElement("param2", null);

+

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

+        value2.addAttribute("xsi:type", "ns2:SOAPStruct", null);

+        value3.addAttribute("xsi:type", "ns2:BaseStruct", null);

+

+

+        value1.addChild(fac.createText(value1, "10"));

+        method.addChild(value1);

+        method.addChild(value2);

+        method.addChild(value3);

+

+

+        return method;

+    }

+

+

+}


Added: 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults2ClientUtil.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults2ClientUtil.java?rev=239343&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults2ClientUtil.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults2ClientUtil.java
 Mon Aug 22 21:35:13 2005
@@ -0,0 +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;

+

+/**

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

+

+        OMElement method = fac.createOMElement("echoMultipleFaults2", 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("xmlns:ns2", "http://soapinterop.org/types";, null);

+        method.addAttribute("xmlns:wsdl", "http://schemas.xmlsoap.org/wsdl/";, 
null);

+

+

+        OMElement value1 = fac.createOMElement("whichFault", null);

+        OMElement value2 = fac.createOMElement("param1", null);

+        OMElement value3 = fac.createOMElement("param2", null);

+        OMElement value4 = fac.createOMElement("param3", null);

+

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

+        value2.addAttribute("xsi:type", "ns2:BaseStruct", null);

+        value3.addAttribute("xsi:type", "ns2:ExtendedStruct", null);

+        value4.addAttribute("xsi:type", "ns2:MoreExtendedStruct", null);

+

+

+        value1.addChild(fac.createText(value1, "10"));

+

+        method.addChild(value1);

+        method.addChild(value2);

+        method.addChild(value3);

+        method.addChild(value4);

+

+

+        return method;

+    }

+

+

+}


Added: 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoSOAPStructFaultClientUtil.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoSOAPStructFaultClientUtil.java?rev=239343&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoSOAPStructFaultClientUtil.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoSOAPStructFaultClientUtil.java
 Mon Aug 22 21:35:13 2005
@@ -0,0 +1,43 @@
+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";, "mns");

+

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

+

+        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 value1 = fac.createOMElement("param", null);

+        method.addChild(value1);

+

+        value1.addAttribute("type","ns2:SOAPStructFault",xsiNs)  ;

+

+        return method;

+    }

+

+

+}


Added: 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/SunGroupHClientUtil.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/SunGroupHClientUtil.java?rev=239343&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/SunGroupHClientUtil.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/SunGroupHClientUtil.java
 Mon Aug 22 21:35:13 2005
@@ -0,0 +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();

+

+}


Added: 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/SunGroupHMain.java
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/SunGroupHMain.java?rev=239343&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/SunGroupHMain.java
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/SunGroupHMain.java
 Mon Aug 22 21:35:13 2005
@@ -0,0 +1,38 @@
+package org.apache.axis2.interopt.sun.round4.complex;

+

+

+/**

+ * Created by IntelliJ IDEA.

+ * User: Nadana

+ * Date: Aug 6, 2005

+ * Time: 2:39:44 PM

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

+ */

+public class SunGroupHMain {

+

+    public static void main(String[] args) {

+        //echoSoapStructFault

+

+//        EchoSOAPStructFaultClientUtil echoSoapStructFaultUtil = new 
EchoSOAPStructFaultClientUtil();

+//        EchoBlockingClient.sendMsg(echoSoapStructFaultUtil, 
"echoSOAPStructFault", "/interopt/sun/round4/complex/resSoapStructFault.xml");

+

+    //    echoBaseSoapStructFault

+

+        EchoBaseStructFaultClientutil echoBaseSoapFaultUtil = new 
EchoBaseStructFaultClientutil();

+        EchoBlockingClient.sendMsg(echoBaseSoapFaultUtil, 
"echoBaseStructFault", "/interopt/sun/round4/complex/resBaseStrutFault.xml");

+

+//        //echoExtendedStructFault

+//        EchoExtendedStructFaultClientUtil echoExtendedStructFault = new 
EchoExtendedStructFaultClientUtil();

+//        EchoBlockingClient.sendMsg(echoExtendedStructFault, 
"echoExtendedStructFault", 
"/interopt/sun/round4/complex/resExtendedStructFault.xml");

+//

+//        //echomultiplefaults1

+//        EchoMultipleFaults1ClientUtil echomultiplefaults1 = new 
EchoMultipleFaults1ClientUtil();

+//        EchoBlockingClient.sendMsg(echomultiplefaults1, 
"echoMultipleFaults1", "/interopt/sun/round4/complex/resMultipleFaults1.xml");

+//

+//        //echomultiplefaults 2

+//        EchoMultipleFaults2ClientUtil echomultiplefaults2 = new 
EchoMultipleFaults2ClientUtil();

+//        EchoBlockingClient.sendMsg(echomultiplefaults2, 
"echoMultipleFaults2", "/interopt/sun/round4/complex/resMultipleFaults2.xml");

+

+

+    }

+}


Added: 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resBaseStrutFault.xml
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resBaseStrutFault.xml?rev=239343&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resBaseStrutFault.xml
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resBaseStrutFault.xml
 Mon Aug 22 21:35:13 2005
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>

+   <SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>

+      <SOAP-ENV:Body>

+         <SOAP-ENV:Fault>

+            <faultcode 
xmlns:ns="http://schemas.xmlsoap.org/soap/envelope/";>ns:Server</faultcode>

+            <faultstring>Fault in response to 
'echoBaseStructFault'.</faultstring>

+            <detail>

+               <d:part2 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:d="http://soapinterop.org/wsdl";>

+                  <floatMessage>10.3</floatMessage>

+                  <shortMessage>1</shortMessage>

+               </d:part2>

+            </detail>

+         </SOAP-ENV:Fault>

+      </SOAP-ENV:Body>

+   </SOAP-ENV:Envelope>
\ No newline at end of file

Added: 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resExtendedStructFault.xml
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resExtendedStructFault.xml?rev=239343&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resExtendedStructFault.xml
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resExtendedStructFault.xml
 Mon Aug 22 21:35:13 2005
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>

+   <SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>

+      <SOAP-ENV:Body>

+         <SOAP-ENV:Fault>

+            <faultcode 
xmlns:ns="http://schemas.xmlsoap.org/soap/envelope/";>ns:Server</faultcode>

+            <faultstring>Fault in response to 
'echoExtendedStructFault'.</faultstring>

+            <detail>

+               <d:part3 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:d="http://soapinterop.org/wsdl";>

+                  <floatMessage>0.023</floatMessage>

+                  <shortMessage>1</shortMessage>

+                  <stringMessage>hi</stringMessage>

+                  <intMessage>6</intMessage>

+                  <anotherIntMessage>78</anotherIntMessage>

+               </d:part3>

+            </detail>

+         </SOAP-ENV:Fault>

+      </SOAP-ENV:Body>

+   </SOAP-ENV:Envelope>
\ No newline at end of file

Added: 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resMultipleFaults1.xml
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resMultipleFaults1.xml?rev=239343&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resMultipleFaults1.xml
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resMultipleFaults1.xml
 Mon Aug 22 21:35:13 2005
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>

+   <SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>

+      <SOAP-ENV:Body>

+         <SOAP-ENV:Fault>

+            <faultcode 
xmlns:ns="http://schemas.xmlsoap.org/soap/envelope/";>ns:Server</faultcode>

+            <faultstring>Fault in response to 
'echoMultipleFaults1'.</faultstring>

+            <detail>

+               <d:part1 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:d="http://soapinterop.org/wsdl";>

+                  <soapStruct>

+                     <varString>hi</varString>

+                     <varInt>1</varInt>

+                     <varFloat>1</varFloat>

+                  </soapStruct>

+               </d:part1>

+            </detail>

+         </SOAP-ENV:Fault>

+      </SOAP-ENV:Body>

+   </SOAP-ENV:Envelope>
\ No newline at end of file

Added: 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resMultipleFaults2.xml
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resMultipleFaults2.xml?rev=239343&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resMultipleFaults2.xml
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resMultipleFaults2.xml
 Mon Aug 22 21:35:13 2005
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>

+   <SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>

+      <SOAP-ENV:Body>

+         <SOAP-ENV:Fault>

+            <faultcode 
xmlns:ns="http://schemas.xmlsoap.org/soap/envelope/";>ns:Server</faultcode>

+            <faultstring>Fault in response to 
'echoMultipleFaults2'.</faultstring>

+            <detail>

+               <d:part2 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:d="http://soapinterop.org/wsdl";>

+                  <floatMessage>0.1</floatMessage>

+                  <shortMessage>10</shortMessage>

+               </d:part2>

+            </detail>

+         </SOAP-ENV:Fault>

+      </SOAP-ENV:Body>

+   </SOAP-ENV:Envelope>
\ No newline at end of file

Added: 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resSoapStructFault.xml
URL: 
http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resSoapStructFault.xml?rev=239343&view=auto
==============================================================================
--- 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resSoapStructFault.xml
 (added)
+++ 
webservices/axis/trunk/java/modules/integration/test-resources/interopt/sun/round4/complex/resSoapStructFault.xml
 Mon Aug 22 21:35:13 2005
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>

+   <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:ns0="http://soapinterop.org/types"; 
xmlns:ns1="http://soapinterop.org/wsdl";>

+      <env:Body>

+         <env:Fault xsi:type="env:Fault">

+            <faultcode>env:Server</faultcode>

+            
<faultstring>round4.grouph.complexrpcenc.server.SOAPStructFault_Exception</faultstring>

+            <detail>

+               <ns1:part1 
env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xsi:type="ns0:SOAPStructFault">

+                  <soapStruct xsi:type="ns0:SOAPStruct" xsi:nil="1"/>

+               </ns1:part1>

+            </detail>

+         </env:Fault>

+      </env:Body>

+   </env:Envelope>



Reply via email to