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/30 06:42:46 UTC

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

Author: deepal
Date: Mon Aug 29 21:42:20 2005
New Revision: 264703

URL: http://svn.apache.org/viewcvs?rev=264703&view=rev
Log:
commiting Interop (sun simple round4)test cases done by Nadana

Added:
    webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/
    webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resEmptyfault.xml
    webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resIntArrayFault.xml
    webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults1.xml
    webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults2.xml
    webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults3.xml
    webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults4.xml
    webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resStringFault.xml
    webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/
    webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java
    webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java
    webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/
    webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java
    webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java
    webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java
    webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults2ClientUtil.java
    webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java
    webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java
    webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java
    webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java
Modified:
    webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/InteropTestBase.java
    webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/Scenario1Test.java

Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resEmptyfault.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resEmptyfault.xml?rev=264703&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resEmptyfault.xml (added)
+++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resEmptyfault.xml Mon Aug 29 21:42:20 2005
@@ -0,0 +1,12 @@
+<?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.simplerpcenc.server.EmptyFault</faultstring>
+            <detail>
+               <ns1:part1 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns0:EmptyFault"/>
+            </detail>
+         </env:Fault>
+      </env:Body>
+   </env:Envelope>
\ No newline at end of file

Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resIntArrayFault.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resIntArrayFault.xml?rev=264703&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resIntArrayFault.xml (added)
+++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resIntArrayFault.xml Mon Aug 29 21:42:20 2005
@@ -0,0 +1,16 @@
+<?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.simplerpcenc.server.IntArrayFault</faultstring>
+            <detail>
+               <ns1:part5 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="enc:Array" enc:arrayType="xsd:int[3]">
+                  <item xsi:type="xsd:int">99</item>
+                  <item xsi:type="xsd:int">10</item>
+                  <item xsi:type="xsd:int">12</item>
+               </ns1:part5>
+            </detail>
+         </env:Fault>
+      </env:Body>
+   </env:Envelope>

Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults1.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults1.xml?rev=264703&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults1.xml (added)
+++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults1.xml Mon Aug 29 21:42:20 2005
@@ -0,0 +1,12 @@
+<?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.simplerpcenc.server.EmptyFault</faultstring>
+            <detail>
+               <ns1:part1 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns0:EmptyFault"/>
+            </detail>
+         </env:Fault>
+      </env:Body>
+   </env:Envelope>
\ No newline at end of file

Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults2.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults2.xml?rev=264703&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults2.xml (added)
+++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults2.xml Mon Aug 29 21:42:20 2005
@@ -0,0 +1,12 @@
+<?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.simplerpcenc.server.StringFault</faultstring>
+            <detail>
+               <ns1:part2 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:string">hi</ns1:part2>
+            </detail>
+         </env:Fault>
+      </env:Body>
+   </env:Envelope>
\ No newline at end of file

Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults3.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults3.xml?rev=264703&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults3.xml (added)
+++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults3.xml Mon Aug 29 21:42:20 2005
@@ -0,0 +1,12 @@
+<?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.simplerpcenc.server.StringFault</faultstring>
+            <detail>
+               <ans1:part2 xmlns:ans1="http://soapinterop.org/wsdl/fault1" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:string">param 1</ans1:part2>
+            </detail>
+         </env:Fault>
+      </env:Body>
+   </env:Envelope>

Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults4.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults4.xml?rev=264703&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults4.xml (added)
+++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults4.xml Mon Aug 29 21:42:20 2005
@@ -0,0 +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>
+            <faultcode>env:Client</faultcode>
+            <faultstring>caught exception while handling request: deserialization error: java.lang.IllegalArgumentException</faultstring>
+         </env:Fault>
+      </env:Body>
+   </env:Envelope>

Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resStringFault.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resStringFault.xml?rev=264703&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resStringFault.xml (added)
+++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resStringFault.xml Mon Aug 29 21:42:20 2005
@@ -0,0 +1,12 @@
+<?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.simplerpcenc.server.StringFault</faultstring>
+            <detail>
+               <ns1:part2 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:string">Axis2 Echo String </ns1:part2>
+            </detail>
+         </env:Fault>
+      </env:Body>
+   </env:Envelope>

