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 de...@apache.org on 2005/08/29 13:19:17 UTC

svn commit: r264110 - in /webservices/axis/trunk/java/modules/integration: itest-resources/interopt/sun/round4/complex/ itest/org/apache/axis2/interopt/sun/ itest/org/apache/axis2/interopt/sun/complex/ src/org/apache/axis2/interopt/sun/round4/complex/

Author: deepal
Date: Mon Aug 29 04:18:49 2005
New Revision: 264110

URL: http://svn.apache.org/viewcvs?rev=264110&view=rev
Log:
committing Nadanas' sun interop test cases

Added:
    webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/
    webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/complex/
    webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/complex/SunGroupHMain.java
Removed:
    webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/SunGroupHMain.java
Modified:
    webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resBaseStrutFault.xml
    webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resExtendedStructFault.xml
    webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resMultipleFaults1.xml
    webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resMultipleFaults2.xml
    webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resSoapStructFault.xml
    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

Modified: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resBaseStrutFault.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resBaseStrutFault.xml?rev=264110&r1=264109&r2=264110&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resBaseStrutFault.xml (original)
+++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resBaseStrutFault.xml Mon Aug 29 04:18:49 2005
@@ -1,15 +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>
+   <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.BaseStruct_Exception</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>
+               <ns1:part2 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns0:BaseStruct">
+                  <floatMessage xsi:type="xsd:float">10.3</floatMessage>
+                  <shortMessage xsi:type="xsd:short">1</shortMessage>
+               </ns1:part2>
             </detail>
-         </SOAP-ENV:Fault>
-      </SOAP-ENV:Body>
-   </SOAP-ENV:Envelope>
\ No newline at end of file
+         </env:Fault>
+      </env:Body>
+   </env:Envelope>

Modified: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resExtendedStructFault.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resExtendedStructFault.xml?rev=264110&r1=264109&r2=264110&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resExtendedStructFault.xml (original)
+++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resExtendedStructFault.xml Mon Aug 29 04:18:49 2005
@@ -1,18 +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>
+   <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.ExtendedStruct_Exception</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>
+               <ns1:part3 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns0:ExtendedStruct">
+                  <floatMessage xsi:type="xsd:float">0.99</floatMessage>
+                  <shortMessage xsi:type="xsd:short">10</shortMessage>
+                  <stringMessage xsi:type="xsd:string">hi</stringMessage>
+                  <intMessage xsi:type="xsd:int">1</intMessage>
+                  <anotherIntMessage xsi:type="xsd:int">56</anotherIntMessage>
+               </ns1:part3>
             </detail>
-         </SOAP-ENV:Fault>
-      </SOAP-ENV:Body>
-   </SOAP-ENV:Envelope>
\ No newline at end of file
+         </env:Fault>
+      </env:Body>
+   </env:Envelope>

Modified: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resMultipleFaults1.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resMultipleFaults1.xml?rev=264110&r1=264109&r2=264110&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resMultipleFaults1.xml (original)
+++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resMultipleFaults1.xml Mon Aug 29 04:18:49 2005
@@ -1,18 +1,9 @@
 <?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
+   <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>
+            <faultcode>env:Client</faultcode>
+            <faultstring>caught exception while handling request: deserialization error: unexpected XML reader state. expected: END but found: START: varString</faultstring>
+         </env:Fault>
+      </env:Body>
+   </env:Envelope>

Modified: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resMultipleFaults2.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resMultipleFaults2.xml?rev=264110&r1=264109&r2=264110&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resMultipleFaults2.xml (original)
+++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resMultipleFaults2.xml Mon Aug 29 04:18:49 2005
@@ -1,15 +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 'echoMultipleFaults2'.</faultstring>
+   <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.ExtendedStruct_Exception</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>
+               <ns1:part3 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns0:ExtendedStruct">
+                  <floatMessage xsi:type="xsd:float">0.555</floatMessage>
+                  <shortMessage xsi:type="xsd:short">9</shortMessage>
+                  <stringMessage xsi:type="xsd:string">hi</stringMessage>
+                  <intMessage xsi:type="xsd:int">10</intMessage>
+                  <anotherIntMessage xsi:type="xsd:int">20</anotherIntMessage>
+               </ns1:part3>
             </detail>
-         </SOAP-ENV:Fault>
-      </SOAP-ENV:Body>
-   </SOAP-ENV:Envelope>
\ No newline at end of file
+         </env:Fault>
+      </env:Body>
+   </env:Envelope>

Modified: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resSoapStructFault.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resSoapStructFault.xml?rev=264110&r1=264109&r2=264110&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resSoapStructFault.xml (original)
+++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/complex/resSoapStructFault.xml Mon Aug 29 04:18:49 2005
@@ -1,14 +1,9 @@
 <?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>
+            <faultcode>env:Client</faultcode>
+            <faultstring>caught exception while handling request: deserialization error: unexpected XML reader state. expected: END but found: START: varString</faultstring>
          </env:Fault>
       </env:Body>
    </env:Envelope>

