cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r502193 [1/4] - in /incubator/cxf/trunk/tools2/wsdlto: core/src/main/java/org/apache/cxf/tools/wsdlto/ databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/ frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/fro...
Date Thu, 01 Feb 2007 10:59:15 GMT
Author: ema
Date: Thu Feb  1 02:59:13 2007
New Revision: 502193

URL: http://svn.apache.org/viewvc?view=rev&rev=502193
Log:
[CXF-313]Added test cases for wsdl2java tool

Added:
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenOptionTest.java   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug161/
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug161/header2.wsdl   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug161/header2.wsdl.tmp
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305700/
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305700/addNumbers.wsdl   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world.wsdl   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world2.wsdl   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world_types2.xsd   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305729/
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305729/hello_world.wsdl   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305770/
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305770/Printer.wsdl   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305770/Printer.xsd   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305770/bf-2.xsd   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305770/r-2.xsd   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305770/rl-2.xsd   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305770/rlw-2.wsdl   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305770/rp-2.xsd   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305770/rpw-2.wsdl   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305770/rw-2.wsdl   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305772/
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305772/hello_world.wsdl   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305773/
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305773/hello_world.wsdl   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305924/
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305924/binding1.xml   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305924/binding2.xml   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305924/hello_world.wsdl   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bughanging/
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bughanging/schemas/
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bughanging/schemas/wsdl/
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bughanging/schemas/wsdl/bf-2.xsd   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bughanging/schemas/wsdl/r-2.xsd   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bughanging/schemas/wsdl/rl-2.xsd   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bughanging/schemas/wsdl/rp-2.xsd   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bughanging/schemas/wsdl/sg-2.xsd   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bughanging/wsdl/
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bughanging/wsdl/bfw-2.wsdl   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bughanging/wsdl/rlw-2.wsdl   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bughanging/wsdl/rpw-2.wsdl   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bughanging/wsdl/rw-2.wsdl   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bughanging/wsdl/sgw-2.wsdl   (with props)
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bughanging/wsdl/wsrf.wsdl   (with props)
Modified:
    incubator/cxf/trunk/tools2/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java
    incubator/cxf/trunk/tools2/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
    incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/AntGenerator.java
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/validator/ValidatorTest.java

Modified: incubator/cxf/trunk/tools2/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java?view=diff&rev=502193&r1=502192&r2=502193
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java (original)
+++ incubator/cxf/trunk/tools2/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java Thu Feb  1 02:59:13 2007
@@ -66,8 +66,7 @@
     protected static final Logger LOG = LogUtils.getL7dLogger(WSDLToJavaContainer.class);
     private static final String DEFAULT_NS2PACKAGE = "http://www.w3.org/2005/08/addressing";
     String toolName;
-    
-    
+ 
     public WSDLToJavaContainer(String name, ToolSpec toolspec) throws Exception {        
         super(name, toolspec);
         this.toolName = name;
@@ -254,7 +253,13 @@
     
     public void setPackageAndNamespaces(ToolContext env) {
         if (env.get(ToolConstants.CFG_PACKAGENAME) != null) {
-            String[] pns = (String[])env.get(ToolConstants.CFG_PACKAGENAME);
+            String[] pns = null;
+            try {
+                pns = (String[])env.get(ToolConstants.CFG_PACKAGENAME);
+            } catch (ClassCastException e) {
+                pns = new String[1];
+                pns[0] = (String)env.get(ToolConstants.CFG_PACKAGENAME);
+            }
             for (int j = 0; j < pns.length; j++) {
                 int pos = pns[j].indexOf("=");
                 String packagename = pns[j];

Modified: incubator/cxf/trunk/tools2/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java?view=diff&rev=502193&r1=502192&r2=502193
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java (original)
+++ incubator/cxf/trunk/tools2/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java Thu Feb  1 02:59:13 2007
@@ -30,8 +30,10 @@
 import javax.wsdl.Definition;
 import javax.xml.namespace.QName;
 
+import org.w3c.dom.DOMException;
 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;
 
@@ -54,9 +56,11 @@
 import org.apache.cxf.tools.common.ToolContext;
 import org.apache.cxf.tools.common.ToolException;
 import org.apache.cxf.tools.util.ClassCollector;
+import org.apache.cxf.tools.util.JAXBUtils;
 import org.apache.cxf.tools.util.URIParserUtil;
 import org.apache.cxf.tools.wsdlto.core.DataBindingProfile;
 
+
 public class JAXBDataBinding implements DataBindingProfile {
     private static final Logger LOG = LogUtils.getL7dLogger(JAXBDataBinding.class);
     private static S2JJAXBModel rawJaxbModelGenCode;
@@ -72,9 +76,8 @@
         def = (Definition)env.get(Definition.class);
 
         SchemaCompilerImpl schemaCompiler = (SchemaCompilerImpl)XJC.createSchemaCompiler();
-        if (env.getPackageName() != null) {
-            schemaCompiler.setDefaultPackageName(env.getPackageName());
-        }
+        
+              
         ClassCollector classCollector = env.get(ClassCollector.class);
         ClassNameAllocatorImpl allocator = new ClassNameAllocatorImpl(classCollector);
         allocator.setInterface(serviceInfo.getInterface(), env.mapPackageName(def.getTargetNamespace()));
@@ -98,10 +101,11 @@
                     systemId = def.getDocumentBaseURI();
                 }
                 String tns = ele.getAttribute("targetNamespace");              
+                
                 if (StringUtils.isEmpty(tns)) {
                     continue;
                 }
-                  
+                 
                 if (sysIdSchemeMap.containsKey(schema.getElement().getBaseURI())) {
                     systemId = schema.getElement().getBaseURI() + "#" + tns;
                     int index = 0;
@@ -112,6 +116,30 @@
                 }
                 
                 sysIdSchemeMap.put(systemId, ele);
+                
+                String excludePkg = null;
+                
+                if (env.hasExcludeNamespace(tns)) {
+                    excludePkg = env.getExcludePackageName(tns);
+                    if (excludePkg != null) {
+                        env.getExcludePkgList().add(excludePkg);
+                    } else {
+                        env.getExcludePkgList().add(URIParserUtil.getPackageName(tns));
+                    }
+                }
+                
+                String pkgName = null;
+                if (env.hasNamespace(tns) || env.get(ToolConstants.CFG_PACKAGENAME) != null) {
+                    pkgName = env.mapPackageName(tns);
+                }
+                
+                pkgName = pkgName != null ? pkgName : excludePkg;
+                          
+                if (pkgName != null) {
+                    Node pkgNode = JAXBUtils.innerJaxbPackageBinding(ele, pkgName);
+                    ele.appendChild(pkgNode);
+                }
+
                 schemaCompiler.parseSchema(systemId, ele);
             }
             
@@ -136,7 +164,7 @@
             if (StringUtils.isEmpty(targetNamespace)) {
                 continue;
             }
-            String packageName = URIParserUtil.parsePackageName(targetNamespace, null);
+            String packageName = env.mapPackageName(targetNamespace);
             if (!addedToClassCollector(packageName)) {
                 allocator.assignClassName(packageName, "*");
             }
@@ -233,4 +261,48 @@
       
     }
     
+    public  Node cloneNode(Document document, Node node, boolean deep) throws DOMException {
+        if (document == null || node == null) {
+            return null;
+        }
+        int type = node.getNodeType();
+        
+        if (node.getOwnerDocument() == document) {
+            return node.cloneNode(deep);
+        }
+        Node clone;
+        switch (type) {
+        case Node.CDATA_SECTION_NODE:
+            clone = document.createCDATASection(node.getNodeValue());
+            break;
+        case Node.COMMENT_NODE:
+            clone = document.createComment(node.getNodeValue());
+            break;
+        case Node.ENTITY_REFERENCE_NODE:
+            clone = document.createEntityReference(node.getNodeName());
+            break;
+        case Node.ELEMENT_NODE:
+            clone = document.createElement(node.getNodeName());
+            NamedNodeMap attributes = node.getAttributes();
+            for (int i = 0; i < attributes.getLength(); i++) {
+                ((Element)clone).setAttribute(attributes.item(i).getNodeName(), attributes.item(i)
+                    .getNodeValue());
+            }
+            break;
+       
+        case Node.TEXT_NODE:
+            clone = document.createTextNode(node.getNodeValue());
+            break;
+        default:
+            return null;
+        }
+        if (deep && type == Node.ELEMENT_NODE) {
+            Node child = node.getFirstChild();
+            while (child != null) {
+                clone.appendChild(cloneNode(document, child, true));
+                child = child.getNextSibling();
+            }
+        }
+        return clone;
+    }
 }

Modified: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/AntGenerator.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/AntGenerator.java?view=diff&rev=502193&r1=502192&r2=502193
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/AntGenerator.java (original)
+++ incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/AntGenerator.java Thu Feb  1 02:59:13 2007
@@ -41,13 +41,14 @@
         return true;
     }
 