Added: webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java?rev=264703&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java (added)
+++ webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java Mon Aug 29 21:42:20 2005
@@ -0,0 +1,121 @@
+
+package org.apache.axis2.interopt.sun.simple;
+
+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 org.apache.axis2.interopt.sun.round4.simple.EchoBlockingClient;
+import org.apache.axis2.interopt.sun.round4.simple.util.*;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLInputFactory;
+import java.io.InputStream;
+
+import junit.framework.TestCase;
+
+/**
+ * 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 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;
+    }
+
+
+
+
+
+    public void testEchoEmptyFault()  throws Exception{
+        util=new EchoEmptyFaultClientUtil();
+        retEle =client.sendMsg(util,soapAction);
+        assertTrue(Compare(retEle,"/interopt/sun/round4/simple/resEmptyfault.xml"));
+
+
+    }
+
+
+    //todo fix me Nadana , this fails due to bug in XML Comparator
+    //echoBaseSoapStructFault
+//    public void testIntArrayFault()throws Exception{
+//        util=new EchoIntArrayFaultClientUtil();
+//        retEle = client.sendMsg(util,soapAction);
+//        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resIntArrayFault.xml"));
+//    }
+
+
+
+
+    //echoExtendedStructFault
+    public void testStringFault()throws Exception{
+        util=new EchoStringFaultClientUtil();
+        retEle = client.sendMsg(util,soapAction);
+        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resStringFault.xml"));
+
+
+
+    }
+
+
+    //echomultiplefaults1
+    public void testMultiplefaults1()throws Exception{
+        util=new EchoMultipleFaults1ClientUtil();
+        retEle = client.sendMsg(util,soapAction);
+        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults1.xml"));
+    }
+
+    //echomultiplefaults2
+    public void testMultiplefaults2()throws Exception{
+        util=new EchoMultipleFaults2ClientUtil();
+        retEle = client.sendMsg(util,soapAction);
+        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults2.xml"));
+
+
+    }
+
+    //echomultiplefaults3
+    public void testMultiplefaults3()throws Exception{
+        util=new EchoMultipleFaults3Clientutil();
+        retEle = client.sendMsg(util,soapAction);
+        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults3.xml"));
+
+
+    }
+    //echomultiplefaults4
+    public void testMultiplefaults4()throws Exception{
+        util=new EchoMultipleFaults4ClientUtil();
+        retEle = client.sendMsg(util,soapAction);
+        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults4.xml"));
+
+    }
+
+}
\ No newline at end of file

Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java?rev=264703&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java (added)
+++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java Mon Aug 29 21:42:20 2005
@@ -0,0 +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;
+
+    }
+
+
+
+
+
+
+}
+

Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java?rev=264703&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java (added)
+++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java Mon Aug 29 21:42:20 2005
@@ -0,0 +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;
+
+
+
+
+    }
+
+
+
+
+
+}

Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java?rev=264703&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java (added)
+++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java Mon Aug 29 21:42:20 2005
@@ -0,0 +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;
+    }
+
+
+
+
+
+
+}

Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java?rev=264703&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java (added)
+++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java Mon Aug 29 21:42:20 2005
@@ -0,0 +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;
+    }
+
+
+}

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

Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java?rev=264703&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java (added)
+++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java Mon Aug 29 21:42:20 2005
@@ -0,0 +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;
+    }
+
+
+}

Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java?rev=264703&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java (added)
+++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java Mon Aug 29 21:42:20 2005
@@ -0,0 +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;
+    }
+
+
+
+}

Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java?rev=264703&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java (added)
+++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java Mon Aug 29 21:42:20 2005
@@ -0,0 +1,41 @@
+package org.apache.axis2.interopt.sun.round4.simple.util;
+
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMFactory;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.soap.SOAP11Constants;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Nadana
+ * Date: Aug 6, 2005
+ * Time: 3:10:19 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class EchoStringFaultClientUtil implements SunGroupHClientUtil{
+
+    public OMElement getEchoOMElement() {
+        OMFactory fac = OMAbstractFactory.getOMFactory();
+
+        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
+
+        OMElement method = fac.createOMElement("echoStringFault", omNs);
+        OMNamespace soapEnvNS = method.declareNamespace(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
+                SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
+        method.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", soapEnvNS);
+
+
+
+
+        OMElement value = fac.createOMElement("param", null);
+
+        value.addChild(fac.createText(value, "Axis2 Echo String "));
+
+        method.addChild(value);
+
+        return method;
+    }
+
+
+}

Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java?rev=264703&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java (added)
+++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java Mon Aug 29 21:42:20 2005
@@ -0,0 +1,15 @@
+package org.apache.axis2.interopt.sun.round4.simple.util;
+
+import org.apache.axis2.om.OMElement;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Nadana
+ * Date: Aug 6, 2005
+ * Time: 11:13:40 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface SunGroupHClientUtil {
+    OMElement getEchoOMElement();
+
+}

Modified: webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/InteropTestBase.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/InteropTestBase.java?rev=264703&r1=264702&r2=264703&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/InteropTestBase.java (original)
+++ webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/InteropTestBase.java Mon Aug 29 21:42:20 2005
@@ -1,120 +1,120 @@
-/*
-* Copyright 2004,2005 The Apache Software Foundation.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-*      http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-package org.apache.axis2.security;
-
-import junit.framework.TestCase;
-
-import org.apache.axis2.Constants;
-import org.apache.axis2.integration.UtilServer;
-/**
- * 
- * @author Ruchith Fernando (ruchith.fernando@gmail.com)
- */
-public class InteropTestBase extends TestCase {
-
-    protected static final String SCENARIO1_SERVICE_REPOSITORY = "scenario1_service_repo";
-    
-    protected static final String SCENARIO1_CLIENT_REPOSITORY = "scenario1_client_repo";
-
-    protected static final String SCENARIO2_SERVICE_REPOSITORY = "scenario2_service_repo";
-    
-    protected static final String SCENARIO2_CLIENT_REPOSITORY = "scenario2_client_repo";
-
-    protected static final String SCENARIO2a_SERVICE_REPOSITORY = "scenario2a_service_repo";
-    
-    protected static final String SCENARIO2a_CLIENT_REPOSITORY = "scenario2a_client_repo";
-    
-    protected static final String SCENARIO3_SERVICE_REPOSITORY = "scenario3_service_repo";
-    
-    protected static final String SCENARIO3_CLIENT_REPOSITORY = "scenario3_client_repo";
-    
-    protected static final String SCENARIO4_SERVICE_REPOSITORY = "scenario4_service_repo";
-    
-    protected static final String SCENARIO4_CLIENT_REPOSITORY = "scenario4_client_repo";
-
-    protected static final String SCENARIO5_SERVICE_REPOSITORY = "scenario5_service_repo";
-    
-    protected static final String SCENARIO5_CLIENT_REPOSITORY = "scenario5_client_repo";
-    
-    protected static final String SCENARIO6_SERVICE_REPOSITORY = "scenario6_service_repo";
-    
-    protected static final String SCENARIO6_CLIENT_REPOSITORY = "scenario6_client_repo";
-    
-    protected static final String SCENARIO7_SERVICE_REPOSITORY = "scenario7_service_repo";
-    
-    protected static final String SCENARIO7_CLIENT_REPOSITORY = "scenario7_client_repo";
-    
-    /*
-     * We have to create different a client repository and a service repository
-     * for each scenarion since we dont have the support to get the parameter 
-     * values off the service.xml yet
-     */
-    private String serviceRepo;
-    
-    private String clientRepo;
-
-    private String targetEpr = "http://127.0.0.1:" + 
-    		UtilServer.TESTING_PORT +
-    	"/axis2/services/PingPort";
-    
-	public InteropTestBase() {
-		super();
-	}
-
-	public InteropTestBase(String arg0) {
-		super(arg0);
-	}
-
-	/**
-	 * set up the service
-	 */
-	protected void setUp() throws Exception {
-		UtilServer.start(Constants.TESTING_PATH + serviceRepo);
-	}
-
-	/**
-	 * Cleanup 
-	 */
-	protected void tearDown() throws Exception {
-        UtilServer.stop();
-    }
-
-	protected void setClientRepo(String clientRepo) {
-		this.clientRepo = clientRepo;
-	}
-
-	public String getClientRepo() {
-		return clientRepo;
-	}
-
-	protected void setServiceRepo(String serviceRepo) {
-		this.serviceRepo = serviceRepo;
-	}
-	
-	/**
-	 * Do test
-	 */
-    public void testInterop() {
-    	try {
-    		InteropScenarioClient.main(new String[]{Constants.TESTING_PATH + clientRepo,targetEpr});
-    	} catch (Exception e) {
-    		e.printStackTrace();
-    		fail("Error in introperating with " + targetEpr + ", client configuration: " + clientRepo);
-    	}
-    }
-	
-}
+///*
+//* Copyright 2004,2005 The Apache Software Foundation.
+//*
+//* Licensed under the Apache License, Version 2.0 (the "License");
+//* you may not use this file except in compliance with the License.
+//* You may obtain a copy of the License at
+//*
+//*      http://www.apache.org/licenses/LICENSE-2.0
+//*
+//* Unless required by applicable law or agreed to in writing, software
+//* distributed under the License is distributed on an "AS IS" BASIS,
+//* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//* See the License for the specific language governing permissions and
+//* limitations under the License.
+//*/
+//
+//package org.apache.axis2.security;
+//
+//import junit.framework.TestCase;
+//
+//import org.apache.axis2.Constants;
+//import org.apache.axis2.integration.UtilServer;
+///**
+// *
+// * @author Ruchith Fernando (ruchith.fernando@gmail.com)
+// */
+//public class InteropTestBase extends TestCase {
+//
+//    protected static final String SCENARIO1_SERVICE_REPOSITORY = "scenario1_service_repo";
+//
+//    protected static final String SCENARIO1_CLIENT_REPOSITORY = "scenario1_client_repo";
+//
+//    protected static final String SCENARIO2_SERVICE_REPOSITORY = "scenario2_service_repo";
+//
+//    protected static final String SCENARIO2_CLIENT_REPOSITORY = "scenario2_client_repo";
+//
+//    protected static final String SCENARIO2a_SERVICE_REPOSITORY = "scenario2a_service_repo";
+//
+//    protected static final String SCENARIO2a_CLIENT_REPOSITORY = "scenario2a_client_repo";
+//
+//    protected static final String SCENARIO3_SERVICE_REPOSITORY = "scenario3_service_repo";
+//
+//    protected static final String SCENARIO3_CLIENT_REPOSITORY = "scenario3_client_repo";
+//
+//    protected static final String SCENARIO4_SERVICE_REPOSITORY = "scenario4_service_repo";
+//
+//    protected static final String SCENARIO4_CLIENT_REPOSITORY = "scenario4_client_repo";
+//
+//    protected static final String SCENARIO5_SERVICE_REPOSITORY = "scenario5_service_repo";
+//
+//    protected static final String SCENARIO5_CLIENT_REPOSITORY = "scenario5_client_repo";
+//
+//    protected static final String SCENARIO6_SERVICE_REPOSITORY = "scenario6_service_repo";
+//
+//    protected static final String SCENARIO6_CLIENT_REPOSITORY = "scenario6_client_repo";
+//
+//    protected static final String SCENARIO7_SERVICE_REPOSITORY = "scenario7_service_repo";
+//
+//    protected static final String SCENARIO7_CLIENT_REPOSITORY = "scenario7_client_repo";
+//
+//    /*
+//     * We have to create different a client repository and a service repository
+//     * for each scenarion since we dont have the support to get the parameter
+//     * values off the service.xml yet
+//     */
+//    private String serviceRepo;
+//
+//    private String clientRepo;
+//
+//    private String targetEpr = "http://127.0.0.1:" +
+//    		UtilServer.TESTING_PORT +
+//    	"/axis2/services/PingPort";
+//
+//	public InteropTestBase() {
+//		super();
+//	}
+//
+//	public InteropTestBase(String arg0) {
+//		super(arg0);
+//	}
+//
+//	/**
+//	 * set up the service
+//	 */
+//	protected void setUp() throws Exception {
+//		UtilServer.start(Constants.TESTING_PATH + serviceRepo);
+//	}
+//
+//	/**
+//	 * Cleanup
+//	 */
+//	protected void tearDown() throws Exception {
+//        UtilServer.stop();
+//    }
+//
+//	protected void setClientRepo(String clientRepo) {
+//		this.clientRepo = clientRepo;
+//	}
+//
+//	public String getClientRepo() {
+//		return clientRepo;
+//	}
+//
+//	protected void setServiceRepo(String serviceRepo) {
+//		this.serviceRepo = serviceRepo;
+//	}
+//
+//	/**
+//	 * Do test
+//	 */
+//    public void testInterop() {
+//    	try {
+//    		InteropScenarioClient.main(new String[]{Constants.TESTING_PATH + clientRepo,targetEpr});
+//    	} catch (Exception e) {
+//    		e.printStackTrace();
+//    		fail("Error in introperating with " + targetEpr + ", client configuration: " + clientRepo);
+//    	}
+//    }
+//
+//}