Added: webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/complex/SunGroupHMain.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/complex/SunGroupHMain.java?rev=264110&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/complex/SunGroupHMain.java (added)
+++ webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/complex/SunGroupHMain.java Mon Aug 29 04:18:49 2005
@@ -0,0 +1,112 @@
+package org.apache.axis2.interopt.sun.complex;
+
+import org.apache.axis2.interopt.sun.round4.complex.*;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMXMLParserWrapper;
+import org.apache.axis2.om.impl.llom.exception.XMLComparisonException;
+import org.apache.axis2.om.impl.llom.util.XMLComparator;
+import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder;
+import org.apache.axis2.soap.SOAPEnvelope;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLInputFactory;
+import java.io.InputStream;
+
+import junit.framework.TestCase;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Aug 29, 2005
+ * Time: 4:54:58 PM
+ */
+public class SunGroupHMain extends TestCase {
+
+    EchoBlockingClient client=null;
+    OMElement retEle;
+    SunGroupHClientUtil util=null;
+    String soapAction="";
+
+    public void setUp(){
+        client=new EchoBlockingClient();
+    }
+
+    private boolean Compare(OMElement retEle,String filepath) throws XMLStreamException,
+            XMLComparisonException {
+        boolean compare=false;
+        if(retEle!=null){
+             InputStream stream = Thread.currentThread()
+                     .getContextClassLoader().getResourceAsStream("/" + filepath);
+            javax.xml.stream.XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(stream);
+            OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser, null);
+            SOAPEnvelope resEnv = (SOAPEnvelope) builder.getDocumentElement();
+            OMElement resElementtobe = resEnv.getBody().getFirstElement();
+            XMLComparator comparator = new XMLComparator();
+            compare = comparator.compare(retEle,resElementtobe);
+        }
+        return compare;
+    }
+
+
+
+    //echoSoapStructFault
+    public void testSoapStructFault() throws Exception {
+        util=new EchoSOAPStructFaultClientUtil();
+        retEle = client.sendMsg(util,soapAction);
+        assertTrue(
+                Compare(retEle,"/interopt/sun/round4/complex/resSoapStructFault.xml"));
+    }
+
+
+    //echoBaseSoapStructFault
+    public void testBaseStructFault()throws Exception{
+        util=new EchoBaseStructFaultClientutil();
+        retEle = client.sendMsg(util,soapAction);
+        assertTrue(
+                Compare( retEle,"/interopt/sun/round4/complex/resBaseStrutFault.xml"));
+
+    }
+
+    //echoExtendedStructFault
+    public void testExtendedStructFault()throws Exception{
+        util=new EchoExtendedStructFaultClientUtil();
+        retEle = client.sendMsg(util,soapAction);
+        assertTrue(
+                Compare(retEle,"/interopt/sun/round4/complex/resExtendedStructFault.xml"));
+
+    }
+
+    //echomultiplefaults1
+    public void testMultiplefaults1()throws Exception{
+        util=new EchoMultipleFaults1ClientUtil();
+        retEle = client.sendMsg(util,soapAction);
+        assertTrue(
+                Compare( retEle,"/interopt/sun/round4/complex/resMultipleFaults1.xml"));
+    }
+
+    //echomultiplefaults2
+    public void testMultiplefaults2()throws Exception{
+        util=new EchoMultipleFaults2ClientUtil();
+        retEle = client.sendMsg(util,soapAction);
+        assertTrue(
+                Compare( retEle,"/interopt/sun/round4/complex/resMultipleFaults2.xml"));
+    }
+
+}
+

Modified: 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=264110&r1=264109&r2=264110&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBaseStructFaultClientutil.java (original)
+++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBaseStructFaultClientutil.java Mon Aug 29 04:18:49 2005
@@ -13,7 +13,7 @@
  * Time: 9:26:41 AM
  * To change this template use File | Settings | File Templates.
  */
-public class EchoBaseStructFaultClientutil implements SunGroupHClientUtil {
+public class EchoBaseStructFaultClientutil implements SunGroupHClientUtil{
 
     public OMElement getEchoOMElement() {
 
@@ -27,27 +27,17 @@
                 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"));

Modified: 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=264110&r1=264109&r2=264110&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBlockingClient.java (original)
+++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoBlockingClient.java Mon Aug 29 04:18:49 2005
@@ -26,45 +26,42 @@
  */
 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");
 
+     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);
-
-            OMElement firstchile = call.invokeBlocking(opName, util.getEchoOMElement());
+            call.setTransportInfo(Constants.TRANSPORT_HTTP,Constants.TRANSPORT_HTTP,false);
+            call.setSoapAction(soapAction);
 
-            StringWriter writer = new StringWriter();
+            //Blocking invocation
 
-           Class cls = Object.class;
-            InputStream stream = cls.getResourceAsStream(fName);
+            firstchild = call.invokeBlocking("",util.getEchoOMElement());
 
-         //   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");
+            StringWriter writer = new StringWriter();
 
             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.
+
         }
+        return firstchild;
+
     }
