geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r519683 - in /geronimo/server/trunk/modules/geronimo-axis2: ./ src/main/java/org/apache/geronimo/axis2/ src/test/java/org/apache/geronimo/axis2/ src/test/java/org/apache/geronimo/axis2/testdata/ src/test/java/org/apache/geronimo/axis2/testd...
Date Sun, 18 Mar 2007 20:17:53 GMT
Author: dims
Date: Sun Mar 18 13:17:52 2007
New Revision: 519683

URL: http://svn.apache.org/viewvc?view=rev&rev=519683
Log:
Fix for GERONIMO-2979 - More improvements to the Geronimo Axis2 Integration

Added:
    geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/doclitbare/
    geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/doclitbare/BareDocLitService.java
    geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/rpclit/
    geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/rpclit/RPCLitService.java
    geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/simple/
    geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/simple/HelloWorld.java
    geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doclitbare.wsdl
    geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doclitbare_request.xml
    geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_rpclit.wsdl
    geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_rpclit_request.xml
    geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_simple.wsdl
    geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_simple_request.xml
Modified:
    geronimo/server/trunk/modules/geronimo-axis2/pom.xml
    geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainer.java
    geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/AxisServiceGenerator.java
    geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/Axis2WebServiceContainerTest.java
    geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/HelloWorld.java
    geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doc_lit.wsdl
    geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doc_lit_request.xml

Modified: geronimo/server/trunk/modules/geronimo-axis2/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/pom.xml?view=diff&rev=519683&r1=519682&r2=519683
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/pom.xml (original)
+++ geronimo/server/trunk/modules/geronimo-axis2/pom.xml Sun Mar 18 13:17:52 2007
@@ -219,14 +219,26 @@
 						<phase>generate-test-sources</phase>
 						<configuration>
 							<tasks>
-								<echo>Generating java from test_service_doc_lit.wsdl</echo>
+								<echo>Generating java from test_service_simple.wsdl</echo>
 								<property name="schema.output.base.dir" location="target/schema"/>
 								<property name="schema.generated.src.dir" location="${schema.output.base.dir}/src"/>
 								<mkdir dir="${schema.generated.src.dir}"/>
 								<java classname="com.sun.tools.xjc.Driver" fork="true">
 									<classpath refid="maven.runtime.classpath"/>
 									<classpath location="${compiled.classes.dir}"/>
-									<arg line="-d ${schema.generated.src.dir} -quiet -wsdl src/test/resources/test_service_doc_lit.wsdl"/>
+									<arg line="-d ${schema.generated.src.dir} -quiet -wsdl src/test/resources/test_service_simple.wsdl"/>
+								</java>
+								<echo>Generating java from test_service_doclitbare.wsdl</echo>
+								<java classname="com.sun.tools.xjc.Driver" fork="true">
+									<classpath refid="maven.runtime.classpath"/>
+									<classpath location="${compiled.classes.dir}"/>
+									<arg line="-d ${schema.generated.src.dir} -quiet -wsdl src/test/resources/test_service_doclitbare.wsdl"/>
+								</java>
+								<echo>Generating java from test_service_rpclit.wsdl</echo>
+								<java classname="com.sun.tools.xjc.Driver" fork="true">
+									<classpath refid="maven.runtime.classpath"/>
+									<classpath location="${compiled.classes.dir}"/>
+									<arg line="-d ${schema.generated.src.dir} -quiet -wsdl src/test/resources/test_service_rpclit.wsdl"/>
 								</java>
 							</tasks>
 						</configuration>

Modified: geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainer.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainer.java?view=diff&rev=519683&r1=519682&r2=519683
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainer.java (original)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainer.java Sun Mar 18 13:17:52 2007
@@ -51,6 +51,7 @@
 import org.apache.axis2.description.TransportOutDescription;
 import org.apache.axis2.engine.AxisEngine;
 import org.apache.axis2.engine.DependencyManager;
+import org.apache.axis2.engine.Handler.InvocationResponse;
 import org.apache.axis2.jaxws.description.builder.WsdlComposite;
 import org.apache.axis2.jaxws.description.builder.WsdlGenerator;
 import org.apache.axis2.jaxws.server.JAXWSMessageReceiver;
@@ -59,6 +60,7 @@
 import org.apache.axis2.transport.http.HTTPConstants;
 import org.apache.axis2.transport.http.HTTPTransportReceiver;
 import org.apache.axis2.transport.http.HTTPTransportUtils;
+import org.apache.axis2.transport.http.util.RESTUtil;
 import org.apache.axis2.util.MessageContextBuilder;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -480,22 +482,16 @@
         msgContext.setProperty(MessageContext.TRANSPORT_OUT, response.getOutputStream());
         msgContext.setProperty(Constants.OUT_TRANSPORT_INFO, new Axis2TransportInfo(response));
 
-        // deal with GET request
-        boolean processed = HTTPTransportUtils.processHTTPGetRequest(
-                msgContext,
-                response.getOutputStream(),
-                soapAction,
-                path,
-                configurationContext,
-                HTTPTransportReceiver.getGetRequestParameters(path));
+        InvocationResponse processed = RESTUtil.processURLRequest(msgContext, response.getOutputStream(), null);
+
+      if (!processed.equals(InvocationResponse.CONTINUE)) {
+          response.setStatusCode(200);
+          String s = HTTPTransportReceiver.getServicesHTML(configurationContext);
+          PrintWriter pw = new PrintWriter(response.getOutputStream());
+          pw.write(s);
+          pw.flush();
+      }
 
-        if (!processed) {
-            response.setStatusCode(200);
-            String s = HTTPTransportReceiver.getServicesHTML(configurationContext);
-            PrintWriter pw = new PrintWriter(response.getOutputStream());
-            pw.write(s);
-            pw.flush();
-        }
     }
     
     protected void setMsgContextProperties(MessageContext msgContext, AxisService service, Response response, Request request) {

Modified: geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/AxisServiceGenerator.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/AxisServiceGenerator.java?view=diff&rev=519683&r1=519682&r2=519683
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/AxisServiceGenerator.java (original)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/AxisServiceGenerator.java Sun Mar 18 13:17:52 2007
@@ -74,8 +74,7 @@
 import org.apache.ws.commons.schema.XmlSchemaSequence;
 import org.apache.ws.commons.schema.XmlSchemaType;
 
-//TODO: RPC style with more Genericway, 
-//TODO: Consider there is a problem for Doc Lit & Bare
+//TODO: Handle RPC Style Messaging
 //TODO: Handle Fault Messages
 //TODO: Investigate more on JAXB Wrapper class gen default behaviour 
 
@@ -107,7 +106,7 @@
         String portName = port.getName();
         QName serviceQName = wsdlService.getQName();
 
-           //Decide WSDL Version : 
+        //Decide WSDL Version : 
         if(WSDLConstants.WSDL20_2006Constants.DEFAULT_NAMESPACE_URI.equals(documentElementNS.getNamespaceURI())){
             wsdlBuilder = new WSDL20ToAxisServiceBuilder(new ByteArrayInputStream(wsdlContent.getBytes()), serviceQName, null);
         }
@@ -143,6 +142,7 @@
                 String axisOpName = operation.getName().getLocalPart();
                 if(method.getName().equals(axisOpName)){
                     fillOperationInformation(method, operation, dbc);
+                    break;
                 }
             }
         }
@@ -169,6 +169,8 @@
             fillDocOperationInfo(method, operation, dbc, mdc, webMethodAnnot);
         }else if(operation.getStyle().equals(AxisOperation.STYLE_RPC)){
             throw new RuntimeException("Not Yet Implemented");
+        }else {
+        	//TODO:
         }
     }
     
@@ -183,58 +185,62 @@
             if(inAxisMessage != null){
                  
                 XmlSchemaElement element = inAxisMessage.getSchemaElement();
-                XmlSchemaType schemaType = element.getSchemaType();
-                 
-                if(schemaType instanceof XmlSchemaComplexType){
+                
+                if(element != null){
+                	XmlSchemaType schemaType = element.getSchemaType();
+                	
+                    if(schemaType instanceof XmlSchemaComplexType){
 
-                    XmlSchemaComplexType complexSchemaType = (XmlSchemaComplexType)element.getSchemaType();
-                    XmlSchemaParticle particle = complexSchemaType.getParticle();
-                     
-//                     TODO: What if we have more than one complex type in a sequence ???
-                    if (particle instanceof XmlSchemaSequence) {
-                        XmlSchemaSequence xmlSchemaSequence = (XmlSchemaSequence) particle;
-                        Iterator iterator = xmlSchemaSequence.getItems().getIterator();
+                        XmlSchemaComplexType complexSchemaType = (XmlSchemaComplexType)element.getSchemaType();
+                        XmlSchemaParticle particle = complexSchemaType.getParticle();
                          
-                        while (iterator.hasNext()) {
-                            XmlSchemaElement innerElement = (XmlSchemaElement) iterator.next();
-                            XmlSchemaType innerElementSchemaType = innerElement.getSchemaType();
+                        if (particle instanceof XmlSchemaSequence) {
+                            XmlSchemaSequence xmlSchemaSequence = (XmlSchemaSequence) particle;
+                            Iterator iterator = xmlSchemaSequence.getItems().getIterator();
                              
-                            if(!(innerElementSchemaType instanceof XmlSchemaComplexType)){
-                                element = innerElement;
-                                break;
-                            }else { 
-                                XmlSchemaComplexType innerComplexSchemaType = (XmlSchemaComplexType)innerElementSchemaType;
-                                XmlSchemaParticle innerParticle = innerComplexSchemaType.getParticle();
-                                XmlSchemaSequence innerXmlSchemaSequence = (XmlSchemaSequence) innerParticle;
-                                iterator = innerXmlSchemaSequence.getItems().getIterator();
+                            while (iterator.hasNext()) {
+                                XmlSchemaElement innerElement = (XmlSchemaElement) iterator.next();
+                                XmlSchemaType innerElementSchemaType = innerElement.getSchemaType();
+                                 
+                                if(!(innerElementSchemaType instanceof XmlSchemaComplexType)){
+                                    element = innerElement;
+                                    break;
+                                }else { 
+                                    XmlSchemaComplexType innerComplexSchemaType = (XmlSchemaComplexType)innerElementSchemaType;
+                                    XmlSchemaParticle innerParticle = innerComplexSchemaType.getParticle();
+                                    XmlSchemaSequence innerXmlSchemaSequence = (XmlSchemaSequence) innerParticle;
+                                    iterator = innerXmlSchemaSequence.getItems().getIterator();
+                                }
                             }
                         }
                     }
                 }
                  
-                ParameterDescriptionComposite pdc = new ParameterDescriptionComposite();
-                WebParamAnnot webParamAnnot = WebParamAnnot.createWebParamAnnotImpl();
-            
-                webParamAnnot.setName(element.getName());
-                pdc.setWebParamAnnot(webParamAnnot);
-                    
-                Class[] paramTypes = method.getParameterTypes();
-                    
-                for(Class paramType : paramTypes){
-                    pdc.setParameterType(paramType.getName());
+                if(element != null){
+                	ParameterDescriptionComposite pdc = new ParameterDescriptionComposite();
+                    WebParamAnnot webParamAnnot = WebParamAnnot.createWebParamAnnotImpl();
+                    webParamAnnot.setName(element.getName());
+                    pdc.setWebParamAnnot(webParamAnnot);
+                        
+                    Class[] paramTypes = method.getParameterTypes();
+                        
+                    for(Class paramType : paramTypes){
+                        String strParamType = paramType.getName();                        
+                       	pdc.setParameterType(strParamType);
+                    }
+                    mdc.addParameterDescriptionComposite(pdc);
                 }
-                    
-                mdc.addParameterDescriptionComposite(pdc);
             }
         }
          
         if (WSDLUtil.isOutputPresentForMEP(MEP)) {
             AxisMessage outAxisMessage = operation.getMessage(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
              
-            if(outAxisMessage != null){
-                 
+            if(outAxisMessage != null){   
                 if(!method.getReturnType().toString().equals("void")){
-                    mdc.setReturnType(method.getReturnType().getName());
+                	String strReturnTempArray = method.getReturnType().getName();
+                	
+                	mdc.setReturnType(strReturnTempArray);
                      
                     XmlSchemaElement element = outAxisMessage.getSchemaElement();
                     XmlSchemaType schemaType = element.getSchemaType();
@@ -244,7 +250,7 @@
                         XmlSchemaComplexType complexSchemaType = (XmlSchemaComplexType)element.getSchemaType();
                         XmlSchemaParticle particle = complexSchemaType.getParticle();
                          
-//                      TODO: What if we have more than one complex type in a sequence ???
+                        // TODO: What if we have more than one complex type in a sequence ???
                         if (particle instanceof XmlSchemaSequence) {
                             XmlSchemaSequence xmlSchemaSequence = (XmlSchemaSequence) particle;
                             Iterator iterator = xmlSchemaSequence.getItems().getIterator();
@@ -273,13 +279,15 @@
                     ResponseWrapperAnnot responseWrap = ResponseWrapperAnnot.createResponseWrapperAnnotImpl();
                     responseWrap.setClassName(getWrapperClassName(outAxisMessage.getElementQName()));
                     mdc.setResponseWrapperAnnot(responseWrap);
-                }     
+                } 
             }
+        }else {
+        	//TODO: JAXWS spec says need to check Holder param exist before taking a method as OneWay
+        	mdc.setOneWayAnnot(true); 
         }
          
         List faultMessages = operation.getFaultMessages(); 
         if(faultMessages != null){//TODO Implement it 
-             
         }
          
         mdc.setWebMethodAnnot(webMethodAnnot);
@@ -305,7 +313,12 @@
             index ++;
         }
         
-        String packageName = host.substring(index+1, host.length())+"."+host.substring(0, index); 
+        String packageName = "";
+        if(pathParts.length == 1){ 
+        	packageName = host.substring(index+1, host.length())+"."+host.substring(0, index);
+        }else {
+        	packageName = host;
+        }
         
         for(String pathPart : pathParts){
             if(!pathPart.equals("")){
@@ -343,7 +356,6 @@
     protected Definition getWSDLDefition(PortInfo portInfo, URL configurationBaseUrl, ClassLoader classLoader) throws IOException, WSDLException {
         String wsdlFile = portInfo.getWsdlFile();
         Definition wsdlDefinition = null;
-        
         if(wsdlFile == null || wsdlFile.equals(""))
             return null;
         else {

Modified: geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/Axis2WebServiceContainerTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/Axis2WebServiceContainerTest.java?view=diff&rev=519683&r1=519682&r2=519683
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/Axis2WebServiceContainerTest.java (original)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/Axis2WebServiceContainerTest.java Sun Mar 18 13:17:52 2007
@@ -16,38 +16,47 @@
  */
 package org.apache.geronimo.axis2;
 
+import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
+import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.StringReader;
 import java.net.URI;
 import java.util.HashMap;
 
+import javax.xml.parsers.DocumentBuilder;
+
 import org.apache.geronimo.axis2.pojo.POJOWebServiceContainer;
 import org.apache.geronimo.jaxws.PortInfo;
+import org.apache.geronimo.kernel.util.XmlUtil;
 import org.apache.geronimo.webservices.WebServiceContainer.Request;
+import org.apache.tools.ant.filters.StringInputStream;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NamedNodeMap;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
 import org.xml.sax.InputSource;
 
 public class Axis2WebServiceContainerTest extends Axis2AbstractTestCase {
+	private final String RESOURCE_PATH = testDir+"/resources/";
     public Axis2WebServiceContainerTest(String testName) {
         super(testName);
     }
 
-    public void testInvokeWithWSDLDocLit() throws Exception {
-        testInvokeWithWSDL("test_service_doc_lit_request.xml", "test_service_doc_lit.wsdl");
-    }
-
-    //TODO:
-    public void testInvokeWithWSDLRPCLit() throws Exception {
+    public void testInvokeWithWSDL() throws Exception {
+        invokeWithWSDL("BareDocLitService", "org.apache.geronimo.axis2.testdata.doclitbare.BareDocLitService", "test_service_doclitbare.wsdl", "test_service_doclitbare_request.xml");
+//        invokeWithWSDL("RPCLitService", "org.apache.geronimo.axis2.testdata.rpclit.RPCLitService", "test_service_rpclit.wsdl", "test_service_rpclit_request.xml");
     }
 
+    
     public void testGetWSDL() throws Exception {
         ClassLoader cl = Thread.currentThread().getContextClassLoader();
 
         PortInfo portInfo = new PortInfo();
         portInfo.setLocation("HelloWorld");
-        portInfo.setServiceEndpointInterfaceName("org.apache.geronimo.axis2.testdata.HelloWorld");
-//        portInfo.setWsdlFile("file://" + testDir + "/resources/test_service_doc_lit.wsdl");
+        portInfo.setServiceEndpointInterfaceName("org.apache.geronimo.axis2.testdata.simple.HelloWorld");
 
         Axis2Request req = new Axis2Request(504,
                 "text/xml; charset=utf-8",
@@ -60,52 +69,133 @@
         ByteArrayOutputStream out = new ByteArrayOutputStream();
         Axis2Response res = new Axis2Response("text/xml; charset=utf-8", "127.0.0.1", null, null, 8080, out);
         
-        String endpointClassName = "org.apache.geronimo.axis2.testdata.HelloWorld";
+        String endpointClassName = "org.apache.geronimo.axis2.testdata.simple.HelloWorld";
         POJOWebServiceContainer container = new POJOWebServiceContainer(portInfo, endpointClassName, cl, null, null);
         container.invoke(req, res);
         out.flush();
 
     }
 
-    private void testInvokeWithWSDL(String requestFile, String wsdlFile) throws Exception {
+    private void invokeWithWSDL(String serviceName, String endPointClassName, String wsdl, String requestFile ) throws Exception {
         ClassLoader cl = Thread.currentThread().getContextClassLoader();
         InputStream in = cl.getResourceAsStream(requestFile);
+        
+        //This will reduce number of requests files
+        DocumentBuilder documentBuilder = XmlUtil.newDocumentBuilderFactory().newDocumentBuilder();
+        Document doc = documentBuilder.parse(in);
 
-        PortInfo portInfo = new PortInfo();
-        portInfo.setLocation("servlet");
-
-        try {
-            Axis2Request req = new Axis2Request(504,
-                    "text/xml; charset=utf-8",
-                    in,
-                    Request.POST,
-                    new HashMap(),
-                    new URI("/axis2/servlet"),
-                    new HashMap(),
-                    "127.0.0.1");
-
-            ByteArrayOutputStream out = new ByteArrayOutputStream();
-            Axis2Response res = new Axis2Response("text/xml; charset=utf-8", "127.0.0.1", null, null, 8080, out);
-
-            String endpointClassName = "org.apache.geronimo.axis2.testdata.HelloWorld";
-            POJOWebServiceContainer container = new POJOWebServiceContainer(portInfo, endpointClassName, cl, null, null);
-            container.invoke(req, res);
-            out.flush();
-
-        } catch (Throwable ex) {
-            ex.printStackTrace();
-            throw new Exception(ex.toString());
-        } finally {
-            if (in != null) {
-                try {
-                    in.close();
-                } catch (IOException ignore) {
-                    // ignore
+        Element root = doc.getDocumentElement();
+        NodeList nodeList = root.getElementsByTagName("soap:Envelope");
+        
+        StringInputStream request;
+        
+        for(int i = 0; i < nodeList.getLength(); i++){
+        	StringBuffer envelope = new StringBuffer("<soap:Envelope");
+        	Element element = (Element)nodeList.item(i);
+        	NamedNodeMap attributes = element.getAttributes();
+        	if(attributes != null){
+        		for(int k=0; k < attributes.getLength(); k++){
+        			envelope.append(" "+attributes.item(k).getNodeName().trim());
+        			envelope.append("=\""+attributes.item(k).getNodeValue().trim()+"\"");
+        		}
+        		String content = element.getTextContent();
+        		
+        		if(content != null && !content.equals("")){
+        			envelope.append(">");
+            		
+            		NodeList children = element.getChildNodes();
+            		if(children != null){
+            			for(int j=0; j < children.getLength(); j++){
+            				if(children.item(j).getNodeType() == org.w3c.dom.Node.ELEMENT_NODE){
+                    			Element child = (Element)children.item(j);
+                    			envelope.append(getElementContent(child).trim());
+                			}else if(children.item(j).getNodeType() == org.w3c.dom.Node.TEXT_NODE){
+                				envelope.append(children.item(j).getNodeValue().trim());
+                			}
+                		}
+            		}
+            		envelope.append("</soap:Envelope>");
+        		}else {
+        			envelope.append("/>");
+        		}
+        	}
+        	
+        	request = new StringInputStream(envelope.toString());
+        	
+            PortInfo portInfo = new PortInfo();
+            portInfo.setLocation(serviceName);
+            
+            File wsdlFile = new File(RESOURCE_PATH + wsdl);
+            portInfo.setWsdlFile(wsdlFile.toURL().toString());
+
+            try {
+                Axis2Request req = new Axis2Request(504,
+                        "text/xml; charset=utf-8",
+                        request,
+                        Request.POST,
+                        new HashMap(),
+                        new URI("/axis2/"+serviceName),
+                        new HashMap(),
+                        "127.0.0.1");
+
+                ByteArrayOutputStream out = new ByteArrayOutputStream();
+                Axis2Response res = new Axis2Response("text/xml; charset=utf-8", "127.0.0.1", null, null, 8080, out);
+
+                POJOWebServiceContainer container = new POJOWebServiceContainer(portInfo, endPointClassName, cl, null, null);
+                container.invoke(req, res);
+                System.out.println("Response "+out);
+                out.flush();
+
+            } catch (Throwable ex) {
+                ex.printStackTrace();
+                throw new Exception(ex.toString());
+            } finally {
+                if (request != null) {
+                    try {
+                        request.close();
+                    } catch (IOException ignore) {
+                        // ignore
+                    }
                 }
             }
         }
     }
-
+    
+    private String getElementContent(Element e){
+    	StringBuffer content = new StringBuffer("<"+e.getNodeName());
+    	NamedNodeMap attributes = e.getAttributes();
+    	
+    	if(attributes != null){
+    		for(int k=0; k < attributes.getLength(); k++){
+    			content.append(" "+attributes.item(k).getNodeName()) ;
+    			content.append("=\""+attributes.item(k).getNodeValue()+"\"") ;
+    		}
+    	}
+    	
+    	String value = e.getTextContent();
+		
+		if(value != null && !value.equals("")){
+			content.append(">");
+
+			NodeList children = e.getChildNodes();
+    		if(children != null){
+    			for(int j=0; j < children.getLength(); j++){
+    				if(children.item(j).getNodeType() == org.w3c.dom.Node.ELEMENT_NODE){
+            			Element child = (Element)children.item(j);
+            			content.append(getElementContent(child).trim());
+        			}else if(children.item(j).getNodeType() == org.w3c.dom.Node.TEXT_NODE){
+        				content.append(children.item(j).getNodeValue().trim());
+        			}
+        		}
+    		}
+    		content.append("</"+e.getNodeName()+">");
+		}else {
+			content.append("/>");
+		}
+		
+		return content.toString();
+    }
+    
     protected void setUp() throws Exception {
     }
 
@@ -113,4 +203,3 @@
     }
 
 }
-

Modified: geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/HelloWorld.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/HelloWorld.java?view=diff&rev=519683&r1=519682&r2=519683
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/HelloWorld.java (original)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/HelloWorld.java Sun Mar 18 13:17:52 2007
@@ -1,29 +0,0 @@
-/*
- *  Licensed to the Apache Software Foundation (ASF) under one or more
- *  contributor license agreements.  See the NOTICE file distributed with
- *  this work for additional information regarding copyright ownership.
- *  The ASF licenses this file to You 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.geronimo.axis2.testdata;
-
-import javax.jws.WebMethod;
-import javax.jws.WebService;
-
-@WebService(name="HelloWorld", targetNamespace = "http://example.org")
-public class HelloWorld {
-
-    @WebMethod
-    public String sayHello(String me){
-        return "Hello "+me;
-    }
-}

Added: geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/doclitbare/BareDocLitService.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/doclitbare/BareDocLitService.java?view=auto&rev=519683
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/doclitbare/BareDocLitService.java (added)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/doclitbare/BareDocLitService.java Sun Mar 18 13:17:52 2007
@@ -0,0 +1,38 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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.geronimo.axis2.testdata.doclitbare;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+@WebService(name="BareDocLitService", targetNamespace = "http://example.org")
+public class BareDocLitService {
+	
+	@WebMethod
+	public void oneWayEmpty(){
+	}
+	
+	@WebMethod
+	public void oneWay(String param){
+	}
+	
+	@WebMethod
+	public String twoWaySimple(int param){
+		return String.valueOf(param);
+	}
+
+}

Added: geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/rpclit/RPCLitService.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/rpclit/RPCLitService.java?view=auto&rev=519683
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/rpclit/RPCLitService.java (added)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/rpclit/RPCLitService.java Sun Mar 18 13:17:52 2007
@@ -0,0 +1,34 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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.geronimo.axis2.testdata.rpclit;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+@WebService(name="RPCLitService", targetNamespace = "http://example.org")
+public class RPCLitService {
+	
+	@WebMethod
+	public String testSimple(String in){
+		return "Hello "+in;
+	}
+	
+	@WebMethod
+	public String testSimple2(String simple2In1, String simple2In2) {
+        return simple2In1 + simple2In2;
+    }
+}

Added: geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/simple/HelloWorld.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/simple/HelloWorld.java?view=auto&rev=519683
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/simple/HelloWorld.java (added)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/testdata/simple/HelloWorld.java Sun Mar 18 13:17:52 2007
@@ -0,0 +1,29 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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.geronimo.axis2.testdata.simple;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+@WebService(name="HelloWorld", targetNamespace = "http://example.org")
+public class HelloWorld {
+
+    @WebMethod
+    public String sayHello(String me){
+        return "Hello "+me;
+    }
+}

Modified: geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doc_lit.wsdl
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doc_lit.wsdl?view=diff&rev=519683&r1=519682&r2=519683
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doc_lit.wsdl (original)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doc_lit.wsdl Sun Mar 18 13:17:52 2007
@@ -1,82 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements. See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership. The ASF licenses this file
-  to you 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.
--->
-<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
-    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
-    xmlns:tns="http://apache.org/hello_control"
-    xmlns:x1="http://apache.org/hello_control/types"
-    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
-    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
-    targetNamespace="http://apache.org/hello_control" name="HelloWorld">
-    <wsdl:types>
-        <schema targetNamespace="http://apache.org/hello_control/types" 
-            xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
-            <element name="sayHello">
-                <complexType>
-                    <sequence>
-                        <element name="requestType" type="xsd:string"/>
-                    </sequence>
-                </complexType>
-            </element>
-            <element name="sayHelloResponse">
-                <complexType>
-                    <sequence>
-                        <element name="responseType" type="xsd:string"/>
-                    </sequence>
-                </complexType>
-            </element>            
-        </schema>
-    </wsdl:types>
-   
-    <wsdl:message name="sayHelloRequest">
-        <wsdl:part element="x1:sayHello" name="in"/>
-    </wsdl:message>
-    <wsdl:message name="sayHelloResponse">
-        <wsdl:part element="x1:sayHelloResponse" name="out"/>
-    </wsdl:message>
-        
-    <wsdl:portType name="Hello">
-        <wsdl:operation name="sayHello">
-            <wsdl:input message="tns:sayHelloRequest" name="sayHelloRequest"/>
-            <wsdl:output message="tns:sayHelloResponse" name="sayHelloResponse"/>
-        </wsdl:operation>
-    </wsdl:portType>
-
-    <wsdl:binding name="HelloSOAPBinding" type="tns:Hello">
-        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
-        <wsdl:operation name="sayHello">
-            <soap:operation soapAction="" style="document"/>
-            <wsdl:input name="sayHelloRequest">
-                <soap:body use="literal"/>
-            </wsdl:input>
-            <wsdl:output name="sayHelloResponse">
-                <soap:body use="literal"/>
-            </wsdl:output>
-        </wsdl:operation>
-    </wsdl:binding>
-  
-    <wsdl:service name="HelloService">
-        <wsdl:port binding="tns:HelloSOAPBinding" name="HelloPort">
-            <soap:address location="http://localhost:8080/SoapContext/HelloPort"/>
-            <wswa:UsingAddressing xmlns:wswa="http://www.w3.org/2005/08/addressing/wsdl"/>
-        </wsdl:port>
-    </wsdl:service>
-    
-</wsdl:definitions>
-

Modified: geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doc_lit_request.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doc_lit_request.xml?view=diff&rev=519683&r1=519682&r2=519683
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doc_lit_request.xml (original)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doc_lit_request.xml Sun Mar 18 13:17:52 2007
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you 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.
--->
-<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
-   <soap:Body>
-     <sayHello xmlns="http://apache.org/hello_control/types">
-       <requestType>World</requestType>
-     </sayHello>
-   </soap:Body>
-</soap:Envelope>

Added: geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doclitbare.wsdl
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doclitbare.wsdl?view=auto&rev=519683
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doclitbare.wsdl (added)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doclitbare.wsdl Sun Mar 18 13:17:52 2007
@@ -0,0 +1,172 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements. See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership. The ASF licenses this file
+  to you 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.
+-->
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:tns="http://doclitbare.axis2.geronimo.apache.org"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="DoclitBare"
+	targetNamespace="http://doclitbare.axis2.geronimo.apache.org">
+	
+	<wsdl:types>
+		<xsd:schema
+			targetNamespace="http://doclitbare.axis2.geronimo.apache.org"
+			xmlns:tns="http://doclitbare.axis2.geronimo.apache.org"
+			xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+		
+		<xsd:element name="String" type="xsd:string" />
+		<xsd:element name="Integer" type="xsd:int" />		
+
+		<xsd:element name="Composite">		
+			<xsd:complexType>
+				<xsd:sequence>
+					<xsd:element name="myElement" type="xsd:string" />
+				</xsd:sequence>
+			</xsd:complexType>
+		</xsd:element>
+
+		<!-- basic fault test, this should be mapped into message part
+		     of the generated faultBean
+		  -->
+		<xsd:element name="MyFault" type="xsd:string" />
+
+		<!-- wrapper exception and polymorphic fault test
+		     This bean should have an associated exception
+		  -->
+		<xsd:element name="MyBaseFaultBean" type="tns:BaseFault" />		
+
+		<xsd:complexType name="BaseFault">
+			<xsd:sequence>
+				<xsd:element name="message" type="xsd:string" />
+				<xsd:element name="error_code" type="xsd:int" />					
+			</xsd:sequence>
+		</xsd:complexType>
+
+		<xsd:complexType name="ExtendedFault">
+			<xsd:complexContent>
+			  <xsd:extension base="tns:BaseFault">
+			    <xsd:sequence>
+				<xsd:element name="another_message" type="xsd:string" />
+				<xsd:element name="another_error_code" type="xsd:int" />					
+			    </xsd:sequence>
+              </xsd:extension>
+			</xsd:complexContent>
+		</xsd:complexType>
+
+		</xsd:schema>
+	</wsdl:types>
+
+	<wsdl:message name="NoParam" />
+
+	<wsdl:message name="SingleParam">
+		<wsdl:part name="allByMyself" element="tns:String" />
+	</wsdl:message>
+
+	<wsdl:message name="SingleParamInt">
+		<wsdl:part name="allByMyself" element="tns:Integer" />
+	</wsdl:message>
+	
+	<wsdl:message name="SingleParamOther">
+		<wsdl:part name="allByMyself" element="tns:Composite" />
+	</wsdl:message>	
+
+	<wsdl:message name="SimpleFault">
+		<wsdl:part name="description" element="tns:MyFault" />	
+	</wsdl:message>	
+
+	<wsdl:message name="FaultBeanWithWrapper">
+		<wsdl:part name="description" element="tns:MyBaseFaultBean" />	
+	</wsdl:message>	
+
+	<wsdl:portType name="DocLitBarePortType">
+		
+		<wsdl:operation name="oneWayEmpty">
+			<wsdl:input message="tns:NoParam" />
+		</wsdl:operation>
+		
+		<wsdl:operation name="oneWay">
+			<wsdl:input message="tns:SingleParam" />
+		</wsdl:operation>		
+		
+		<wsdl:operation name="twoWaySimple">
+			<wsdl:input message="tns:SingleParamInt" />
+			<wsdl:output message="tns:SingleParam" />
+		</wsdl:operation>
+		
+		<wsdl:operation name="twoWayHolder">
+			<wsdl:input message="tns:SingleParamOther" />
+			<wsdl:output message="tns:SingleParamOther" />
+			<wsdl:fault message="tns:SimpleFault" name="twoWayFault"/>
+			<wsdl:fault message="tns:FaultBeanWithWrapper" name="wrapperFault"/>
+		</wsdl:operation>
+			
+	</wsdl:portType>
+	
+	<wsdl:binding name="DocLitBare" type="tns:DocLitBarePortType">
+		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+
+		<wsdl:operation name="oneWayEmpty">
+			<soap:operation soapAction="http://doclitbare.axis2.geronimo.apache.org/oneWayEmpty" />
+			<wsdl:input>
+				<soap:body use="literal"  />
+			</wsdl:input>
+		</wsdl:operation>
+		
+		<wsdl:operation name="oneWay">
+			<soap:operation soapAction="http://doclitbare.axis2.geronimo.apache.org/oneWay" />
+			<wsdl:input>
+				<soap:body use="literal"  />
+			</wsdl:input>
+		</wsdl:operation>
+		
+		<wsdl:operation name="twoWaySimple">
+			<soap:operation soapAction="twoWaySimple" />
+			<wsdl:input>
+				<soap:body use="literal"  />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal"  />
+			</wsdl:output>
+		</wsdl:operation>	
+		
+		<wsdl:operation name="twoWayHolder">
+			<soap:operation soapAction="http://doclitbare.axis2.geronimo.apache.org/twoWayReturn" />
+			<wsdl:input>
+				<soap:body use="literal"  />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal"  />
+			</wsdl:output>
+			<wsdl:fault name="twoWayFault">
+				<soap:fault use="literal" name="twoWayFault" />
+			</wsdl:fault>			
+			<wsdl:fault name="wrapperFault">
+				<soap:fault use="literal" name="wrapperFault" />
+			</wsdl:fault>				
+		</wsdl:operation>
+		
+	
+	</wsdl:binding>
+	
+	<wsdl:service name="BareDocLitService">
+		<wsdl:port binding="tns:DocLitBare" name="BareDocLitPort">
+			<soap:address location="http://localhost:8080/axis2/services/BareDocLitService" />
+		</wsdl:port>
+	</wsdl:service>
+	
+</wsdl:definitions>

Added: geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doclitbare_request.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doclitbare_request.xml?view=auto&rev=519683
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doclitbare_request.xml (added)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_doclitbare_request.xml Sun Mar 18 13:17:52 2007
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<ServiceRequest>
+	<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+	   <soap:Body>
+	     <oneWayEmpty xmlns="http://doclitbare.axis2.geronimo.apache.org">
+	       <NoParam/>
+	     </oneWayEmpty>     
+	   </soap:Body>
+	</soap:Envelope>
+	<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+	   <soap:Body>     
+	     <twoWaySimple xmlns="http://doclitbare.axis2.geronimo.apache.org">
+	       <SingleParamInt>25</SingleParamInt>
+	     </twoWaySimple>
+	   </soap:Body>
+	</soap:Envelope>
+	<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+	   <soap:Body>     
+	     <oneWay xmlns="http://doclitbare.axis2.geronimo.apache.org">
+	       <SingleParam>Hello World</SingleParam>
+	     </oneWay>
+	   </soap:Body>
+	</soap:Envelope>
+</ServiceRequest>
\ No newline at end of file

Added: geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_rpclit.wsdl
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_rpclit.wsdl?view=auto&rev=519683
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_rpclit.wsdl (added)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_rpclit.wsdl Sun Mar 18 13:17:52 2007
@@ -0,0 +1,588 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements. See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership. The ASF licenses this file
+  to you 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.
+-->
+<wsdl:definitions targetNamespace="http://org/apache/geronimo/axis2/rpclit" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://org/apache/geronimo/axis2/rpclit" xmlns:intf="http://org/apache/geronimo/axis2/rpclit" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <wsdl:types>
+  <schema targetNamespace="http://org/apache/geronimo/axis2/rpclit" xmlns="http://www.w3.org/2001/XMLSchema">
+  
+  <!-- Example of a QName list.  This should map to javax.xml.namespace.QName[] -->
+   <xsd:simpleType name="QNameList">
+      <xsd:list itemType="xsd:QName"/>
+   </xsd:simpleType>
+   <element name="QNameList" nillable="true" type="impl:QNameList"/>
+
+  <!-- Example of a Calendar list.  This should map to java.util.Calendar[] -->
+   <xsd:simpleType name="CalendarList">   
+      <xsd:list itemType="xsd:dateTime"/> 
+   </xsd:simpleType>                 
+   <element name="CalendarList" nillable="true" type="impl:CalendarList"/>
+  
+  <!-- Example of a String list.  This should map to java.lang.String[] -->
+   <xsd:simpleType name="StringList">   
+      <xsd:list itemType="xsd:string"/> 
+   </xsd:simpleType>
+   <element name="StringList" nillable="true" type="impl:StringList"/>
+  
+  <!-- Example of a xsd:negativeInteger list.  This should map to java.math.BigInteger[] -->
+   <xsd:simpleType name="BigIntegerList">
+      <xsd:restriction>     
+          <xsd:simpleType> 
+             <xsd:list itemType="xsd:negativeInteger"/>
+          </xsd:simpleType>
+      </xsd:restriction>
+   </xsd:simpleType>
+   <element name="BigIntegerList" nillable="true" type="impl:BigIntegerList"/>
+  
+  <!-- Example of a xsd:unsignedInt list.  This should map to long[] -->
+   <xsd:simpleType name="LongList">
+      <xsd:list>
+          <xsd:simpleType>
+             <xsd:restriction base="xsd:unsignedInt"/>
+          </xsd:simpleType>
+      </xsd:list>
+   </xsd:simpleType>
+   <element name="LongList" nillable="true" type="impl:LongList"/>
+   
+  <!-- Example of an Enumeration type.  This should map to Enum.java -->  
+   <xsd:simpleType name="Enum">
+      <xsd:restriction base="xsd:string">
+          <xsd:enumeration value="one"/>                      
+          <xsd:enumeration value="two"/>                    
+          <xsd:enumeration value="three"/>                    
+      </xsd:restriction>
+   </xsd:simpleType>
+   <element name="Enum" nillable="true" type="impl:Enum"/>
+ 
+  <!-- Example of a xsd:enumeration list.  This should map to Enum[] -->  
+   <xsd:simpleType name="EnumList">
+      <xsd:list itemType="impl:Enum"/> 
+   </xsd:simpleType>
+   <element name="EnumList" nillable="true" type="impl:EnumList"/>
+  
+  <!-- Example of a xsd:enumeration embedded list.  This should map to EnumList2[] --> 
+   <xsd:simpleType name="EnumList2">
+      <xsd:list>
+          <xsd:simpleType>
+            <xsd:restriction base="xsd:string">
+              <xsd:enumeration value="Apple" />
+              <xsd:enumeration value="Orange" />
+              <xsd:enumeration value="Grape" />
+            </xsd:restriction>
+          </xsd:simpleType>
+      </xsd:list>
+   </xsd:simpleType>
+   <element name="EnumList2" nillable="true" type="impl:EnumList2"/> 
+
+   <xsd:complexType name="complexAll">
+      <xsd:all>
+          <xsd:element name="myInt" type="xsd:int"/>
+          <xsd:element name="myString" type="xsd:string"/>
+          <xsd:element name="Enum" type="impl:Enum"/>
+          <xsd:element name="myQNameList" type="impl:QNameList"/>
+          <xsd:element name="myCalendarList" type="impl:CalendarList"/>
+          <xsd:element name="myStringList" type="impl:StringList"/>
+          <xsd:element name="myBigIntegerList" type="impl:BigIntegerList"/>
+          <xsd:element name="myLongList" type="impl:LongList"/>
+          <xsd:element name="myEnumList" type="impl:EnumList"/>
+          <xsd:element name="myEnumList2" type="impl:EnumList2"/>
+      </xsd:all>
+   </xsd:complexType>
+   
+   <xsd:element name="headerParam" type="xsd:string" />
+   <xsd:element name="headerReturn" type="xsd:string" />
+   
+    <xsd:element name="myFault" type="xsd:int" />
+  </schema>
+ </wsdl:types>
+
+   <wsdl:message name="testListsResponse">
+
+      <wsdl:part name="testListsReturn" type="impl:QNameList"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="testListsRequest">
+
+      <wsdl:part name="arg_0_0" type="impl:QNameList"/>
+
+      <wsdl:part name="arg_1_0" type="impl:CalendarList"/>
+
+      <wsdl:part name="arg_2_0" type="impl:StringList"/>
+      
+      <wsdl:part name="arg_3_0" type="impl:BigIntegerList"/>
+      
+      <wsdl:part name="arg_4_0" type="impl:LongList"/>
+      
+      <wsdl:part name="arg_5_0" type="impl:EnumList"/>
+      
+      <wsdl:part name="arg_7_0" type="impl:EnumList2"/>
+      
+      <wsdl:part name="arg_6_0" type="impl:complexAll"/>
+
+   </wsdl:message>
+   
+   
+   <wsdl:message name="testCalendarList1Response">
+
+      <wsdl:part name="testCalendarList1Return" type="impl:CalendarList"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="testCalendarList1Request">
+
+      <wsdl:part name="arg_1_0" type="impl:CalendarList"/>
+
+   </wsdl:message>
+   
+   <wsdl:message name="testStringList2Response">
+
+      <wsdl:part name="testStringList2Return" type="impl:StringList"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="testStringList2Request">
+
+      <wsdl:part name="arg_2_0" type="impl:StringList"/>
+
+   </wsdl:message>
+   
+   <wsdl:message name="testBigIntegerList3Response">
+
+      <wsdl:part name="testBigIntegerList3Return" type="impl:BigIntegerList"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="testBigIntegerList3Request">
+
+      <wsdl:part name="arg_3_0" type="impl:BigIntegerList"/>
+
+   </wsdl:message>
+   
+   <wsdl:message name="testLongList4Response">
+
+      <wsdl:part name="testLongList4Return" type="impl:LongList"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="testLongList4Request">
+
+      <wsdl:part name="arg_4_0" type="impl:LongList"/>
+
+   </wsdl:message>
+   
+   <wsdl:message name="testEnumList5Response">
+
+      <wsdl:part name="testEnumList5Return" type="impl:EnumList"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="testEnumList5Request">
+
+      <wsdl:part name="arg_5_0" type="impl:EnumList"/>
+
+   </wsdl:message>
+   
+   <wsdl:message name="testEnumList7Response">
+
+      <wsdl:part name="testEnumList7Return" type="impl:EnumList2"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="testEnumList7Request">
+
+      <wsdl:part name="arg_7_0" type="impl:EnumList2"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="testComplexAll6Response">
+
+      <wsdl:part name="testComplexAll6Return" type="impl:complexAll"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="testComplexAll6Request">
+
+      <wsdl:part name="arg_6_0" type="impl:complexAll"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="testSimpleRequest">
+
+      <wsdl:part name="simpleIn" type="xsd:string"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="testSimpleResponse">
+
+      <wsdl:part name="simpleOut" type="xsd:string"/>
+
+   </wsdl:message>
+   
+   <wsdl:message name="testSimple2Request">
+
+      <wsdl:part name="simple2In1" type="xsd:string"/>
+      <wsdl:part name="simple2In1" type="xsd:string"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="testSimple2Response">
+
+      <wsdl:part name="simple2Out" type="xsd:string"/>
+
+   </wsdl:message>
+   
+   <wsdl:message name="testHeaderRequest">
+
+      <wsdl:part name="bodyParam" type="xsd:string"/>
+      <wsdl:part name="headerParam" element="impl:headerParam"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="testHeaderResponse">
+
+      <wsdl:part name="headerReturn" element="impl:headerReturn"/>
+
+   </wsdl:message>
+   
+   <wsdl:message name="testFaultRequest" />
+   <wsdl:message name="testFaultResponse" />
+   
+   <wsdl:message name="rpcFault">
+     <wsdl:part name="rpcFault" element="impl:myFault" />
+   </wsdl:message>
+
+   <wsdl:portType name="RPCLit">
+     
+      <wsdl:operation name="testSimple" parameterOrder="simpleIn">
+
+         <wsdl:input message="impl:testSimpleRequest" name="testSimpleRequest"/>
+
+         <wsdl:output message="impl:testSimpleResponse" name="testSimpleResponse"/>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testSimple2" parameterOrder="simple2In1 simple2In2">
+
+         <wsdl:input message="impl:testSimple2Request" name="testSimple2Request"/>
+
+         <wsdl:output message="impl:testSimple2Response" name="testSimple2Response"/>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testHeader" parameterOrder="bodyParam headerParam">
+
+         <wsdl:input message="impl:testHeaderRequest" name="testHeaderRequest"/>
+
+         <wsdl:output message="impl:testHeaderResponse" name="testHeaderResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="testLists" parameterOrder="arg_0_0 arg_1_0 arg_2_0 arg_3_0 arg_4_0 arg_5_0 arg_7_0 arg_6_0">
+
+         <wsdl:input message="impl:testListsRequest" name="testListsRequest"/>
+
+         <wsdl:output message="impl:testListsResponse" name="testListsResponse"/>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testCalendarList1" parameterOrder="arg_1_0">
+
+         <wsdl:input message="impl:testCalendarList1Request" name="testCalendarList1Request"/>
+
+         <wsdl:output message="impl:testCalendarList1Response" name="testCalendarList1Response"/>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testStringList2" parameterOrder="arg_2_0">
+
+         <wsdl:input message="impl:testStringList2Request" name="testStringList2Request"/>
+
+         <wsdl:output message="impl:testStringList2Response" name="testStringList2Response"/>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testBigIntegerList3" parameterOrder="arg_3_0">
+
+         <wsdl:input message="impl:testBigIntegerList3Request" name="testBigIntegerList3Request"/>
+
+         <wsdl:output message="impl:testBigIntegerList3Response" name="testBigIntegerList3Response"/>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testLongList4" parameterOrder="arg_4_0">
+
+         <wsdl:input message="impl:testLongList4Request" name="testLongList4Request"/>
+
+         <wsdl:output message="impl:testLongList4Response" name="testLongList4Response"/>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testEnumList5" parameterOrder="arg_5_0">
+
+         <wsdl:input message="impl:testEnumList5Request" name="testEnumList5Request"/>
+
+         <wsdl:output message="impl:testEnumList5Response" name="testEnumList5Response"/>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testEnumList7" parameterOrder="arg_7_0">
+
+         <wsdl:input message="impl:testEnumList7Request" name="testEnumList7Request"/>
+
+         <wsdl:output message="impl:testEnumList7Response" name="testEnumList7Response"/>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testComplexAll6" parameterOrder="arg_6_0">
+
+         <wsdl:input message="impl:testComplexAll6Request" name="testComplexAll6Request"/>
+
+         <wsdl:output message="impl:testComplexAll6Response" name="testComplexAll6Response"/>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testFault">
+
+         <wsdl:input message="impl:testFaultRequest" name="testFaultRequest"/>
+
+         <wsdl:output message="impl:testFaultResponse" name="testFaultResponse"/>
+         <wsdl:fault name="rpcFault" message="impl:rpcFault" />
+      </wsdl:operation>
+      
+   </wsdl:portType>
+
+   <wsdl:binding name="RPCLitSoapBinding" type="impl:RPCLit">
+
+      <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+     <wsdl:operation name="testSimple">
+
+         <wsdl:input name="testSimpleRequest">
+               <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+         </wsdl:input>
+
+         <wsdl:output name="testSimpleResponse">
+               <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+         </wsdl:output>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testSimple2">
+
+         <wsdl:input name="testSimple2Request">
+               <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+         </wsdl:input>
+
+         <wsdl:output name="testSimple2Response">
+               <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+         </wsdl:output>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testHeader">
+			
+         <wsdl:input name="testHeaderRequest">
+               <wsdlsoap:body parts="bodyParam" use="literal"/>
+               <wsdlsoap:header message="impl:testHeaderRequest" part="headerParam" use="literal"/>
+         </wsdl:input>
+
+         <wsdl:output name="testHeaderResponse">
+               <wsdlsoap:header message="impl:testHeaderResponse" part="headerReturn" use="literal"/>
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="testLists">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="testListsRequest">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="testListsResponse">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testCalendarList1">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="testCalendarList1Request">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="testCalendarList1Response">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testStringList2">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="testStringList2Request">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="testStringList2Response">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testBigIntegerList3">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="testBigIntegerList3Request">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="testBigIntegerList3Response">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testLongList4">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="testLongList4Request">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="testLongList4Response">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testEnumList5">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="testEnumList5Request">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="testEnumList5Response">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testEnumList7">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="testEnumList7Request">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="testEnumList7Response">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+      
+      <wsdl:operation name="testComplexAll6">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="testComplexAll6Request">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="testComplexAll6Response">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation> 
+      <wsdl:operation name="testFault">
+
+         <wsdlsoap:operation soapAction="testFault"/>
+
+         <wsdl:input name="testFaultRequest">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="testFaultResponse">
+
+            <wsdlsoap:body namespace="http://org/apache/geronimo/axis2/rpclit" use="literal"/>
+
+         </wsdl:output>
+         <wsdl:fault name="rpcFault">
+            <wsdlsoap:fault name="rpcFault" use="literal" />
+         </wsdl:fault>
+
+      </wsdl:operation>      
+
+   </wsdl:binding>
+
+   <wsdl:service name="RPCLitService">
+
+      <wsdl:port binding="impl:RPCLitSoapBinding" name="RPCLit">
+
+         <wsdlsoap:address location="http://localhost:9080/axis2/services/RPCLitService"/>
+
+      </wsdl:port>
+
+   </wsdl:service>
+
+</wsdl:definitions>
+

Added: geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_rpclit_request.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_rpclit_request.xml?view=auto&rev=519683
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_rpclit_request.xml (added)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_rpclit_request.xml Sun Mar 18 13:17:52 2007
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<ServiceRequest>
+	<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+	   <soap:Body>
+	     <testSimple xmlns="http://org/apache/geronimo/axis2/rpclit">
+	       <simpleIn>A</simpleIn>
+	     </testSimple>     
+	   </soap:Body>
+	</soap:Envelope>
+	<!-- There is a problem in Axis2 when parameter order comes -->
+	<!--
+	<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+	   <soap:Body>
+	     <testSimple2 xmlns="http://org/apache/geronimo/axis2/rpclit">
+	       <simple2In1>A</simple2In1>
+	       <simple2In1>B</simple2In1>
+	     </testSimple2>     
+	   </soap:Body>
+	</soap:Envelope>
+	-->
+</ServiceRequest>
\ No newline at end of file

Added: geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_simple.wsdl
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_simple.wsdl?view=auto&rev=519683
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_simple.wsdl (added)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_simple.wsdl Sun Mar 18 13:17:52 2007
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements. See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership. The ASF licenses this file
+  to you 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.
+-->
+<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+    xmlns:tns="http://simple.axis2.geronimo.apache.org"
+    xmlns:x1="http://simple.axis2.geronimo.apache.org/types"
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    targetNamespace="http://simple.axis2.geronimo.apache.org" name="HelloWorld">
+    <wsdl:types>
+        <schema targetNamespace="http://simple.axis2.geronimo.apache.org/types" 
+            xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+            <element name="sayHello">
+                <complexType>
+                    <sequence>
+                        <element name="requestType" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="sayHelloResponse">
+                <complexType>
+                    <sequence>
+                        <element name="responseType" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>            
+        </schema>
+    </wsdl:types>
+   
+    <wsdl:message name="sayHelloRequest">
+        <wsdl:part element="x1:sayHello" name="in"/>
+    </wsdl:message>
+    <wsdl:message name="sayHelloResponse">
+        <wsdl:part element="x1:sayHelloResponse" name="out"/>
+    </wsdl:message>
+        
+    <wsdl:portType name="Hello">
+        <wsdl:operation name="sayHello">
+            <wsdl:input message="tns:sayHelloRequest" name="sayHelloRequest"/>
+            <wsdl:output message="tns:sayHelloResponse" name="sayHelloResponse"/>
+        </wsdl:operation>
+    </wsdl:portType>
+
+    <wsdl:binding name="HelloSOAPBinding" type="tns:Hello">
+        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="sayHello">
+            <soap:operation soapAction="" style="document"/>
+            <wsdl:input name="sayHelloRequest">
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output name="sayHelloResponse">
+                <soap:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+  
+    <wsdl:service name="HelloService">
+        <wsdl:port binding="tns:HelloSOAPBinding" name="HelloPort">
+            <soap:address location="http://localhost:8080/SoapContext/HelloPort"/>
+            <wswa:UsingAddressing xmlns:wswa="http://www.w3.org/2005/08/addressing/wsdl"/>
+        </wsdl:port>
+    </wsdl:service>
+    
+</wsdl:definitions>

Added: geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_simple_request.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_simple_request.xml?view=auto&rev=519683
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_simple_request.xml (added)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/test/resources/test_service_simple_request.xml Sun Mar 18 13:17:52 2007
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+   <soap:Body>
+     <sayHello xmlns="http://apache.org/hello_control/types">
+       <requestType>World</requestType>
+     </sayHello>
+   </soap:Body>
+</soap:Envelope>



Mime
View raw message