Modified: webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/Scenario1Test.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/Scenario1Test.java?rev=264703&r1=264702&r2=264703&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/Scenario1Test.java (original)
+++ webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/Scenario1Test.java Mon Aug 29 21:42:20 2005
@@ -1,31 +1,31 @@
-/*
-* Copyright 2004,2005 The Apache Software Foundation.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-*      http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-package org.apache.axis2.security;
-
-/**
- * 
- * @author Ruchith Fernando (ruchith.fernando@gmail.com)
- */
-public class Scenario1Test extends InteropTestBase {
-    
-	protected void setUp() throws Exception {
-		this.setClientRepo(SCENARIO1_CLIENT_REPOSITORY);
-		this.setServiceRepo(SCENARIO1_SERVICE_REPOSITORY);
-		super.setUp();
-	}
-
-}
+///*
+//* Copyright 2004,2005 The Apache Software Foundation.
+//*
+//* Licensed under the Apache License, Version 2.0 (the "License");
+//* you may not use this file except in compliance with the License.
+//* You may obtain a copy of the License at
+//*
+//*      http://www.apache.org/licenses/LICENSE-2.0
+//*
+//* Unless required by applicable law or agreed to in writing, software
+//* distributed under the License is distributed on an "AS IS" BASIS,
+//* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//* See the License for the specific language governing permissions and
+//* limitations under the License.
+//*/
+//
+//package org.apache.axis2.security;
+//
+///**
+// *
+// * @author Ruchith Fernando (ruchith.fernando@gmail.com)
+// */
+//public class Scenario1Test extends InteropTestBase {
+//
+//	protected void setUp() throws Exception {
+//		this.setClientRepo(SCENARIO1_CLIENT_REPOSITORY);
+//		this.setServiceRepo(SCENARIO1_SERVICE_REPOSITORY);
+//		super.setUp();
+//	}
+//
+//}



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

Posted by Davanum Srinivas <da...@gmail.com>.
deepal,

Please be careful....you commented out other code unintentionally.

-- dims