+
+
+
+
+
+
+
+
 }

Modified: 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=264110&r1=264109&r2=264110&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoExtendedStructFaultClientUtil.java (original)
+++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoExtendedStructFaultClientUtil.java Mon Aug 29 04:18:49 2005
@@ -4,6 +4,7 @@
 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.
@@ -12,43 +13,49 @@
  * Time: 10:30:10 AM
  * To change this template use File | Settings | File Templates.
  */
-public class EchoExtendedStructFaultClientUtil implements SunGroupHClientUtil {
+public class EchoExtendedStructFaultClientUtil implements SunGroupHClientUtil{
 
     public OMElement getEchoOMElement() {
 
         OMFactory fac = OMAbstractFactory.getOMFactory();
-        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "mns");
+
+        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
 
         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);
+        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);
-        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"));
+        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;
     }
+
 
 
 }

Modified: 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=264110&r1=264109&r2=264110&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults1ClientUtil.java (original)
+++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults1ClientUtil.java Mon Aug 29 04:18:49 2005
@@ -4,6 +4,7 @@
 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.
@@ -12,39 +13,58 @@
  * Time: 11:08:12 AM
  * To change this template use File | Settings | File Templates.
  */
-public class EchoMultipleFaults1ClientUtil implements SunGroupHClientUtil {
+public class EchoMultipleFaults1ClientUtil implements SunGroupHClientUtil{
 
     public OMElement getEchoOMElement() {
 
         OMFactory fac = OMAbstractFactory.getOMFactory();
 
-        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "mns");
+        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
 
         OMElement method = fac.createOMElement("echoMultipleFaults1", omNs);
-        method.addAttribute("soapenv:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", null);
-        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);
-
+        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("param2", 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);
 
-        value1.addAttribute("xsi:type", "xsd:int", null);
-        value2.addAttribute("xsi:type", "ns2:SOAPStruct", null);
-        value3.addAttribute("xsi:type", "ns2:BaseStruct", null);
+
+        value2.addChild(value3);
+        value2.addChild(value4);
+        value2.addChild(value5);
+
+        value6.addChild(value7);
+        value6.addChild(value8);
 
 
-        value1.addChild(fac.createText(value1, "10"));
-        method.addChild(value1);
         method.addChild(value2);
-        method.addChild(value3);
+        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;
+
+
     }
+
+
 
 
 }

Modified: 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=264110&r1=264109&r2=264110&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults2ClientUtil.java (original)
+++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoMultipleFaults2ClientUtil.java Mon Aug 29 04:18:49 2005
@@ -4,6 +4,7 @@
 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.
@@ -12,43 +13,90 @@
  * Time: 11:54:36 AM
  * To change this template use File | Settings | File Templates.
  */
-public class EchoMultipleFaults2ClientUtil implements SunGroupHClientUtil {
+public class EchoMultipleFaults2ClientUtil implements SunGroupHClientUtil{
 
     public OMElement getEchoOMElement() {
-
         OMFactory fac = OMAbstractFactory.getOMFactory();
 
-        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "mns");
+        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
 
         OMElement method = fac.createOMElement("echoMultipleFaults2", omNs);
-        method.addAttribute("soapenv:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", null);
-        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);
+        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);
-        OMElement value2 = fac.createOMElement("param1", null);
-        OMElement value3 = fac.createOMElement("param2", null);
-        OMElement value4 = fac.createOMElement("param3", null);
+        method.addChild(value1);
 
-        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);
 
+        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);
 
-        value1.addChild(fac.createText(value1, "10"));
 
-        method.addChild(value1);
         method.addChild(value2);
-        method.addChild(value3);
-        method.addChild(value4);
+        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;
     }
+
+
+
+
+
+
 
 
 }

Modified: 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=264110&r1=264109&r2=264110&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoSOAPStructFaultClientUtil.java (original)
+++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/EchoSOAPStructFaultClientUtil.java Mon Aug 29 04:18:49 2005
@@ -13,31 +13,42 @@
  * Time: 8:38:19 AM
  * To change this template use File | Settings | File Templates.
  */
-public class EchoSOAPStructFaultClientUtil implements SunGroupHClientUtil {
+public class EchoSOAPStructFaultClientUtil implements SunGroupHClientUtil{
 
     public OMElement getEchoOMElement() {
 
         OMFactory fac = OMAbstractFactory.getOMFactory();
 
-        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "mns");
+        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);
 
-        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)  ;
+
+        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;
     }
+
 
 
 }

Modified: 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=264110&r1=264109&r2=264110&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/SunGroupHClientUtil.java (original)
+++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/complex/SunGroupHClientUtil.java Mon Aug 29 04:18:49 2005
@@ -12,4 +12,4 @@
 public interface SunGroupHClientUtil {
     OMElement getEchoOMElement();
 
-}
+}
\ No newline at end of file