-    public void generate(ToolContext penv) throws ToolException {
+    public void generate(ToolContext penv) throws ToolException {       
         this.env = penv;
         JavaModel javaModel = env.get(JavaModel.class);
-
+        
         if (passthrough()) {
             return;
         }
+
         clearAttributes();
         setAttributes("intfs", javaModel.getInterfaces().values());
         setAttributes("wsdlLocation", javaModel.getLocation());

Added: incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java?view=auto&rev=502193
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java (added)
+++ incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java Thu Feb  1 02:59:13 2007
@@ -0,0 +1,437 @@
+/**
+ * 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.cxf.tools.wsdlto.jaxws;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.lang.reflect.Modifier;
+
+import javax.jws.WebService;
+
+import org.apache.cxf.tools.common.ProcessorTestBase;
+import org.apache.cxf.tools.common.ToolConstants;
+import org.apache.cxf.tools.common.toolspec.ToolSpec;
+import org.apache.cxf.tools.util.AnnotationUtil;
+import org.apache.cxf.tools.wsdlto.WSDLToJava;
+import org.apache.cxf.tools.wsdlto.frontend.jaxws.JAXWSContainer;
+
+public class CodeGenBugTest extends ProcessorTestBase {
+
+    private JAXWSContainer processor;
+    private ClassLoader classLoader;
+
+    public void setUp() throws Exception {
+        super.setUp();
+        File classFile = new java.io.File(output.getCanonicalPath() + "/classes");
+        classFile.mkdir();
+        System.setProperty("java.class.path", getClassPath() + classFile.getCanonicalPath()
+                                              + File.separatorChar);
+        classLoader = AnnotationUtil.getClassLoader(Thread.currentThread().getContextClassLoader());
+        env.put(ToolConstants.CFG_COMPILE, ToolConstants.CFG_COMPILE);
+        env.put(ToolConstants.CFG_IMPL, "impl");
+        env.put(ToolConstants.CFG_OUTPUTDIR, output.getCanonicalPath());
+        env.put(ToolConstants.CFG_CLASSDIR, output.getCanonicalPath() + "/classes");
+
+        InputStream ins = JAXWSContainer.class.getResourceAsStream("jaxws-toolspec.xml");
+        ToolSpec toolspec = new ToolSpec(ins, true);
+        processor = new JAXWSContainer(toolspec); 
+
+    }
+
+    public void tearDown() {
+        super.tearDown();
+        processor = null;
+        env = null;
+    }
+
+    public void testBug305729() {
+        env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl2java_wsdl/bug305729/hello_world.wsdl"));
+        processor.setContext(env);
+        processor.execute(true);
+
+        assertNotNull("Process message with no part wsdl error", output);
+    }
+
+    
+
+    public void testBug305773() {
+        try {
+            env.put(ToolConstants.CFG_COMPILE, "compile");
+            env.put(ToolConstants.CFG_IMPL, ToolConstants.CFG_IMPL);
+            env.put(ToolConstants.CFG_OUTPUTDIR, output.getCanonicalPath());
+            env.put(ToolConstants.CFG_CLASSDIR, output.getCanonicalPath() + "/classes");
+            env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl2java_wsdl/bug305773/hello_world.wsdl"));
+            processor.setContext(env);
+            processor.execute(true);
+            Class clz = classLoader.loadClass("org.apache.hello_world_soap_http.GreeterImpl");
+
+            WebService webServiceAnn = AnnotationUtil.getPrivClassAnnotation(clz, WebService.class);
+            assertEquals("Greeter", webServiceAnn.name());
+            assertFalse("Impl class should generate portName property value in webService annotation",
+                        webServiceAnn.portName().equals(""));
+            assertFalse("Impl class should generate serviceName property value in webService annotation",
+                        webServiceAnn.serviceName().equals(""));
+
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+   
+    public void testHangingBug() throws Exception {
+        env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl2java_wsdl/bughanging/wsdl/wsrf.wsdl"));
+        processor.setContext(env);
+        processor.execute(true);
+    }
+    
+    public void testBug305700() throws Exception {
+        env.put(ToolConstants.CFG_COMPILE, "compile");
+        env.put(ToolConstants.CFG_OUTPUTDIR, output.getCanonicalPath());
+        env.put(ToolConstants.CFG_CLASSDIR, output.getCanonicalPath() + "/classes");
+        env.put(ToolConstants.CFG_CLIENT, ToolConstants.CFG_CLIENT);
+        env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl2java_wsdl/bug305700/addNumbers.wsdl"));
+        processor.setContext(env);
+        processor.execute(true);
+    }
+    
+    public void testNamespacePackageMapping1() throws Exception {
+        env.put(ToolConstants.CFG_PACKAGENAME, "org.cxf");
+        env.addNamespacePackageMap("http://apache.org/hello_world_soap_http/types", "org.apache.types");
+        env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl2java_wsdl/hello_world.wsdl"));
+        processor.setContext(env);
+        processor.execute(true);
+
+        File org = new File(output, "org");
+        assertTrue(org.exists());
+        File apache = new File(org, "apache");
+        assertTrue(apache.exists());
+        File types = new File(apache, "types");
+        assertTrue(types.exists());
+
+        File[] files = apache.listFiles();
+        assertEquals(1, files.length);
+        files = types.listFiles();
+        assertEquals(17, files.length);
+
+        Class clz = classLoader.loadClass("org.cxf.Greeter");
+        assertTrue("Generate " + clz.getName() + "error", clz.isInterface());
+        clz = classLoader.loadClass("org.apache.types.GreetMe");
+    }
+
+   
+
+    public void testNamespacePackageMapping2() throws Exception {
+        env.addNamespacePackageMap("http://apache.org/hello_world_soap_http", "org.apache");
+        env.addNamespacePackageMap("http://apache.org/hello_world_soap_http/types", "org.apache.types");
+        env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl2java_wsdl/hello_world.wsdl"));
+        processor.setContext(env);
+        processor.execute(true);
+
+        File org = new File(output, "org");
+        assertTrue("org directory is not found", org.exists());
+        File apache = new File(org, "apache");
+        assertTrue("apache directory is not found", apache.exists());
+        File types = new File(apache, "types");
+        assertTrue("types directory is not found", types.exists());
+
+        Class clz = classLoader.loadClass("org.apache.types.GreetMe");
+        assertTrue("Generate " + clz.getName() + "error", Modifier.isPublic(clz.getModifiers()));
+        clz = classLoader.loadClass("org.apache.Greeter");
+    }
+      
+    public void testNamespacePackageMapping3() throws Exception {
+        env.put(ToolConstants.CFG_PACKAGENAME, "org.cxf");
+        env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl2java_wsdl/hello_world.wsdl"));
+        processor.setContext(env);
+        processor.execute(true);
+      
+        File org = new File(output, "org");
+        assertTrue(org.exists());
+
+        File cxf = new File(org, "cxf");
+        File[] files = cxf.listFiles();
+        assertEquals(22, files.length);
+
+        Class clz = classLoader.loadClass("org.cxf.Greeter");
+        assertTrue("Generate " + clz.getName() + "error", clz.isInterface());
+    }
+    
+    public void testBug305772() throws Exception {
+        env.put(ToolConstants.CFG_COMPILE, "compile");
+        env.put(ToolConstants.CFG_ANT, ToolConstants.CFG_ANT);
+        env.put(ToolConstants.CFG_OUTPUTDIR, output.getCanonicalPath());
+        env.put(ToolConstants.CFG_CLASSDIR, output.getCanonicalPath() + "/classes");
+        // env.put(ToolConstants.CFG_CLIENT, ToolConstants.CFG_CLIENT);
+        env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl2java_wsdl/bug305772/hello_world.wsdl"));
+        processor.setContext(env);
+        processor.execute(true);
+        File file = new File(output.getCanonicalPath(), "build.xml");
+        FileInputStream fileinput = new FileInputStream(file);
+        java.io.BufferedInputStream filebuffer = new java.io.BufferedInputStream(fileinput);
+        byte[] buffer = new byte[(int)file.length()];
+        filebuffer.read(buffer);
+        String content = new String(buffer);
+        assertTrue("wsdl location should be url style in build.xml", content.indexOf("param1=\"file:") > -1);
+
+    }
+
+    
+    public void testBug305728HelloWorld() {
+        try {
+            String[] args = new String[] {"-compile", "-classdir", 
+                                          output.getCanonicalPath() + "/classes",
+                                          "-d", output.getCanonicalPath(),
+                                          "-nexclude",
+                                          "http://www.w3.org/2005/08/addressing"
+                                              + "=org.apache.cxf.ws.addressing",
+                                          getLocation("/wsdl2java_wsdl/bug305728/hello_world.wsdl")};
+            WSDLToJava.main(args);
+        } catch (Exception e) {
+            e.printStackTrace(System.err);
+        }
+
+        try {
+            File file = new File(output.getCanonicalPath(),
+                                 "org/apache/cxf/ws/addressing/EndpointReferenceType.java");
+
+            assertFalse("Exclude java file should not be generated : " + file.getCanonicalPath(), file
+                .exists());
+
+            file = new File(output.getCanonicalPath() + File.separator + "classes",
+                            "org/apache/cxf/ws/addressing/EndpointReferenceType.class");
+            assertFalse("Exclude class should not be generated : " + file.getCanonicalPath(), file.exists());
+
+            file = new File(output.getCanonicalPath(),
+                            "org/w3/_2005/_08/addressing/EndpointReferenceType.java");
+            assertFalse("Exclude file should not be generated : " + file.getCanonicalPath(), file.exists());
+
+            file = new File(output.getCanonicalPath() + File.separator + "classes",
+                            "org/w3/_2005/_08/addressing/EndpointReferenceType.class");
+            assertFalse("Exclude class should not be generated : " + file.getCanonicalPath(), file.exists());
+
+        } catch (IOException e) {
+            e.printStackTrace();
+        }
+    }
+    
+    
+    public void testBug305728HelloWorld2() {
+        try {
+            String[] args = new String[] {"-compile", "-classdir", output.getCanonicalPath() + "/classes",
+                                          "-d", output.getCanonicalPath(), "-nexclude",
+                                          "http://apache.org/hello_world/types",
+                                          getLocation("/wsdl2java_wsdl/bug305728/hello_world2.wsdl")};
+            WSDLToJava.main(args);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+
+        try {
+            File file = new File(output.getCanonicalPath(), "org/apache/hello_world/types");
+            assertFalse("Exclude file should not be generated : " + file.getCanonicalPath(), file.exists());
+
+            file = new File(output.getCanonicalPath() + File.separator + "classes",
+                            "org/apache/hello_world/types");
+
+            assertFalse("Exclude file should not be generated : " + file.getCanonicalPath(), file.exists());
+
+        } catch (IOException e) {
+            e.printStackTrace();
+        }
+
+    }
+
+    public void testExcludeNSWithPackageName() throws Exception {
+
+        String[] args = new String[] {"-d", output.getCanonicalPath(), "-nexclude",
+                                      "http://apache.org/test/types=com.iona", 
+                                      "-nexclude", "http://apache.org/Invoice",
+                                      getLocation("/wsdl2java_wsdl/hello_world_exclude.wsdl")};
+        WSDLToJava.main(args);
+
+        assertNotNull(output);
+        File com = new File(output, "com");
+        assertFalse("Generated file has been excluded", com.exists());
+        File iona = new File(com, "iona");
+        assertFalse("Generated file has been excluded", iona.exists());
+
+        File org = new File(output, "org");
+        File apache = new File(org, "apache");
+        File invoice = new File(apache, "Invoice");
+        assertFalse("Generated file has been excluded", invoice.exists());
+
+    }
+   
+    
+    public void testExcludeNSWithoutPackageName() throws Exception {
+
+        String[] args = new String[] {"-d", output.getCanonicalPath(), "-nexclude",
+                                      "http://apache.org/test/types",
+                                      getLocation("/wsdl2java_wsdl/hello_world_exclude.wsdl")};
+        WSDLToJava.main(args);
+
+        assertNotNull(output);
+        File com = new File(output, "test");
+        assertFalse("Generated file has been excluded", com.exists());
+
+    }
+   
+   
+    public void testCommandLine() throws Exception {
+        String[] args = new String[] {"-compile", "-d", output.getCanonicalPath(), "-classdir",
+                                      output.getCanonicalPath() + "/classes", "-p", "org.cxf", "-p",
+                                      "http://apache.org/hello_world_soap_http/types=org.apache.types",
+                                      "-server", "-impl",
+                                      getLocation("/wsdl2java_wsdl/hello_world.wsdl")};
+        WSDLToJava.main(args);
+
+        Class clz = classLoader.loadClass("org.cxf.Greeter");
+        assertTrue("Generate " + clz.getName() + "error", clz.isInterface());
+        clz = classLoader.loadClass("org.apache.types.GreetMe");
+    }
+
+  
+    public void testDefaultLoadNSMappingOFF() throws Exception {
+        String[] args = new String[] {"-dns", "false", "-d", output.getCanonicalPath(),
+                                      getLocation("/wsdl2java_wsdl/basic_callback.wsdl")};
+
+        WSDLToJava.main(args);
+
+        assertNotNull(output);
+        File org = new File(output, "org");
+        assertTrue(org.exists());
+        File w3 = new File(org, "w3");
+        assertTrue(w3.exists());
+        File p2005 = new File(w3, "_2005");
+        assertTrue(p2005.exists());
+        File p08 = new File(p2005, "_08");
+        assertTrue(p08.exists());
+        File address = new File(p08, "addressing");
+        assertTrue(address.exists());
+
+        File[] files = address.listFiles();
+        assertEquals(11, files.length);
+    }
+
+    public void testDefaultLoadNSMappingON() throws Exception {
+        String[] args = new String[] {"-d", output.getCanonicalPath(),
+                                      getLocation("/wsdl2java_wsdl/basic_callback.wsdl")};
+
+        WSDLToJava.main(args);
+
+        assertNotNull(output);
+        File org = new File(output, "org");
+        assertTrue(org.exists());
+        File apache = new File(org, "apache");
+        assertTrue(apache.exists());
+        File cxf = new File(apache, "cxf");
+        assertTrue(cxf.exists());
+        File ws = new File(cxf, "ws");
+        assertTrue(ws.exists());
+        File address = new File(ws, "addressing");
+        assertTrue(address.exists());
+
+        File[] files = address.listFiles();
+        assertEquals(11, files.length);
+    }   
+     
+    /*
+    //TODO: Need to be fixed 
+    public void testWithNoService() throws Exception {
+        env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl2java_wsdl/helloworld-noservice.wsdl"));
+        processor.setContext(env);
+        processor.execute(true);
+        Class clz = classLoader.loadClass("org.apache.tuscany.samples.helloworldaxis.HelloWorldServiceImpl");
+        Method method = clz.getMethod("getGreetings", new Class[] {java.lang.String.class});
+        WebResult webResultAnno = AnnotationUtil.getPrivMethodAnnotation(method, WebResult.class);
+        assertEquals("http://helloworldaxis.samples.tuscany.apache.org", webResultAnno.targetNamespace());
+        assertEquals("response", webResultAnno.partName());
+        assertEquals("getGreetingsResponse", webResultAnno.name());
+
+        WebParam webParamAnno = AnnotationUtil.getWebParam(method, "getGreetings");
+        assertEquals("http://helloworldaxis.samples.tuscany.apache.org", webParamAnno.targetNamespace());
+        assertEquals("request", webParamAnno.partName());
+        assertEquals("getGreetings", webParamAnno.name());
+
+    }
+    
+    public void testBug305924ForNestedBinding() {
+        try {
+            String[] args = new String[] {"-all", "-compile", "-classdir",
+                                          output.getCanonicalPath() + "/classes", "-d",
+                                          output.getCanonicalPath(), "-b",
+                                          getLocation("/wsdl2java_wsdl/bug305924/binding2.xml"),
+                                          getLocation("/wsdl2java_wsdl/bug305924/hello_world.wsdl")};
+            WSDLToJava.main(args);
+        } catch (Exception e) {
+            e.printStackTrace(System.err);
+        }
+        try {
+            Class clz = classLoader
+                .loadClass("org.apache.hello_world_soap_http.types.CreateProcess$MyProcess");
+            assertNotNull("Customization binding code should be generated", clz);
+        } catch (ClassNotFoundException e) {
+            e.printStackTrace();
+        }
+    }
+    
+
+     public void testBug305770() {
+        try {
+            env.put(ToolConstants.CFG_COMPILE, "compile");
+            env.put(ToolConstants.CFG_OUTPUTDIR, output.getCanonicalPath());
+            env.put(ToolConstants.CFG_CLASSDIR, output.getCanonicalPath() + "/classes");
+            env.put(ToolConstants.CFG_ALL, ToolConstants.CFG_ALL);
+            env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl2java_wsdl/bug305770/Printer.wsdl"));
+            processor.setContext(env);
+            processor.execute(true);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+        
+    public void testBug305924ForExternalBinding() {
+        try {
+            String[] args = new String[] {"-all", "-compile", "-classdir",
+                                          output.getCanonicalPath() + "/classes", "-d",
+                                          output.getCanonicalPath(), "-b",
+                                          getLocation("/wsdl2java_wsdl/bug305924/binding1.xml"),
+                                          getLocation("/wsdl2java_wsdl/bug305924/hello_world.wsdl")};
+            WSDLToJava.main(args);
+        } catch (Exception e) {
+            e.printStackTrace(System.err);
+        }
+        try {
+            Class clz = classLoader
+                .loadClass("org.apache.hello_world_soap_http.types.CreateProcess$MyProcess");
+            assertNotNull("Customization binding code should be generated", clz);
+        } catch (ClassNotFoundException e) {
+            e.printStackTrace();
+        }
+    }
+    
+    */
+    
+    
+
+    private String getLocation(String wsdlFile) {
+        return this.getClass().getResource(wsdlFile).getFile();
+    }
+}

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenOptionTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenOptionTest.java?view=auto&rev=502193
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenOptionTest.java (added)
+++ incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenOptionTest.java Thu Feb  1 02:59:13 2007
@@ -0,0 +1,112 @@
+/**
+ * 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.cxf.tools.wsdlto.jaxws;
+
+import java.io.File;
+import java.io.InputStream;
+
+import org.apache.cxf.tools.common.ProcessorTestBase;
+import org.apache.cxf.tools.common.ToolConstants;
+import org.apache.cxf.tools.common.toolspec.ToolSpec;
+import org.apache.cxf.tools.util.AnnotationUtil;
+import org.apache.cxf.tools.wsdlto.frontend.jaxws.JAXWSContainer;
+
+public class CodeGenOptionTest extends ProcessorTestBase {
+    private JAXWSContainer processor;
+    private ClassLoader classLoader;
+
+    public void setUp() throws Exception {
+        super.setUp();
+        File classFile = new java.io.File(output.getCanonicalPath() + "/classes");
+        classFile.mkdir();
+        System.setProperty("java.class.path", getClassPath() + classFile.getCanonicalPath()
+                                              + File.separatorChar);
+        classLoader = AnnotationUtil.getClassLoader(Thread.currentThread().getContextClassLoader());
+        env.put(ToolConstants.CFG_COMPILE, ToolConstants.CFG_COMPILE);
+        env.put(ToolConstants.CFG_IMPL, "impl");
+        env.put(ToolConstants.CFG_OUTPUTDIR, output.getCanonicalPath());
+        env.put(ToolConstants.CFG_CLASSDIR, output.getCanonicalPath() + "/classes");
+
+        InputStream ins = JAXWSContainer.class.getResourceAsStream("jaxws-toolspec.xml");
+        ToolSpec toolspec = new ToolSpec(ins, true);
+        processor = new JAXWSContainer(toolspec); 
+
+    }
+
+    public void tearDown() {
+        super.tearDown();
+        processor = null;
+        env = null;
+    }
+    
+    
+    public void testFlagForGenStandAlone() throws Exception {
+        env.put(ToolConstants.CFG_GEN_TYPES, ToolConstants.CFG_GEN_TYPES);
+        env.put(ToolConstants.CFG_GEN_SEI, ToolConstants.CFG_GEN_SEI);
+        env.put(ToolConstants.CFG_GEN_IMPL, ToolConstants.CFG_GEN_IMPL);
+        env.put(ToolConstants.CFG_GEN_SERVICE, ToolConstants.CFG_GEN_SERVICE);
+        env.put(ToolConstants.CFG_GEN_SERVER, ToolConstants.CFG_GEN_SERVER);
+        env.put(ToolConstants.CFG_GEN_ANT, ToolConstants.CFG_GEN_ANT);
+        
+        env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl2java_wsdl/hello_world.wsdl"));      
+        processor.setContext(env);
+        processor.execute(true);
+        
+        Class greeterServer = classLoader.loadClass("org.apache.hello_world_soap_http.GreeterServer");
+        assertNotNull("Server should be generated", greeterServer);
+      
+    }
+    
+    public void testFlagForGenAdditional() throws Exception {
+        env.put(ToolConstants.CFG_IMPL, ToolConstants.CFG_IMPL);
+        env.put(ToolConstants.CFG_SERVER, ToolConstants.CFG_SERVER);
+               
+        env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl2java_wsdl/hello_world.wsdl"));      
+        processor.setContext(env);
+        processor.execute(true);
+            
+        Class greeterServer = classLoader.loadClass("org.apache.hello_world_soap_http.GreeterServer");
+        assertNotNull("Server should be generated", greeterServer);
+    }
+     
+    
+    public void testHelloWorldExternalBindingFile() throws Exception {
+        env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl2java_wsdl/hello_world_jaxws_base.wsdl"));
+        env.put(ToolConstants.CFG_BINDING, getLocation("/wsdl2java_wsdl/hello_world_jaxws_binding.wsdl"));
+        processor.setContext(env);
+        processor.execute(true);
+
+        assertNotNull(output);
+
+        File org = new File(output, "org");
+        assertTrue(org.exists());
+        File apache = new File(org, "apache");
+        assertTrue(apache.exists());
+
+        Class clz = classLoader.loadClass("org.apache.hello_world_async_soap_http.GreeterAsync");
+        assertEquals(3, clz.getMethods().length);
+
+    }
+    
+    private String getLocation(String wsdlFile) {
+        return this.getClass().getResource(wsdlFile).getFile();
+    }
+    
+    
+}

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenOptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenOptionTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java?view=diff&rev=502193&r1=502192&r2=502193
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java (original)
+++ incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java Thu Feb  1 02:59:13 2007
@@ -19,6 +19,7 @@
 package org.apache.cxf.tools.wsdlto.jaxws;
 
 import java.io.File;
+import java.io.InputStream;
 import java.lang.reflect.Method;
 import java.lang.reflect.Modifier;
 
@@ -36,11 +37,12 @@
 
 import org.apache.cxf.tools.common.ProcessorTestBase;
 import org.apache.cxf.tools.common.ToolConstants;
+import org.apache.cxf.tools.common.toolspec.ToolSpec;
 import org.apache.cxf.tools.util.AnnotationUtil;
-import org.apache.cxf.tools.wsdlto.WSDLToJavaContainer;
+import org.apache.cxf.tools.wsdlto.frontend.jaxws.JAXWSContainer;
 
 public class CodeGenTest extends ProcessorTestBase {
-    private WSDLToJavaContainer processor;
+    private JAXWSContainer processor;
     private ClassLoader classLoader;
 
     public void setUp() throws Exception {
@@ -54,8 +56,10 @@
         env.put(ToolConstants.CFG_IMPL, "impl");
         env.put(ToolConstants.CFG_OUTPUTDIR, output.getCanonicalPath());
         env.put(ToolConstants.CFG_CLASSDIR, output.getCanonicalPath() + "/classes");
-
-        processor = new WSDLToJavaContainer("jaxws", null);
+        InputStream ins = JAXWSContainer.class.getResourceAsStream("jaxws-toolspec.xml");
+        ToolSpec toolspec = new ToolSpec(ins, true);
+        processor = new JAXWSContainer(toolspec); 
+        //processor = new WSDLToJavaContainer("jaxws", null);
 
     }
 
@@ -372,7 +376,7 @@
 
     public void testAllNameCollision() throws Exception {
         env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl2java_wsdl/hello_world_collision.wsdl"));
-        env.setPackageName("org.apache");
+        env.put(ToolConstants.CFG_PACKAGENAME, "org.apache");
         processor.setContext(env);
         processor.execute();
 
@@ -428,7 +432,7 @@
 
     public void testSoapHeader() throws Exception {
         env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl2java_wsdl/soap_header.wsdl"));
-        env.setPackageName("org.apache");
+        env.put(ToolConstants.CFG_PACKAGENAME, "org.apache");
         processor.setContext(env);
         processor.execute();
 
@@ -690,7 +694,6 @@
             assertTrue("Invalid wsdl should be diagnosed", e.getMessage()
                 .indexOf("Invalid WSDL,wsdl:operation") > -1);
         }
-
     }
 
     public void testWSDLWithEnumType() throws Exception {

Modified: incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/validator/ValidatorTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/validator/ValidatorTest.java?view=diff&rev=502193&r1=502192&r2=502193
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/validator/ValidatorTest.java (original)
+++ incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/validator/ValidatorTest.java Thu Feb  1 02:59:13 2007
@@ -18,8 +18,11 @@
  */
 package org.apache.cxf.tools.wsdlto.validator;
 
+import java.io.InputStream;
+
 import org.apache.cxf.tools.common.ProcessorTestBase;
 import org.apache.cxf.tools.common.ToolConstants;
+import org.apache.cxf.tools.common.toolspec.ToolSpec;
 import org.apache.cxf.tools.wsdlto.WSDLToJavaContainer;
 import org.apache.cxf.tools.wsdlto.frontend.jaxws.JAXWSContainer;
     
@@ -34,7 +37,9 @@
     }
     
     public void testXMLFormat() throws Exception {
-        processor = new JAXWSContainer(null);
+        InputStream ins = JAXWSContainer.class.getResourceAsStream("jaxws-toolspec.xml");
+        ToolSpec toolspec = new ToolSpec(ins, true);
+        processor = new JAXWSContainer(toolspec);
         env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl2java_wsdl/xml_format_root.wsdl"));
         processor.setContext(env);
 

Added: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug161/header2.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug161/header2.wsdl?view=auto&rev=502193
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug161/header2.wsdl (added)
+++ incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug161/header2.wsdl Thu Feb  1 02:59:13 2007
@@ -0,0 +1,95 @@
+<?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.
+-->
+
+<definitions name="header2" targetNamespace="http://apache.org/header2" 
+    xmlns="http://schemas.xmlsoap.org/wsdl/" 
+    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" 
+    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
+    xmlns:tns="http://apache.org/header2" 
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+    <types>
+        <schema targetNamespace="http://apache.org/header2" 
+            xmlns="http://www.w3.org/2001/XMLSchema" 
+            xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+
+            <complexType name="HeaderData">
+                <sequence>
+                    <element maxOccurs="1" minOccurs="1" name="count" type="int"/>
+                </sequence>
+            </complexType>
+            <element name="HeaderInfo" type="tns:HeaderData"/>
+
+            <element name="Header">
+               <complexType>
+                    <sequence>
+                        <element name="requestType" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="HeaderResponse">
+               <complexType>
+                    <sequence>
+                        <element name="responseType" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>
+        </schema>
+    </types>
+
+    <message name="headerRequest">
+        <part element="tns:HeaderInfo" name="header_info"/>
+        <part element="tns:Header" name="the_request"/>
+    </message>
+    <message name="headerResponse">
+        <part element="tns:HeaderInfo" name="header_info"/>
+        <part element="tns:HeaderResponse" name="the_response"/>
+    </message>
+
+    <portType name="header2Test">
+        <operation name="headerMethod">
+            <input message="tns:headerRequest" name="headerRequest"/>
+            <output message="tns:headerResponse" name="headerResponse"/>
+        </operation>
+    </portType>
+
+    <binding name="header2Binding" type="tns:header2Test">
+        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <operation name="headerMethod">
+            <soap:operation soapAction="" style="document"/>
+            <input name="headerRequest">
+                <soap:header message="tns:headerRequest" part="header_info" 
+                    use="literal"/>
+                <soap:body parts="the_request" use="literal"/>
+            </input>
+            <output name="headerResponse">
+                <soap:header message="tns:headerResponse" part="header_info" 
+                    use="literal"/>
+                <soap:body parts="the_response" use="literal"/>
+            </output>
+        </operation>
+    </binding>
+
+    <service name="Header2Service">
+        <port binding="tns:header2Binding" name="SoapPort">
+            <soap:address location="http://localhost:9000/header2"/>
+        </port>
+    </service>
+</definitions>

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug161/header2.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug161/header2.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug161/header2.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug161/header2.wsdl.tmp
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug161/header2.wsdl.tmp?view=auto&rev=502193
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug161/header2.wsdl.tmp (added)
+++ incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug161/header2.wsdl.tmp Thu Feb  1 02:59:13 2007
@@ -0,0 +1,94 @@
+<?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.
+-->
+
+<definitions name="header2" targetNamespace="http://apache.org/header2" 
+    xmlns="http://schemas.xmlsoap.org/wsdl/" 
+    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" 
+    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
+    xmlns:tns="http://apache.org/header2" 
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+    <types>
+        <schema targetNamespace="http://apache.org/header2" 
+            xmlns="http://www.w3.org/2001/XMLSchema" 
+            xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+
+            <complexType name="HeaderData">
+                <sequence>
+                    <element maxOccurs="1" minOccurs="1" name="count" type="int"/>
+                </sequence>
+            </complexType>
+            <element name="HeaderInfo" type="tns:HeaderData"/>
+
+            <element name="Header">
+               <complexType>
+                    <sequence>
+                        <element name="requestType" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="HeaderResponse">
+               <complexType>
+                    <sequence>
+                        <element name="responseType" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>
+        </schema>
+    </types>
+
+    <message name="headerRequest">
+        <part element="tns:HeaderInfo" name="header_info"/>
+        <part element="tns:Header" name="the_request"/>
+    </message>
+    <message name="headerResponse">
+        <part element="tns:HeaderResponse" name="the_response"/>
+    </message>
+
+    <portType name="header2Test">
+        <operation name="headerMethod">
+            <input message="tns:headerRequest" name="headerRequest"/>
+            <output message="tns:headerResponse" name="headerResponse"/>
+        </operation>
+    </portType>
+
+    <binding name="header2Binding" type="tns:header2Test">
+        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <operation name="headerMethod">
+            <soap:operation soapAction="" style="document"/>
+            <input name="headerRequest">
+                <soap:header message="tns:headerRequest" part="header_info" 
+                    use="literal"/>
+                <soap:body parts="the_request" use="literal"/>
+            </input>
+            <output name="headerResponse">
+                <soap:header message="tns:headerResponse" part="header_info" 
+                    use="literal"/>
+                <soap:body parts="the_response" use="literal"/>
+            </output>
+        </operation>
+    </binding>
+
+    <service name="Header2Service">
+        <port binding="tns:header2Binding" name="SoapPort">
+            <soap:address location="http://localhost:9000/header2"/>
+        </port>
+    </service>
+</definitions>

Added: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305700/addNumbers.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305700/addNumbers.wsdl?view=auto&rev=502193
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305700/addNumbers.wsdl (added)
+++ incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305700/addNumbers.wsdl Thu Feb  1 02:59:13 2007
@@ -0,0 +1,88 @@
+<?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.
+-->
+
+<definitions name="AddNumbers"  targetNamespace="http://duke.org" xmlns:tns="http://duke.org"
+    xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+	<types>
+            <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://duke.org">
+
+                <complexType name="addNumbersResponse">
+                    <sequence>
+                        <element name="return" type="xsd:int" />
+                    </sequence>
+                </complexType>
+                <element name="addNumbersResponse" type="tns:addNumbersResponse" />
+
+                <complexType name="addNumbers">
+                    <sequence>
+                        <element name="arg0" type="xsd:int" />
+                        <element name="arg1" type="xsd:int" />
+                    </sequence>
+                </complexType>
+                <element name="addNumbers" type="tns:addNumbers" />
+
+                <element name="AddNumbersFault" type="tns:AddNumbersFault" />
+                <complexType name="AddNumbersFault">
+                    <sequence>
+                        <element name="faultInfo" type="xsd:string" />
+                        <element name="message" type="xsd:string" />
+                    </sequence>
+                </complexType>
+
+            </xsd:schema>
+	</types>
+	<message name="addNumbers">
+            <part name="parameters" element="tns:addNumbers" />
+	</message>
+	<message name="addNumbersResponse">
+            <part name="result" element="tns:addNumbersResponse" />
+	</message>
+	<message name="addNumbersFault">
+            <part name="AddNumbersFault" element="tns:AddNumbersFault" />
+	</message>
+	<portType name="AddNumbersPortType">
+            <operation name="addNumbers">
+                <input message="tns:addNumbers" name="add"/>
+                <output message="tns:addNumbersResponse" name="addResponse"/>
+                <fault name="addNumbersFault" message="tns:addNumbersFault"/>
+            </operation>
+	</portType>
+	<binding name="AddNumbersBinding" type="tns:AddNumbersPortType">
+            <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+            <operation name="addNumbers">
+                <soap:operation soapAction="" />
+                <input>
+                    <soap:body use="literal" />
+                </input>
+                <output>
+                    <soap:body use="literal" />
+                </output>
+                <fault name="addNumbersFault">
+                    <soap:fault name="addNumbersFault" use="literal" />
+                </fault>
+            </operation>
+	</binding>
+	<service name="AddNumbersService">
+            <port name="AddNumbersPort" binding="tns:AddNumbersBinding">
+                <soap:address location="http://localhost:9000/SoapContext/SoapPort"/>
+            </port>
+	</service>
+</definitions>

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305700/addNumbers.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305700/addNumbers.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305700/addNumbers.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world.wsdl?view=auto&rev=502193
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world.wsdl (added)
+++ incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world.wsdl Thu Feb  1 02:59:13 2007
@@ -0,0 +1,63 @@
+<?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 name="HelloWorld"
+    targetNamespace="http://apache.org/hello_world" 
+    xmlns="http://schemas.xmlsoap.org/wsdl/" 
+    xmlns:tns="http://apache.org/hello_world"
+    xmlns:x1="http://apache.org/hello_world/types"
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+    <wsdl:types>
+        <schema
+            targetNamespace="http://apache.org/hello_world/types" 
+            xmlns="http://www.w3.org/2001/XMLSchema"
+            xmlns:wsa="http://www.w3.org/2005/08/addressing"
+            elementFormDefault="qualified">
+
+            <import namespace="http://www.w3.org/2005/08/addressing" 
+                    schemaLocation="/schemas/wsdl/ws-addr.xsd"/>
+
+            <element name="sayHi" type="wsa:EndpointReferenceType"/>
+            <element name="sayHiResponse">
+                <complexType>
+                    <sequence>
+                        <element name="responseType" type="string"/>
+                    </sequence>
+                </complexType>
+            </element>
+        </schema>
+    </wsdl:types>
+
+    <wsdl:message name="sayHiRequest">
+        <wsdl:part element="x1:sayHi" name="in"/>
+    </wsdl:message>
+    <wsdl:message name="sayHiResponse">
+        <wsdl:part element="x1:sayHiResponse" name="out"/>
+    </wsdl:message>
+    
+    <wsdl:portType name="Greeter">
+        <wsdl:operation name="sayHi">
+            <wsdl:input message="tns:sayHiRequest" name="sayHiRequest"/>
+            <wsdl:output message="tns:sayHiResponse" name="sayHiResponse"/>
+        </wsdl:operation>
+    </wsdl:portType>
+</wsdl:definitions>
+

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world2.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world2.wsdl?view=auto&rev=502193
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world2.wsdl (added)
+++ incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world2.wsdl Thu Feb  1 02:59:13 2007
@@ -0,0 +1,53 @@
+<?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 name="HelloWorld"
+    targetNamespace="http://apache.org/hello_world" 
+    xmlns="http://schemas.xmlsoap.org/wsdl/" 
+    xmlns:tns="http://apache.org/hello_world"
+    xmlns:x1="http://apache.org/hello_world/types"
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+    <wsdl:types>
+        <schema
+            targetNamespace="http://apache.org/hello_world/types" 
+            xmlns="http://www.w3.org/2001/XMLSchema"
+            elementFormDefault="qualified">
+
+            <import namespace="http://apache.org/hello_world/types" 
+                    schemaLocation="hello_world_types2.xsd"/>
+        </schema>
+    </wsdl:types>
+
+    <wsdl:message name="sayHiRequest">
+        <wsdl:part element="x1:sayHi" name="in"/>
+    </wsdl:message>
+    <wsdl:message name="sayHiResponse">
+        <wsdl:part element="x1:sayHiResponse" name="out"/>
+    </wsdl:message>
+    
+    <wsdl:portType name="Greeter">
+        <wsdl:operation name="sayHi">
+            <wsdl:input message="tns:sayHiRequest" name="sayHiRequest"/>
+            <wsdl:output message="tns:sayHiResponse" name="sayHiResponse"/>
+        </wsdl:operation>
+    </wsdl:portType>
+</wsdl:definitions>
+

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world2.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world2.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world2.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world_types2.xsd
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world_types2.xsd?view=auto&rev=502193
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world_types2.xsd (added)
+++ incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world_types2.xsd Thu Feb  1 02:59:13 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.
+-->
+<xsd:schema
+    xmlns="http://www.w3.org/2001/XMLSchema"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
+    targetNamespace="http://apache.org/hello_world/types" 
+    elementFormDefault="qualified">
+
+    <element name="sayHi">
+        <complexType>
+            <attribute name="lang" type="string"/>
+        </complexType>
+    </element>
+    <element name="sayHiResponse">
+        <complexType>
+            <sequence>
+                <element name="responseType" type="string"/>
+            </sequence>
+            <attribute name="lang" type="string"/>
+        </complexType>
+    </element>
+</xsd:schema>

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world_types2.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world_types2.xsd
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305728/hello_world_types2.xsd
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305729/hello_world.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305729/hello_world.wsdl?view=auto&rev=502193
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305729/hello_world.wsdl (added)
+++ incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305729/hello_world.wsdl Thu Feb  1 02:59:13 2007
@@ -0,0 +1,269 @@
+<?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_world_soap_http"
+    xmlns:x1="http://apache.org/hello_world_soap_http/types"
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    targetNamespace="http://apache.org/hello_world_soap_http" name="HelloWorld">
+    <wsdl:types>
+        <schema targetNamespace="http://apache.org/hello_world_soap_http/types" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:x1="http://apache.org/hello_world_soap_http/types" elementFormDefault="qualified">
+            <element name="sayHi">
+                <complexType/>
+            </element>
+            <element name="sayHiResponse">
+                <complexType>
+                    <sequence>
+                        <element name="responseType" type="string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="greetMe">
+                <complexType>
+                    <sequence>
+                        <element name="requestType" type="string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="greetMeResponse">
+                <complexType>
+                    <sequence>
+                        <element name="responseType" type="string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="greetMeSometime">
+                <complexType>
+                    <sequence>
+                        <element name="requestType" type="string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="greetMeSometimeResponse">
+                <complexType>
+                    <sequence>
+                        <element name="responseType" type="string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="greetMeOneWay">
+                <complexType>
+                    <sequence>
+                        <element name="requestType" type="string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="testDocLitFault">
+                <complexType>
+                    <sequence>
+                        <element name="faultType" type="string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="testDocLitFaultResponse">
+                <complexType>
+                    <sequence/>
+                </complexType>
+            </element>
+            <complexType name="ErrorCode">
+                <sequence>
+                    <element name="minor" type="short"/>
+                    <element name="major" type="short"/>
+                </sequence>
+            </complexType>
+            <element name="NoSuchCodeLit">
+                <complexType>
+                    <sequence>
+                        <element name="code" type="x1:ErrorCode"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="BadRecordLit" type="string"/>
+            <complexType name="BadRecord">
+                <sequence>
+                    <element name="reason" type="string"/>
+                    <element name="code" type="short"/>
+                </sequence>
+            </complexType>
+            <complexType name="addNumbers">
+                <sequence>
+                    <element name="arg0" type="int"/>
+                    <element name="arg1" type="int"/>
+                </sequence>
+            </complexType>
+            <element name="addNumbers" type="x1:addNumbers"/>
+            <complexType name="addNumbersResponse">
+                <sequence>
+                    <element name="return" type="int"/>
+                </sequence>
+            </complexType>
+            <element name="addNumbersResponse" type="x1:addNumbersResponse"/>
+            <element name="BareDocument" type="string"/>
+            <element name="BareDocumentResponse">
+                <complexType>
+                    <sequence>
+                        <element name="company" type="string"/>
+                    </sequence>
+                    <attribute name="id" type="int"/>
+                </complexType>
+            </element>      
+        </schema>
+    </wsdl:types>
+    <wsdl:message name="sayHiRequest">
+    </wsdl:message>
+    <wsdl:message name="sayHiResponse">
+       
+    </wsdl:message>
+    <wsdl:message name="greetMeRequest">
+        <wsdl:part name="in" element="x1:greetMe"/>
+    </wsdl:message>
+    <wsdl:message name="greetMeResponse">
+        <wsdl:part name="out" element="x1:greetMeResponse"/>
+    </wsdl:message>
+    <wsdl:message name="greetMeSometimeRequest">
+        <wsdl:part name="in" element="x1:greetMeSometime"/>
+    </wsdl:message>
+    <wsdl:message name="greetMeSometimeResponse">
+        <wsdl:part name="out" element="x1:greetMeSometimeResponse"/>
+    </wsdl:message>
+    <wsdl:message name="greetMeOneWayRequest">
+        <wsdl:part name="in" element="x1:greetMeOneWay"/>
+    </wsdl:message>
+    <wsdl:message name="testDocLitFaultRequest">
+        <wsdl:part name="in" element="x1:testDocLitFault"/>
+    </wsdl:message>
+    <wsdl:message name="testDocLitFaultResponse">
+        <wsdl:part name="out" element="x1:testDocLitFaultResponse"/>
+    </wsdl:message>
+    <wsdl:message name="NoSuchCodeLitFault">
+        <wsdl:part name="NoSuchCodeLit" element="x1:NoSuchCodeLit"/>
+    </wsdl:message>
+    <wsdl:message name="BadRecordLitFault">
+        <wsdl:part name="BadRecordLit" element="x1:BadRecordLit"/>
+    </wsdl:message>
+    <wsdl:message name="testDocLitBareRequest">
+        <wsdl:part name="in" element="x1:BareDocument"/>
+    </wsdl:message>
+    <wsdl:message name="testDocLitBareResponse">
+        <wsdl:part name="out" element="x1:BareDocumentResponse"/>
+    </wsdl:message> 
+    <wsdl:portType name="Greeter">
+        <wsdl:operation name="sayHi">
+            <wsdl:input name="sayHiRequest" message="tns:sayHiRequest"/>
+            <wsdl:output name="sayHiResponse" message="tns:sayHiResponse"/>
+        </wsdl:operation>
+        <wsdl:operation name="greetMe">
+            <wsdl:input name="greetMeRequest" message="tns:greetMeRequest"/>
+            <wsdl:output name="greetMeResponse" message="tns:greetMeResponse"/>
+        </wsdl:operation>
+       <wsdl:operation name="greetMeSometime">
+            <wsdl:input name="greetMeSometimeRequest" message="tns:greetMeSometimeRequest"/>
+            <wsdl:output name="greetMeSometimeResponse" message="tns:greetMeSometimeResponse"/>
+        </wsdl:operation>
+        <wsdl:operation name="greetMeOneWay">
+            <wsdl:input name="greetMeOneWayRequest" message="tns:greetMeOneWayRequest"/>
+        </wsdl:operation>
+        <wsdl:operation name="testDocLitFault">
+            <wsdl:input name="testDocLitFaultRequest" message="tns:testDocLitFaultRequest"/>
+            <wsdl:output name="testDocLitFaultResponse" message="tns:testDocLitFaultResponse"/>
+            <wsdl:fault name="NoSuchCodeLitFault" message="tns:NoSuchCodeLitFault"/>
+            <wsdl:fault name="BadRecordLitFault" message="tns:BadRecordLitFault"/>
+        </wsdl:operation>
+        <wsdl:operation name="testDocLitBare">
+            <wsdl:input name="testDocLitBareRequest" message="tns:testDocLitBareRequest"/>
+            <wsdl:output name="testDocLitBareResponse" message="tns:testDocLitBareResponse"/>
+        </wsdl:operation>       
+    </wsdl:portType>
+    <wsdl:binding name="Greeter_SOAPBinding" type="tns:Greeter">
+        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="sayHi">
+            <soap:operation style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="greetMe">
+            <soap:operation style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="greetMeSometime">
+            <soap:operation style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="greetMeOneWay">
+            <soap:operation style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+        </wsdl:operation>
+        <wsdl:operation name="testDocLitFault">
+            <soap:operation style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal"/>
+            </wsdl:output>
+            <wsdl:fault name="NoSuchCodeLitFault">
+                <soap:fault name="NoSuchCodeLitFault" use="literal"/>
+            </wsdl:fault>
+            <wsdl:fault name="BadRecordLitFault">
+                <soap:fault name="BadRecordLitFault" use="literal"/>
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="testDocLitBare">
+            <soap:operation style="document" soapAction="http://apache.org/hello_world_soap_http/testDocLitBare"/>
+            <wsdl:input name="testDocLitBareRequest">
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output name="testDocLitBareResponse">
+                <soap:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="SOAPService">
+        <wsdl:port name="SoapPort" binding="tns:Greeter_SOAPBinding">
+            <soap:address location="http://localhost:9000/SoapContext/SoapPort"/>
+        </wsdl:port>
+    </wsdl:service>
+    <wsdl:service name="SOAPService_Test1">
+        <wsdl:port name="SoapPort_Test1" binding="tns:Greeter_SOAPBinding">
+            <soap:address location="http://localhost:9100"/>
+        </wsdl:port>
+        <wsdl:port name="SoapPort_Test2" binding="tns:Greeter_SOAPBinding">
+            <soap:address location="http://localhost:9101"/>
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>
+

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305729/hello_world.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305729/hello_world.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/tools2/wsdlto/test/src/test/resources/wsdl2java_wsdl/bug305729/hello_world.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message