On 8/30/05, deepal@apache.org <de...@apache.org> wrote:
> Author: deepal
> Date: Mon Aug 29 21:42:20 2005
> New Revision: 264703
> 
> URL: http://svn.apache.org/viewcvs?rev=264703&view=rev
> Log:
> commiting Interop (sun simple round4)test cases done by Nadana
> 
> Added:
>     webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/
>     webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resEmptyfault.xml
>     webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resIntArrayFault.xml
>     webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults1.xml
>     webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults2.xml
>     webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults3.xml
>     webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults4.xml
>     webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resStringFault.xml
>     webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/
>     webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults2ClientUtil.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java
> Modified:
>     webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/InteropTestBase.java
>     webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/Scenario1Test.java
> 
> Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resEmptyfault.xml
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resEmptyfault.xml?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resEmptyfault.xml (added)
> +++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resEmptyfault.xml Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,12 @@
> +<?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.simplerpcenc.server.EmptyFault</faultstring>
> 
> +            <detail>
> 
> +               <ns1:part1 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns0:EmptyFault"/>
> 
> +            </detail>
> 
> +         </env:Fault>
> 
> +      </env:Body>
> 
> +   </env:Envelope>
> \ No newline at end of file
> 
> Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resIntArrayFault.xml
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resIntArrayFault.xml?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resIntArrayFault.xml (added)
> +++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resIntArrayFault.xml Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,16 @@
> +<?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.simplerpcenc.server.IntArrayFault</faultstring>
> 
> +            <detail>
> 
> +               <ns1:part5 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="enc:Array" enc:arrayType="xsd:int[3]">
> 
> +                  <item xsi:type="xsd:int">99</item>
> 
> +                  <item xsi:type="xsd:int">10</item>
> 
> +                  <item xsi:type="xsd:int">12</item>
> 
> +               </ns1:part5>
> 
> +            </detail>
> 
> +         </env:Fault>
> 
> +      </env:Body>
> 
> +   </env:Envelope>
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults1.xml
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults1.xml?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults1.xml (added)
> +++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults1.xml Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,12 @@
> +<?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.simplerpcenc.server.EmptyFault</faultstring>
> 
> +            <detail>
> 
> +               <ns1:part1 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns0:EmptyFault"/>
> 
> +            </detail>
> 
> +         </env:Fault>
> 
> +      </env:Body>
> 
> +   </env:Envelope>
> \ No newline at end of file
> 
> Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults2.xml
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults2.xml?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults2.xml (added)
> +++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults2.xml Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,12 @@
> +<?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.simplerpcenc.server.StringFault</faultstring>
> 
> +            <detail>
> 
> +               <ns1:part2 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:string">hi</ns1:part2>
> 
> +            </detail>
> 
> +         </env:Fault>
> 
> +      </env:Body>
> 
> +   </env:Envelope>
> \ No newline at end of file
> 
> Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults3.xml
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults3.xml?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults3.xml (added)
> +++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults3.xml Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,12 @@
> +<?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.simplerpcenc.server.StringFault</faultstring>
> 
> +            <detail>
> 
> +               <ans1:part2 xmlns:ans1="http://soapinterop.org/wsdl/fault1" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:string">param 1</ans1:part2>
> 
> +            </detail>
> 
> +         </env:Fault>
> 
> +      </env:Body>
> 
> +   </env:Envelope>
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults4.xml
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults4.xml?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults4.xml (added)
> +++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults4.xml Mon Aug 29 21:42:20 2005
> @@ -0,0 +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>
> 
> +            <faultcode>env:Client</faultcode>
> 
> +            <faultstring>caught exception while handling request: deserialization error: java.lang.IllegalArgumentException</faultstring>
> 
> +         </env:Fault>
> 
> +      </env:Body>
> 
> +   </env:Envelope>
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resStringFault.xml
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resStringFault.xml?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resStringFault.xml (added)
> +++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resStringFault.xml Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,12 @@
> +<?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.simplerpcenc.server.StringFault</faultstring>
> 
> +            <detail>
> 
> +               <ns1:part2 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:string">Axis2 Echo String </ns1:part2>
> 
> +            </detail>
> 
> +         </env:Fault>
> 
> +      </env:Body>
> 
> +   </env:Envelope>
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java (added)
> +++ webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,121 @@
> +
> 
> +package org.apache.axis2.interopt.sun.simple;
> 
> +
> 
> +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 org.apache.axis2.interopt.sun.round4.simple.EchoBlockingClient;
> 
> +import org.apache.axis2.interopt.sun.round4.simple.util.*;
> 
> +
> 
> +import javax.xml.stream.XMLStreamException;
> 
> +import javax.xml.stream.XMLInputFactory;
> 
> +import java.io.InputStream;
> 
> +
> 
> +import junit.framework.TestCase;
> 
> +
> 
> +/**
> 
> + * 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 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;
> 
> +    }
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +    public void testEchoEmptyFault()  throws Exception{
> 
> +        util=new EchoEmptyFaultClientUtil();
> 
> +        retEle =client.sendMsg(util,soapAction);
> 
> +        assertTrue(Compare(retEle,"/interopt/sun/round4/simple/resEmptyfault.xml"));
> 
> +
> 
> +
> 
> +    }
> 
> +
> 
> +
> 
> +    //todo fix me Nadana , this fails due to bug in XML Comparator
> 
> +    //echoBaseSoapStructFault
> 
> +//    public void testIntArrayFault()throws Exception{
> 
> +//        util=new EchoIntArrayFaultClientUtil();
> 
> +//        retEle = client.sendMsg(util,soapAction);
> 
> +//        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resIntArrayFault.xml"));
> 
> +//    }
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +    //echoExtendedStructFault
> 
> +    public void testStringFault()throws Exception{
> 
> +        util=new EchoStringFaultClientUtil();
> 
> +        retEle = client.sendMsg(util,soapAction);
> 
> +        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resStringFault.xml"));
> 
> +
> 
> +
> 
> +
> 
> +    }
> 
> +
> 
> +
> 
> +    //echomultiplefaults1
> 
> +    public void testMultiplefaults1()throws Exception{
> 
> +        util=new EchoMultipleFaults1ClientUtil();
> 
> +        retEle = client.sendMsg(util,soapAction);
> 
> +        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults1.xml"));
> 
> +    }
> 
> +
> 
> +    //echomultiplefaults2
> 
> +    public void testMultiplefaults2()throws Exception{
> 
> +        util=new EchoMultipleFaults2ClientUtil();
> 
> +        retEle = client.sendMsg(util,soapAction);
> 
> +        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults2.xml"));
> 
> +
> 
> +
> 
> +    }
> 
> +
> 
> +    //echomultiplefaults3
> 
> +    public void testMultiplefaults3()throws Exception{
> 
> +        util=new EchoMultipleFaults3Clientutil();
> 
> +        retEle = client.sendMsg(util,soapAction);
> 
> +        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults3.xml"));
> 
> +
> 
> +
> 
> +    }
> 
> +    //echomultiplefaults4
> 
> +    public void testMultiplefaults4()throws Exception{
> 
> +        util=new EchoMultipleFaults4ClientUtil();
> 
> +        retEle = client.sendMsg(util,soapAction);
> 
> +        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults4.xml"));
> 
> +
> 
> +    }
> 
> +
> 
> +}
> \ No newline at end of file
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +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;
> 
> +
> 
> +    }
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +}
> 
> +
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +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;
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +    }
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +}
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +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;
> 
> +    }
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +}
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +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;
> 
> +    }
> 
> +
> 
> +
> 
> +}
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults2ClientUtil.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults2ClientUtil.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults2ClientUtil.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults2ClientUtil.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +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;
> 
> +    }
> 
> +
> 
> +}
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +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;
> 
> +    }
> 
> +
> 
> +
> 
> +}
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +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;
> 
> +    }
> 
> +
> 
> +
> 
> +
> 
> +}
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,41 @@
> +package org.apache.axis2.interopt.sun.round4.simple.util;
> 
> +
> 
> +import org.apache.axis2.om.OMElement;
> 
> +import org.apache.axis2.om.OMFactory;
> 
> +import org.apache.axis2.om.OMAbstractFactory;
> 
> +import org.apache.axis2.om.OMNamespace;
> 
> +import org.apache.axis2.soap.SOAP11Constants;
> 
> +
> 
> +/**
> 
> + * Created by IntelliJ IDEA.
> 
> + * User: Nadana
> 
> + * Date: Aug 6, 2005
> 
> + * Time: 3:10:19 PM
> 
> + * To change this template use File | Settings | File Templates.
> 
> + */
> 
> +public class EchoStringFaultClientUtil implements SunGroupHClientUtil{
> 
> +
> 
> +    public OMElement getEchoOMElement() {
> 
> +        OMFactory fac = OMAbstractFactory.getOMFactory();
> 
> +
> 
> +        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
> 
> +
> 
> +        OMElement method = fac.createOMElement("echoStringFault", omNs);
> 
> +        OMNamespace soapEnvNS = method.declareNamespace(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
> 
> +                SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
> 
> +        method.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", soapEnvNS);
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +        OMElement value = fac.createOMElement("param", null);
> 
> +
> 
> +        value.addChild(fac.createText(value, "Axis2 Echo String "));
> 
> +
> 
> +        method.addChild(value);
> 
> +
> 
> +        return method;
> 
> +    }
> 
> +
> 
> +
> 
> +}
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,15 @@
> +package org.apache.axis2.interopt.sun.round4.simple.util;
> 
> +
> 
> +import org.apache.axis2.om.OMElement;
> 
> +
> 
> +/**
> 
> + * Created by IntelliJ IDEA.
> 
> + * User: Nadana
> 
> + * Date: Aug 6, 2005
> 
> + * Time: 11:13:40 AM
> 
> + * To change this template use File | Settings | File Templates.
> 
> + */
> 
> +public interface SunGroupHClientUtil {
> 
> +    OMElement getEchoOMElement();
> 
> +
> 
> +}
> 
> 
> Modified: webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/InteropTestBase.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/InteropTestBase.java?rev=264703&r1=264702&r2=264703&view=diff
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/InteropTestBase.java (original)
> +++ webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/InteropTestBase.java Mon Aug 29 21:42:20 2005
> @@ -1,120 +1,120 @@
> -/*
> -* Copyright 2004,2005 The Apache Software Foundation.
> -*
> -* Licensed under the Apache License, Version 2.0 (the "License");
> -* you may not use this file except in compliance with the License.
> -* You may obtain a copy of the License at
> -*
> -*      http://www.apache.org/licenses/LICENSE-2.0
> -*
> -* Unless required by applicable law or agreed to in writing, software
> -* distributed under the License is distributed on an "AS IS" BASIS,
> -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> -* See the License for the specific language governing permissions and
> -* limitations under the License.
> -*/
> -
> -package org.apache.axis2.security;
> -
> -import junit.framework.TestCase;
> -
> -import org.apache.axis2.Constants;
> -import org.apache.axis2.integration.UtilServer;
> -/**
> - *
> - * @author Ruchith Fernando (ruchith.fernando@gmail.com)
> - */
> -public class InteropTestBase extends TestCase {
> -
> -    protected static final String SCENARIO1_SERVICE_REPOSITORY = "scenario1_service_repo";
> -
> -    protected static final String SCENARIO1_CLIENT_REPOSITORY = "scenario1_client_repo";
> -
> -    protected static final String SCENARIO2_SERVICE_REPOSITORY = "scenario2_service_repo";
> -
> -    protected static final String SCENARIO2_CLIENT_REPOSITORY = "scenario2_client_repo";
> -
> -    protected static final String SCENARIO2a_SERVICE_REPOSITORY = "scenario2a_service_repo";
> -
> -    protected static final String SCENARIO2a_CLIENT_REPOSITORY = "scenario2a_client_repo";
> -
> -    protected static final String SCENARIO3_SERVICE_REPOSITORY = "scenario3_service_repo";
> -
> -    protected static final String SCENARIO3_CLIENT_REPOSITORY = "scenario3_client_repo";
> -
> -    protected static final String SCENARIO4_SERVICE_REPOSITORY = "scenario4_service_repo";
> -
> -    protected static final String SCENARIO4_CLIENT_REPOSITORY = "scenario4_client_repo";
> -
> -    protected static final String SCENARIO5_SERVICE_REPOSITORY = "scenario5_service_repo";
> -
> -    protected static final String SCENARIO5_CLIENT_REPOSITORY = "scenario5_client_repo";
> -
> -    protected static final String SCENARIO6_SERVICE_REPOSITORY = "scenario6_service_repo";
> -
> -    protected static final String SCENARIO6_CLIENT_REPOSITORY = "scenario6_client_repo";
> -
> -    protected static final String SCENARIO7_SERVICE_REPOSITORY = "scenario7_service_repo";
> -
> -    protected static final String SCENARIO7_CLIENT_REPOSITORY = "scenario7_client_repo";
> -
> -    /*
> -     * We have to create different a client repository and a service repository
> -     * for each scenarion since we dont have the support to get the parameter
> -     * values off the service.xml yet
> -     */
> -    private String serviceRepo;
> -
> -    private String clientRepo;
> -
> -    private String targetEpr = "http://127.0.0.1:" +
> -               UtilServer.TESTING_PORT +
> -       "/axis2/services/PingPort";
> -
> -       public InteropTestBase() {
> -               super();
> -       }
> -
> -       public InteropTestBase(String arg0) {
> -               super(arg0);
> -       }
> -
> -       /**
> -        * set up the service
> -        */
> -       protected void setUp() throws Exception {
> -               UtilServer.start(Constants.TESTING_PATH + serviceRepo);
> -       }
> -
> -       /**
> -        * Cleanup
> -        */
> -       protected void tearDown() throws Exception {
> -        UtilServer.stop();
> -    }
> -
> -       protected void setClientRepo(String clientRepo) {
> -               this.clientRepo = clientRepo;
> -       }
> -
> -       public String getClientRepo() {
> -               return clientRepo;
> -       }
> -
> -       protected void setServiceRepo(String serviceRepo) {
> -               this.serviceRepo = serviceRepo;
> -       }
> -
> -       /**
> -        * Do test
> -        */
> -    public void testInterop() {
> -       try {
> -               InteropScenarioClient.main(new String[]{Constants.TESTING_PATH + clientRepo,targetEpr});
> -       } catch (Exception e) {
> -               e.printStackTrace();
> -               fail("Error in introperating with " + targetEpr + ", client configuration: " + clientRepo);
> -       }
> -    }
> -
> -}
> +///*
> +//* Copyright 2004,2005 The Apache Software Foundation.
> +//*
> +//* Licensed under the Apache License, Version 2.0 (the "License");
> +//* you may not use this file except in compliance with the License.
> +//* You may obtain a copy of the License at
> +//*
> +//*      http://www.apache.org/licenses/LICENSE-2.0
> +//*
> +//* Unless required by applicable law or agreed to in writing, software
> +//* distributed under the License is distributed on an "AS IS" BASIS,
> +//* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> +//* See the License for the specific language governing permissions and
> +//* limitations under the License.
> +//*/
> +//
> +//package org.apache.axis2.security;
> +//
> +//import junit.framework.TestCase;
> +//
> +//import org.apache.axis2.Constants;
> +//import org.apache.axis2.integration.UtilServer;
> +///**
> +// *
> +// * @author Ruchith Fernando (ruchith.fernando@gmail.com)
> +// */
> +//public class InteropTestBase extends TestCase {
> +//
> +//    protected static final String SCENARIO1_SERVICE_REPOSITORY = "scenario1_service_repo";
> +//
> +//    protected static final String SCENARIO1_CLIENT_REPOSITORY = "scenario1_client_repo";
> +//
> +//    protected static final String SCENARIO2_SERVICE_REPOSITORY = "scenario2_service_repo";
> +//
> +//    protected static final String SCENARIO2_CLIENT_REPOSITORY = "scenario2_client_repo";
> +//
> +//    protected static final String SCENARIO2a_SERVICE_REPOSITORY = "scenario2a_service_repo";
> +//
> +//    protected static final String SCENARIO2a_CLIENT_REPOSITORY = "scenario2a_client_repo";
> +//
> +//    protected static final String SCENARIO3_SERVICE_REPOSITORY = "scenario3_service_repo";
> +//
> +//    protected static final String SCENARIO3_CLIENT_REPOSITORY = "scenario3_client_repo";
> +//
> +//    protected static final String SCENARIO4_SERVICE_REPOSITORY = "scenario4_service_repo";
> +//
> +//    protected static final String SCENARIO4_CLIENT_REPOSITORY = "scenario4_client_repo";
> +//
> +//    protected static final String SCENARIO5_SERVICE_REPOSITORY = "scenario5_service_repo";
> +//
> +//    protected static final String SCENARIO5_CLIENT_REPOSITORY = "scenario5_client_repo";
> +//
> +//    protected static final String SCENARIO6_SERVICE_REPOSITORY = "scenario6_service_repo";
> +//
> +//    protected static final String SCENARIO6_CLIENT_REPOSITORY = "scenario6_client_repo";
> +//
> +//    protected static final String SCENARIO7_SERVICE_REPOSITORY = "scenario7_service_repo";
> +//
> +//    protected static final String SCENARIO7_CLIENT_REPOSITORY = "scenario7_client_repo";
> +//
> +//    /*
> +//     * We have to create different a client repository and a service repository
> +//     * for each scenarion since we dont have the support to get the parameter
> +//     * values off the service.xml yet
> +//     */
> +//    private String serviceRepo;
> +//
> +//    private String clientRepo;
> +//
> +//    private String targetEpr = "http://127.0.0.1:" +
> +//             UtilServer.TESTING_PORT +
> +//     "/axis2/services/PingPort";
> +//
> +//     public InteropTestBase() {
> +//             super();
> +//     }
> +//
> +//     public InteropTestBase(String arg0) {
> +//             super(arg0);
> +//     }
> +//
> +//     /**
> +//      * set up the service
> +//      */
> +//     protected void setUp() throws Exception {
> +//             UtilServer.start(Constants.TESTING_PATH + serviceRepo);
> +//     }
> +//
> +//     /**
> +//      * Cleanup
> +//      */
> +//     protected void tearDown() throws Exception {
> +//        UtilServer.stop();
> +//    }
> +//
> +//     protected void setClientRepo(String clientRepo) {
> +//             this.clientRepo = clientRepo;
> +//     }
> +//
> +//     public String getClientRepo() {
> +//             return clientRepo;
> +//     }
> +//
> +//     protected void setServiceRepo(String serviceRepo) {
> +//             this.serviceRepo = serviceRepo;
> +//     }
> +//
> +//     /**
> +//      * Do test
> +//      */
> +//    public void testInterop() {
> +//     try {
> +//             InteropScenarioClient.main(new String[]{Constants.TESTING_PATH + clientRepo,targetEpr});
> +//     } catch (Exception e) {
> +//             e.printStackTrace();
> +//             fail("Error in introperating with " + targetEpr + ", client configuration: " + clientRepo);
> +//     }
> +//    }
> +//
> +//}
> 
> Modified: webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/Scenario1Test.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/Scenario1Test.java?rev=264703&r1=264702&r2=264703&view=diff
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/Scenario1Test.java (original)
> +++ webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/Scenario1Test.java Mon Aug 29 21:42:20 2005
> @@ -1,31 +1,31 @@
> -/*
> -* Copyright 2004,2005 The Apache Software Foundation.
> -*
> -* Licensed under the Apache License, Version 2.0 (the "License");
> -* you may not use this file except in compliance with the License.
> -* You may obtain a copy of the License at
> -*
> -*      http://www.apache.org/licenses/LICENSE-2.0
> -*
> -* Unless required by applicable law or agreed to in writing, software
> -* distributed under the License is distributed on an "AS IS" BASIS,
> -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> -* See the License for the specific language governing permissions and
> -* limitations under the License.
> -*/
> -
> -package org.apache.axis2.security;
> -
> -/**
> - *
> - * @author Ruchith Fernando (ruchith.fernando@gmail.com)
> - */
> -public class Scenario1Test extends InteropTestBase {
> -
> -       protected void setUp() throws Exception {
> -               this.setClientRepo(SCENARIO1_CLIENT_REPOSITORY);
> -               this.setServiceRepo(SCENARIO1_SERVICE_REPOSITORY);
> -               super.setUp();
> -       }
> -
> -}
> +///*
> +//* Copyright 2004,2005 The Apache Software Foundation.
> +//*
> +//* Licensed under the Apache License, Version 2.0 (the "License");
> +//* you may not use this file except in compliance with the License.
> +//* You may obtain a copy of the License at
> +//*
> +//*      http://www.apache.org/licenses/LICENSE-2.0
> +//*
> +//* Unless required by applicable law or agreed to in writing, software
> +//* distributed under the License is distributed on an "AS IS" BASIS,
> +//* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> +//* See the License for the specific language governing permissions and
> +//* limitations under the License.
> +//*/
> +//
> +//package org.apache.axis2.security;
> +//
> +///**
> +// *
> +// * @author Ruchith Fernando (ruchith.fernando@gmail.com)
> +// */
> +//public class Scenario1Test extends InteropTestBase {
> +//
> +//     protected void setUp() throws Exception {
> +//             this.setClientRepo(SCENARIO1_CLIENT_REPOSITORY);
> +//             this.setServiceRepo(SCENARIO1_SERVICE_REPOSITORY);
> +//             super.setUp();
> +//     }
> +//
> +//}
> 
> 
> 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform

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

Posted by Davanum Srinivas <da...@gmail.com>.
deepal,

Please be careful....you commented out other code unintentionally.

-- dims

On 8/30/05, deepal@apache.org <de...@apache.org> wrote:
> Author: deepal
> Date: Mon Aug 29 21:42:20 2005
> New Revision: 264703
> 
> URL: http://svn.apache.org/viewcvs?rev=264703&view=rev
> Log:
> commiting Interop (sun simple round4)test cases done by Nadana
> 
> Added:
>     webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/
>     webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resEmptyfault.xml
>     webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resIntArrayFault.xml
>     webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults1.xml
>     webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults2.xml
>     webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults3.xml
>     webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults4.xml
>     webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resStringFault.xml
>     webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/
>     webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults2ClientUtil.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java
>     webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java
> Modified:
>     webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/InteropTestBase.java
>     webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/Scenario1Test.java
> 
> Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resEmptyfault.xml
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resEmptyfault.xml?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resEmptyfault.xml (added)
> +++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resEmptyfault.xml Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,12 @@
> +<?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.simplerpcenc.server.EmptyFault</faultstring>
> 
> +            <detail>
> 
> +               <ns1:part1 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns0:EmptyFault"/>
> 
> +            </detail>
> 
> +         </env:Fault>
> 
> +      </env:Body>
> 
> +   </env:Envelope>
> \ No newline at end of file
> 
> Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resIntArrayFault.xml
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resIntArrayFault.xml?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resIntArrayFault.xml (added)
> +++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resIntArrayFault.xml Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,16 @@
> +<?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.simplerpcenc.server.IntArrayFault</faultstring>
> 
> +            <detail>
> 
> +               <ns1:part5 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="enc:Array" enc:arrayType="xsd:int[3]">
> 
> +                  <item xsi:type="xsd:int">99</item>
> 
> +                  <item xsi:type="xsd:int">10</item>
> 
> +                  <item xsi:type="xsd:int">12</item>
> 
> +               </ns1:part5>
> 
> +            </detail>
> 
> +         </env:Fault>
> 
> +      </env:Body>
> 
> +   </env:Envelope>
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults1.xml
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults1.xml?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults1.xml (added)
> +++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults1.xml Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,12 @@
> +<?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.simplerpcenc.server.EmptyFault</faultstring>
> 
> +            <detail>
> 
> +               <ns1:part1 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns0:EmptyFault"/>
> 
> +            </detail>
> 
> +         </env:Fault>
> 
> +      </env:Body>
> 
> +   </env:Envelope>
> \ No newline at end of file
> 
> Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults2.xml
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults2.xml?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults2.xml (added)
> +++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults2.xml Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,12 @@
> +<?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.simplerpcenc.server.StringFault</faultstring>
> 
> +            <detail>
> 
> +               <ns1:part2 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:string">hi</ns1:part2>
> 
> +            </detail>
> 
> +         </env:Fault>
> 
> +      </env:Body>
> 
> +   </env:Envelope>
> \ No newline at end of file
> 
> Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults3.xml
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults3.xml?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults3.xml (added)
> +++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults3.xml Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,12 @@
> +<?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.simplerpcenc.server.StringFault</faultstring>
> 
> +            <detail>
> 
> +               <ans1:part2 xmlns:ans1="http://soapinterop.org/wsdl/fault1" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:string">param 1</ans1:part2>
> 
> +            </detail>
> 
> +         </env:Fault>
> 
> +      </env:Body>
> 
> +   </env:Envelope>
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults4.xml
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults4.xml?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults4.xml (added)
> +++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resMultipleFaults4.xml Mon Aug 29 21:42:20 2005
> @@ -0,0 +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>
> 
> +            <faultcode>env:Client</faultcode>
> 
> +            <faultstring>caught exception while handling request: deserialization error: java.lang.IllegalArgumentException</faultstring>
> 
> +         </env:Fault>
> 
> +      </env:Body>
> 
> +   </env:Envelope>
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resStringFault.xml
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resStringFault.xml?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resStringFault.xml (added)
> +++ webservices/axis/trunk/java/modules/integration/itest-resources/interopt/sun/round4/simple/resStringFault.xml Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,12 @@
> +<?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.simplerpcenc.server.StringFault</faultstring>
> 
> +            <detail>
> 
> +               <ns1:part2 env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:string">Axis2 Echo String </ns1:part2>
> 
> +            </detail>
> 
> +         </env:Fault>
> 
> +      </env:Body>
> 
> +   </env:Envelope>
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java (added)
> +++ webservices/axis/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,121 @@
> +
> 
> +package org.apache.axis2.interopt.sun.simple;
> 
> +
> 
> +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 org.apache.axis2.interopt.sun.round4.simple.EchoBlockingClient;
> 
> +import org.apache.axis2.interopt.sun.round4.simple.util.*;
> 
> +
> 
> +import javax.xml.stream.XMLStreamException;
> 
> +import javax.xml.stream.XMLInputFactory;
> 
> +import java.io.InputStream;
> 
> +
> 
> +import junit.framework.TestCase;
> 
> +
> 
> +/**
> 
> + * 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 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;
> 
> +    }
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +    public void testEchoEmptyFault()  throws Exception{
> 
> +        util=new EchoEmptyFaultClientUtil();
> 
> +        retEle =client.sendMsg(util,soapAction);
> 
> +        assertTrue(Compare(retEle,"/interopt/sun/round4/simple/resEmptyfault.xml"));
> 
> +
> 
> +
> 
> +    }
> 
> +
> 
> +
> 
> +    //todo fix me Nadana , this fails due to bug in XML Comparator
> 
> +    //echoBaseSoapStructFault
> 
> +//    public void testIntArrayFault()throws Exception{
> 
> +//        util=new EchoIntArrayFaultClientUtil();
> 
> +//        retEle = client.sendMsg(util,soapAction);
> 
> +//        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resIntArrayFault.xml"));
> 
> +//    }
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +    //echoExtendedStructFault
> 
> +    public void testStringFault()throws Exception{
> 
> +        util=new EchoStringFaultClientUtil();
> 
> +        retEle = client.sendMsg(util,soapAction);
> 
> +        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resStringFault.xml"));
> 
> +
> 
> +
> 
> +
> 
> +    }
> 
> +
> 
> +
> 
> +    //echomultiplefaults1
> 
> +    public void testMultiplefaults1()throws Exception{
> 
> +        util=new EchoMultipleFaults1ClientUtil();
> 
> +        retEle = client.sendMsg(util,soapAction);
> 
> +        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults1.xml"));
> 
> +    }
> 
> +
> 
> +    //echomultiplefaults2
> 
> +    public void testMultiplefaults2()throws Exception{
> 
> +        util=new EchoMultipleFaults2ClientUtil();
> 
> +        retEle = client.sendMsg(util,soapAction);
> 
> +        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults2.xml"));
> 
> +
> 
> +
> 
> +    }
> 
> +
> 
> +    //echomultiplefaults3
> 
> +    public void testMultiplefaults3()throws Exception{
> 
> +        util=new EchoMultipleFaults3Clientutil();
> 
> +        retEle = client.sendMsg(util,soapAction);
> 
> +        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults3.xml"));
> 
> +
> 
> +
> 
> +    }
> 
> +    //echomultiplefaults4
> 
> +    public void testMultiplefaults4()throws Exception{
> 
> +        util=new EchoMultipleFaults4ClientUtil();
> 
> +        retEle = client.sendMsg(util,soapAction);
> 
> +        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults4.xml"));
> 
> +
> 
> +    }
> 
> +
> 
> +}
> \ No newline at end of file
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/EchoBlockingClient.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +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;
> 
> +
> 
> +    }
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +}
> 
> +
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoEmptyFaultClientUtil.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +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;
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +    }
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +}
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoIntArrayFaultClientUtil.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +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;
> 
> +    }
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +}
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults1ClientUtil.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +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;
> 
> +    }
> 
> +
> 
> +
> 
> +}
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults2ClientUtil.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults2ClientUtil.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults2ClientUtil.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults2ClientUtil.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +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;
> 
> +    }
> 
> +
> 
> +}
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults3Clientutil.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +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;
> 
> +    }
> 
> +
> 
> +
> 
> +}
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoMultipleFaults4ClientUtil.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +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;
> 
> +    }
> 
> +
> 
> +
> 
> +
> 
> +}
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/EchoStringFaultClientUtil.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,41 @@
> +package org.apache.axis2.interopt.sun.round4.simple.util;
> 
> +
> 
> +import org.apache.axis2.om.OMElement;
> 
> +import org.apache.axis2.om.OMFactory;
> 
> +import org.apache.axis2.om.OMAbstractFactory;
> 
> +import org.apache.axis2.om.OMNamespace;
> 
> +import org.apache.axis2.soap.SOAP11Constants;
> 
> +
> 
> +/**
> 
> + * Created by IntelliJ IDEA.
> 
> + * User: Nadana
> 
> + * Date: Aug 6, 2005
> 
> + * Time: 3:10:19 PM
> 
> + * To change this template use File | Settings | File Templates.
> 
> + */
> 
> +public class EchoStringFaultClientUtil implements SunGroupHClientUtil{
> 
> +
> 
> +    public OMElement getEchoOMElement() {
> 
> +        OMFactory fac = OMAbstractFactory.getOMFactory();
> 
> +
> 
> +        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");
> 
> +
> 
> +        OMElement method = fac.createOMElement("echoStringFault", omNs);
> 
> +        OMNamespace soapEnvNS = method.declareNamespace(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
> 
> +                SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
> 
> +        method.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", soapEnvNS);
> 
> +
> 
> +
> 
> +
> 
> +
> 
> +        OMElement value = fac.createOMElement("param", null);
> 
> +
> 
> +        value.addChild(fac.createText(value, "Axis2 Echo String "));
> 
> +
> 
> +        method.addChild(value);
> 
> +
> 
> +        return method;
> 
> +    }
> 
> +
> 
> +
> 
> +}
> 
> 
> Added: webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java?rev=264703&view=auto
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java (added)
> +++ webservices/axis/trunk/java/modules/integration/src/org/apache/axis2/interopt/sun/round4/simple/util/SunGroupHClientUtil.java Mon Aug 29 21:42:20 2005
> @@ -0,0 +1,15 @@
> +package org.apache.axis2.interopt.sun.round4.simple.util;
> 
> +
> 
> +import org.apache.axis2.om.OMElement;
> 
> +
> 
> +/**
> 
> + * Created by IntelliJ IDEA.
> 
> + * User: Nadana
> 
> + * Date: Aug 6, 2005
> 
> + * Time: 11:13:40 AM
> 
> + * To change this template use File | Settings | File Templates.
> 
> + */
> 
> +public interface SunGroupHClientUtil {
> 
> +    OMElement getEchoOMElement();
> 
> +
> 
> +}
> 
> 
> Modified: webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/InteropTestBase.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/InteropTestBase.java?rev=264703&r1=264702&r2=264703&view=diff
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/InteropTestBase.java (original)
> +++ webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/InteropTestBase.java Mon Aug 29 21:42:20 2005
> @@ -1,120 +1,120 @@
> -/*
> -* Copyright 2004,2005 The Apache Software Foundation.
> -*
> -* Licensed under the Apache License, Version 2.0 (the "License");
> -* you may not use this file except in compliance with the License.
> -* You may obtain a copy of the License at
> -*
> -*      http://www.apache.org/licenses/LICENSE-2.0
> -*
> -* Unless required by applicable law or agreed to in writing, software
> -* distributed under the License is distributed on an "AS IS" BASIS,
> -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> -* See the License for the specific language governing permissions and
> -* limitations under the License.
> -*/
> -
> -package org.apache.axis2.security;
> -
> -import junit.framework.TestCase;
> -
> -import org.apache.axis2.Constants;
> -import org.apache.axis2.integration.UtilServer;
> -/**
> - *
> - * @author Ruchith Fernando (ruchith.fernando@gmail.com)
> - */
> -public class InteropTestBase extends TestCase {
> -
> -    protected static final String SCENARIO1_SERVICE_REPOSITORY = "scenario1_service_repo";
> -
> -    protected static final String SCENARIO1_CLIENT_REPOSITORY = "scenario1_client_repo";
> -
> -    protected static final String SCENARIO2_SERVICE_REPOSITORY = "scenario2_service_repo";
> -
> -    protected static final String SCENARIO2_CLIENT_REPOSITORY = "scenario2_client_repo";
> -
> -    protected static final String SCENARIO2a_SERVICE_REPOSITORY = "scenario2a_service_repo";
> -
> -    protected static final String SCENARIO2a_CLIENT_REPOSITORY = "scenario2a_client_repo";
> -
> -    protected static final String SCENARIO3_SERVICE_REPOSITORY = "scenario3_service_repo";
> -
> -    protected static final String SCENARIO3_CLIENT_REPOSITORY = "scenario3_client_repo";
> -
> -    protected static final String SCENARIO4_SERVICE_REPOSITORY = "scenario4_service_repo";
> -
> -    protected static final String SCENARIO4_CLIENT_REPOSITORY = "scenario4_client_repo";
> -
> -    protected static final String SCENARIO5_SERVICE_REPOSITORY = "scenario5_service_repo";
> -
> -    protected static final String SCENARIO5_CLIENT_REPOSITORY = "scenario5_client_repo";
> -
> -    protected static final String SCENARIO6_SERVICE_REPOSITORY = "scenario6_service_repo";
> -
> -    protected static final String SCENARIO6_CLIENT_REPOSITORY = "scenario6_client_repo";
> -
> -    protected static final String SCENARIO7_SERVICE_REPOSITORY = "scenario7_service_repo";
> -
> -    protected static final String SCENARIO7_CLIENT_REPOSITORY = "scenario7_client_repo";
> -
> -    /*
> -     * We have to create different a client repository and a service repository
> -     * for each scenarion since we dont have the support to get the parameter
> -     * values off the service.xml yet
> -     */
> -    private String serviceRepo;
> -
> -    private String clientRepo;
> -
> -    private String targetEpr = "http://127.0.0.1:" +
> -               UtilServer.TESTING_PORT +
> -       "/axis2/services/PingPort";
> -
> -       public InteropTestBase() {
> -               super();
> -       }
> -
> -       public InteropTestBase(String arg0) {
> -               super(arg0);
> -       }
> -
> -       /**
> -        * set up the service
> -        */
> -       protected void setUp() throws Exception {
> -               UtilServer.start(Constants.TESTING_PATH + serviceRepo);
> -       }
> -
> -       /**
> -        * Cleanup
> -        */
> -       protected void tearDown() throws Exception {
> -        UtilServer.stop();
> -    }
> -
> -       protected void setClientRepo(String clientRepo) {
> -               this.clientRepo = clientRepo;
> -       }
> -
> -       public String getClientRepo() {
> -               return clientRepo;
> -       }
> -
> -       protected void setServiceRepo(String serviceRepo) {
> -               this.serviceRepo = serviceRepo;
> -       }
> -
> -       /**
> -        * Do test
> -        */
> -    public void testInterop() {
> -       try {
> -               InteropScenarioClient.main(new String[]{Constants.TESTING_PATH + clientRepo,targetEpr});
> -       } catch (Exception e) {
> -               e.printStackTrace();
> -               fail("Error in introperating with " + targetEpr + ", client configuration: " + clientRepo);
> -       }
> -    }
> -
> -}
> +///*
> +//* Copyright 2004,2005 The Apache Software Foundation.
> +//*
> +//* Licensed under the Apache License, Version 2.0 (the "License");
> +//* you may not use this file except in compliance with the License.
> +//* You may obtain a copy of the License at
> +//*
> +//*      http://www.apache.org/licenses/LICENSE-2.0
> +//*
> +//* Unless required by applicable law or agreed to in writing, software
> +//* distributed under the License is distributed on an "AS IS" BASIS,
> +//* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> +//* See the License for the specific language governing permissions and
> +//* limitations under the License.
> +//*/
> +//
> +//package org.apache.axis2.security;
> +//
> +//import junit.framework.TestCase;
> +//
> +//import org.apache.axis2.Constants;
> +//import org.apache.axis2.integration.UtilServer;
> +///**
> +// *
> +// * @author Ruchith Fernando (ruchith.fernando@gmail.com)
> +// */
> +//public class InteropTestBase extends TestCase {
> +//
> +//    protected static final String SCENARIO1_SERVICE_REPOSITORY = "scenario1_service_repo";
> +//
> +//    protected static final String SCENARIO1_CLIENT_REPOSITORY = "scenario1_client_repo";
> +//
> +//    protected static final String SCENARIO2_SERVICE_REPOSITORY = "scenario2_service_repo";
> +//
> +//    protected static final String SCENARIO2_CLIENT_REPOSITORY = "scenario2_client_repo";
> +//
> +//    protected static final String SCENARIO2a_SERVICE_REPOSITORY = "scenario2a_service_repo";
> +//
> +//    protected static final String SCENARIO2a_CLIENT_REPOSITORY = "scenario2a_client_repo";
> +//
> +//    protected static final String SCENARIO3_SERVICE_REPOSITORY = "scenario3_service_repo";
> +//
> +//    protected static final String SCENARIO3_CLIENT_REPOSITORY = "scenario3_client_repo";
> +//
> +//    protected static final String SCENARIO4_SERVICE_REPOSITORY = "scenario4_service_repo";
> +//
> +//    protected static final String SCENARIO4_CLIENT_REPOSITORY = "scenario4_client_repo";
> +//
> +//    protected static final String SCENARIO5_SERVICE_REPOSITORY = "scenario5_service_repo";
> +//
> +//    protected static final String SCENARIO5_CLIENT_REPOSITORY = "scenario5_client_repo";
> +//
> +//    protected static final String SCENARIO6_SERVICE_REPOSITORY = "scenario6_service_repo";
> +//
> +//    protected static final String SCENARIO6_CLIENT_REPOSITORY = "scenario6_client_repo";
> +//
> +//    protected static final String SCENARIO7_SERVICE_REPOSITORY = "scenario7_service_repo";
> +//
> +//    protected static final String SCENARIO7_CLIENT_REPOSITORY = "scenario7_client_repo";
> +//
> +//    /*
> +//     * We have to create different a client repository and a service repository
> +//     * for each scenarion since we dont have the support to get the parameter
> +//     * values off the service.xml yet
> +//     */
> +//    private String serviceRepo;
> +//
> +//    private String clientRepo;
> +//
> +//    private String targetEpr = "http://127.0.0.1:" +
> +//             UtilServer.TESTING_PORT +
> +//     "/axis2/services/PingPort";
> +//
> +//     public InteropTestBase() {
> +//             super();
> +//     }
> +//
> +//     public InteropTestBase(String arg0) {
> +//             super(arg0);
> +//     }
> +//
> +//     /**
> +//      * set up the service
> +//      */
> +//     protected void setUp() throws Exception {
> +//             UtilServer.start(Constants.TESTING_PATH + serviceRepo);
> +//     }
> +//
> +//     /**
> +//      * Cleanup
> +//      */
> +//     protected void tearDown() throws Exception {
> +//        UtilServer.stop();
> +//    }
> +//
> +//     protected void setClientRepo(String clientRepo) {
> +//             this.clientRepo = clientRepo;
> +//     }
> +//
> +//     public String getClientRepo() {
> +//             return clientRepo;
> +//     }
> +//
> +//     protected void setServiceRepo(String serviceRepo) {
> +//             this.serviceRepo = serviceRepo;
> +//     }
> +//
> +//     /**
> +//      * Do test
> +//      */
> +//    public void testInterop() {
> +//     try {
> +//             InteropScenarioClient.main(new String[]{Constants.TESTING_PATH + clientRepo,targetEpr});
> +//     } catch (Exception e) {
> +//             e.printStackTrace();
> +//             fail("Error in introperating with " + targetEpr + ", client configuration: " + clientRepo);
> +//     }
> +//    }
> +//
> +//}
> 
> Modified: webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/Scenario1Test.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/Scenario1Test.java?rev=264703&r1=264702&r2=264703&view=diff
> ==============================================================================
> --- webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/Scenario1Test.java (original)
> +++ webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/security/Scenario1Test.java Mon Aug 29 21:42:20 2005
> @@ -1,31 +1,31 @@
> -/*
> -* Copyright 2004,2005 The Apache Software Foundation.
> -*
> -* Licensed under the Apache License, Version 2.0 (the "License");
> -* you may not use this file except in compliance with the License.
> -* You may obtain a copy of the License at
> -*
> -*      http://www.apache.org/licenses/LICENSE-2.0
> -*
> -* Unless required by applicable law or agreed to in writing, software
> -* distributed under the License is distributed on an "AS IS" BASIS,
> -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> -* See the License for the specific language governing permissions and
> -* limitations under the License.
> -*/
> -
> -package org.apache.axis2.security;
> -
> -/**
> - *
> - * @author Ruchith Fernando (ruchith.fernando@gmail.com)
> - */
> -public class Scenario1Test extends InteropTestBase {
> -
> -       protected void setUp() throws Exception {
> -               this.setClientRepo(SCENARIO1_CLIENT_REPOSITORY);
> -               this.setServiceRepo(SCENARIO1_SERVICE_REPOSITORY);
> -               super.setUp();
> -       }
> -
> -}
> +///*
> +//* Copyright 2004,2005 The Apache Software Foundation.
> +//*
> +//* Licensed under the Apache License, Version 2.0 (the "License");
> +//* you may not use this file except in compliance with the License.
> +//* You may obtain a copy of the License at
> +//*
> +//*      http://www.apache.org/licenses/LICENSE-2.0
> +//*
> +//* Unless required by applicable law or agreed to in writing, software
> +//* distributed under the License is distributed on an "AS IS" BASIS,
> +//* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> +//* See the License for the specific language governing permissions and
> +//* limitations under the License.
> +//*/
> +//
> +//package org.apache.axis2.security;
> +//
> +///**
> +// *
> +// * @author Ruchith Fernando (ruchith.fernando@gmail.com)
> +// */
> +//public class Scenario1Test extends InteropTestBase {
> +//
> +//     protected void setUp() throws Exception {
> +//             this.setClientRepo(SCENARIO1_CLIENT_REPOSITORY);
> +//             this.setServiceRepo(SCENARIO1_SERVICE_REPOSITORY);
> +//             super.setUp();
> +//     }
> +//
> +//}
> 
> 
> 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform