You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by tl...@apache.org on 2006/10/17 12:17:27 UTC

svn commit: r464891 - in /incubator/cxf/trunk: common/common/src/main/java/org/apache/cxf/jaxb/ rt/core/src/main/java/org/apache/cxf/wsdl11/ rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/ systests/src/test/java/org/apache/cxf/systes...

Author: tli
Date: Tue Oct 17 03:17:22 2006
New Revision: 464891

URL: http://svn.apache.org/viewvc?view=rev&rev=464891
Log:
patch to fix the anonymous complex type and add a systest for it

Added:
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerMiscTest.java   (with props)
    incubator/cxf/trunk/testutils/src/main/java/org/apache/cxf/anonymous_complex_type/
    incubator/cxf/trunk/testutils/src/main/java/org/apache/cxf/anonymous_complex_type/AnonymousComplexTypeImpl.java   (with props)
    incubator/cxf/trunk/testutils/src/main/resources/wsdl/anonymous_complex_type.wsdl   (with props)
Modified:
    incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/jaxb/WrapperHelper.java
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
    incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperClassInInterceptor.java
    incubator/cxf/trunk/testutils/pom.xml

Modified: incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/jaxb/WrapperHelper.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/jaxb/WrapperHelper.java?view=diff&rev=464891&r1=464890&r2=464891
==============================================================================
--- incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/jaxb/WrapperHelper.java (original)
+++ incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/jaxb/WrapperHelper.java Tue Oct 17 03:17:22 2006
@@ -129,7 +129,7 @@
 
         String accessor = JAXBUtils.nameToIdentifier(partName, JAXBUtils.IdentifierType.GETTER);
 
-        if ("boolean".equals(elementType.toLowerCase())) {
+        if (elementType != null && "boolean".equals(elementType.toLowerCase())) {
             // JAXB Exception to get the Boolean property
             accessor = accessor.replaceFirst("get", "is");
         }

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java?view=diff&rev=464891&r1=464890&r2=464891
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java (original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java Tue Oct 17 03:17:22 2006
@@ -462,13 +462,6 @@
                 }
                 XmlSchemaElement el = (XmlSchemaElement)o;
 
-                // If this is an anonymous complex type, mark it as unwrapped.
-                // We're doing this because things like JAXB don't have support
-                // for finding classes from anonymous type names.
-                if (el.getSchemaTypeName() == null && el.getRefName() == null) {
-                    return false;
-                }
-
                 MessagePartInfo mpi = wrapper.addMessagePart(el.getQName());
                 mpi.setTypeQName(el.getSchemaTypeName());
             }

Modified: incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperClassInInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperClassInInterceptor.java?view=diff&rev=464891&r1=464890&r2=464891
==============================================================================
--- incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperClassInInterceptor.java (original)
+++ incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperClassInInterceptor.java Tue Oct 17 03:17:22 2006
@@ -112,7 +112,12 @@
                             if (part.isElement()) {
                                 elementType = part.getElementQName().getLocalPart();
                             } else {
-                                elementType = part.getTypeQName().getLocalPart();
+                                if (part.getTypeQName() == null) {
+                                    // handling anonymous complex type
+                                    elementType = null;
+                                } else {
+                                    elementType = part.getTypeQName().getLocalPart();
+                                }
                             }
                             Object obj = WrapperHelper.getWrappedPart(part.getName().getLocalPart(), 
                                                                       wrappedObject,

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerMiscTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerMiscTest.java?view=auto&rev=464891
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerMiscTest.java (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerMiscTest.java Tue Oct 17 03:17:22 2006
@@ -0,0 +1,89 @@
+/**
+ * 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.systest.jaxws;
+
+import java.lang.reflect.UndeclaredThrowableException;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Endpoint;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.apache.cxf.anonymous_complex_type.AnonymousComplexType;
+import org.apache.cxf.anonymous_complex_type.AnonymousComplexTypeImpl;
+import org.apache.cxf.anonymous_complex_type.AnonymousComplexTypeService;
+import org.apache.cxf.anonymous_complex_type.SplitNameResponse.Names;
+import org.apache.cxf.systest.common.ClientServerSetupBase;
+import org.apache.cxf.systest.common.ClientServerTestBase;
+import org.apache.cxf.systest.common.TestServerBase;
+
+public class ClientServerMiscTest extends ClientServerTestBase {
+
+    private final QName portName = new QName("http://cxf.apache.org/anonymous_complex_type/",
+            "anonymous_complex_typeSOAP");
+
+    public static class Server extends TestServerBase {
+
+        protected void run() {
+            Object implementor = new AnonymousComplexTypeImpl();
+            String address = "http://localhost:9000/anonymous_complex_typeSOAP";
+            Endpoint.publish(address, implementor);
+        }
+
+        public static void main(String[] args) {
+            try {
+                Server s = new Server();
+                s.start();
+            } catch (Exception ex) {
+                ex.printStackTrace();
+                System.exit(-1);
+            } finally {
+                System.out.println("done!");
+            }
+        }
+    }
+
+    public static Test suite() throws Exception {
+        TestSuite suite = new TestSuite(ClientServerMiscTest.class);
+        return new ClientServerSetupBase(suite) {
+            public void startServers() throws Exception {
+                assertTrue("server did not launch correctly", launchServer(Server.class));
+            }
+        };
+    }
+
+    public void testAnonymousComplexType() throws Exception {
+
+        AnonymousComplexTypeService actService = new AnonymousComplexTypeService();
+        assertNotNull(actService);
+        AnonymousComplexType act = actService.getPort(portName, AnonymousComplexType.class);
+        
+        try {
+            Names reply = act.splitName("Tom Li");
+            assertNotNull("no response received from service", reply);
+            assertEquals("Tom", reply.getFirst());
+            assertEquals("Li", reply.getSecond());
+        } catch (UndeclaredThrowableException ex) {
+            throw (Exception) ex.getCause();
+        }
+    }
+
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerMiscTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerMiscTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/testutils/pom.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/testutils/pom.xml?view=diff&rev=464891&r1=464890&r2=464891
==============================================================================
--- incubator/cxf/trunk/testutils/pom.xml (original)
+++ incubator/cxf/trunk/testutils/pom.xml Tue Oct 17 03:17:22 2006
@@ -1,23 +1,23 @@
 <!--
-  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.
+    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.
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     <modelVersion>4.0.0</modelVersion>
     <groupId>org.apache.cxf</groupId>
     <artifactId>cxf-testutils</artifactId>
@@ -75,76 +75,77 @@
                         <configuration>
                             <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
                             <tasks>
-                                <property name="generated.target" value="${basedir}/target/generated"/>
-                                <property name="generated.src.test" value="${generated.target}/src/main/java"/>
-                                <property name="generated.resources.test" value="${generated.target}/src/main/resources"/>
-                                <property name="generated.wsdl.test" value="${generated.resources.test}/"/>
-                                <property name="test.resources.dir" location="${basedir}/src/main/resources"/>
+                                <property name="generated.target" value="${basedir}/target/generated" />
+                                <property name="generated.src.test" value="${generated.target}/src/main/java" />
+                                <property name="generated.resources.test"
+                                    value="${generated.target}/src/main/resources" />
+                                <property name="generated.wsdl.test" value="${generated.resources.test}/" />
+                                <property name="test.resources.dir" location="${basedir}/src/main/resources" />
 
-                                <mkdir dir="${generated.resources.test}/wsdl/type_test"/>
+                                <mkdir dir="${generated.resources.test}/wsdl/type_test" />
                                 <xslt style="${test.resources.dir}/wsdl/type_test/type_test_ID_xsd.xsl"
-                                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
-                                      out="${generated.resources.test}/wsdl/type_test/type_test_1.xsd">
-                                    <param name="groupID" expression="1"/>
+                                    in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                                    out="${generated.resources.test}/wsdl/type_test/type_test_1.xsd">
+                                    <param name="groupID" expression="1" />
                                 </xslt>
                                 <xslt style="${test.resources.dir}/wsdl/type_test/type_test_ID_xsd.xsl"
-                                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
-                                      out="${generated.resources.test}/wsdl/type_test/type_test_2.xsd">
-                                    <param name="groupID" expression="2"/>
+                                    in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                                    out="${generated.resources.test}/wsdl/type_test/type_test_2.xsd">
+                                    <param name="groupID" expression="2" />
                                 </xslt>
                                 <xslt style="${test.resources.dir}/wsdl/type_test/type_test_ID_xsd.xsl"
-                                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
-                                      out="${generated.resources.test}/wsdl/type_test/type_test_3.xsd">
-                                    <param name="groupID" expression="3"/>
+                                    in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                                    out="${generated.resources.test}/wsdl/type_test/type_test_3.xsd">
+                                    <param name="groupID" expression="3" />
                                 </xslt>
                                 <xslt style="${test.resources.dir}/wsdl/type_test/type_test_wsdl.xsl"
-                                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
-                                      out="${generated.resources.test}/wsdl/type_test/type_test_doclit.wsdl">
-                                    <param name="inc_xsd_path" expression="."/>
-                                    <param name="use_style" expression="document"/>
-				                    <param name="tns_suffix" expression="doc"/>
+                                    in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                                    out="${generated.resources.test}/wsdl/type_test/type_test_doclit.wsdl">
+                                    <param name="inc_xsd_path" expression="." />
+                                    <param name="use_style" expression="document" />
+                                    <param name="tns_suffix" expression="doc" />
                                 </xslt>
                                 <xslt style="${test.resources.dir}/wsdl/type_test/type_test_wsdl.xsl"
-                                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
-                                      out="${generated.resources.test}/wsdl/type_test/type_test_rpclit.wsdl">
-                                    <param name="inc_xsd_path" expression="."/>
-                                    <param name="use_style" expression="rpc"/>
-                                    <param name="tns_suffix" expression="rpc"/>
+                                    in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                                    out="${generated.resources.test}/wsdl/type_test/type_test_rpclit.wsdl">
+                                    <param name="inc_xsd_path" expression="." />
+                                    <param name="use_style" expression="rpc" />
+                                    <param name="tns_suffix" expression="rpc" />
                                 </xslt>
                                 <xslt style="${test.resources.dir}/wsdl/type_test/type_test_wsdl.xsl"
-                                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
-                                      out="${generated.resources.test}/wsdl/type_test/type_test_xml_inc.wsdl">
-                                    <param name="inc_xsd_path" expression="."/>
-                                    <param name="use_style" expression="document"/>
-                                    <param name="tns_suffix" expression="xml"/>
+                                    in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                                    out="${generated.resources.test}/wsdl/type_test/type_test_xml_inc.wsdl">
+                                    <param name="inc_xsd_path" expression="." />
+                                    <param name="use_style" expression="document" />
+                                    <param name="tns_suffix" expression="xml" />
                                 </xslt>
                                 <xslt style="${test.resources.dir}/wsdl/type_test/type_test_xml_wsdl.xsl"
-                                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
-                                      out="${generated.resources.test}/wsdl/type_test/type_test_xml.wsdl">
-                                    <param name="inc_wsdl_path" expression="."/>
-                                    <param name="port" expression="9008"/>
+                                    in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                                    out="${generated.resources.test}/wsdl/type_test/type_test_xml.wsdl">
+                                    <param name="inc_wsdl_path" expression="." />
+                                    <param name="port" expression="9008" />
                                 </xslt>
                                 <xslt style="${test.resources.dir}/wsdl/type_test/type_test_soap_wsdl.xsl"
-                                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
-                                      out="${generated.resources.test}/wsdl/type_test/type_test_doclit_soap.wsdl">
-                                    <param name="inc_wsdl_path" expression="."/>
-                                    <param name="use_style" expression="document"/>
-                                    <param name="port" expression="9007"/>
+                                    in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                                    out="${generated.resources.test}/wsdl/type_test/type_test_doclit_soap.wsdl">
+                                    <param name="inc_wsdl_path" expression="." />
+                                    <param name="use_style" expression="document" />
+                                    <param name="port" expression="9007" />
                                 </xslt>
                                 <xslt style="${test.resources.dir}/wsdl/type_test/type_test_soap_wsdl.xsl"
-                                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
-                                      out="${generated.resources.test}/wsdl/type_test/type_test_rpclit_soap.wsdl">
-                                    <param name="inc_wsdl_path" expression="."/>
-                                    <param name="use_style" expression="rpc"/>
-                                    <param name="port" expression="9006"/>
+                                    in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                                    out="${generated.resources.test}/wsdl/type_test/type_test_rpclit_soap.wsdl">
+                                    <param name="inc_wsdl_path" expression="." />
+                                    <param name="use_style" expression="rpc" />
+                                    <param name="port" expression="9006" />
                                 </xslt>
-                                <mkdir dir="${generated.src.test}/org/apache/cxf/systest/type_test"/>
+                                <mkdir dir="${generated.src.test}/org/apache/cxf/systest/type_test" />
                                 <xslt style="${test.resources.dir}/wsdl/type_test/type_test_impl_java.xsl"
-                                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
-                                      out="${generated.src.test}/org/apache/cxf/systest/type_test/TypeTestImpl.java"/>
+                                    in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                                    out="${generated.src.test}/org/apache/cxf/systest/type_test/TypeTestImpl.java" />
                                 <xslt style="${test.resources.dir}/wsdl/type_test/type_test_tester_java.xsl"
-                                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
-                                      out="${generated.src.test}/org/apache/cxf/systest/type_test/TypeTestTester.java"/>
+                                    in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                                    out="${generated.src.test}/org/apache/cxf/systest/type_test/TypeTestTester.java" />
 
                             </tasks>
                         </configuration>
@@ -170,7 +171,9 @@
                                     <wsdl>${basedir}/src/main/resources/wsdl/hello_world.wsdl</wsdl>
                                     <extraargs>
                                         <extraarg>-b</extraarg>
-                                        <extraarg>${basedir}/src/main/resources/wsdl/async_binding.xml</extraarg>
+                                        <extraarg>
+                                            ${basedir}/src/main/resources/wsdl/async_binding.xml
+                                        </extraarg>
                                     </extraargs>
                                 </wsdlOption>
                                 <wsdlOption>
@@ -183,7 +186,9 @@
                                     <wsdl>${basedir}/src/main/resources/wsdl/greeter_control.wsdl</wsdl>
                                     <extraargs>
                                         <extraarg>-b</extraarg>
-                                        <extraarg>${basedir}/src/main/resources/wsdl/greeter_control.xjb</extraarg>
+                                        <extraarg>
+                                            ${basedir}/src/main/resources/wsdl/greeter_control.xjb
+                                        </extraarg>
                                     </extraargs>
                                 </wsdlOption>
                                 <wsdlOption>
@@ -193,7 +198,9 @@
                                     <wsdl>${basedir}/src/main/resources/wsdl/hello_world_xml_bare.wsdl</wsdl>
                                 </wsdlOption>
                                 <wsdlOption>
-                                    <wsdl>${basedir}/src/main/resources/wsdl/hello_world_xml_wrapped.wsdl</wsdl>
+                                    <wsdl>
+                                        ${basedir}/src/main/resources/wsdl/hello_world_xml_wrapped.wsdl
+                                    </wsdl>
                                 </wsdlOption>
                                 <wsdlOption>
                                     <wsdl>${basedir}/src/main/resources/wsdl/hello_world_rpc_lit.wsdl</wsdl>
@@ -216,40 +223,76 @@
                                 <wsdlOption>
                                     <wsdl>${basedir}/src/main/resources/wsdl/schema_validation.wsdl</wsdl>
                                 </wsdlOption>
-
+                                <wsdlOption>
+                                    <wsdl>
+                                        ${basedir}/src/main/resources/wsdl/anonymous_complex_type.wsdl
+                                    </wsdl>
+                                </wsdlOption>
                                 <wsdlOption>
                                     <wsdl>${basedir}/src/main/resources/wsdl/basic_callback_test.wsdl</wsdl>
                                 </wsdlOption>
-                                
+
                                 <wsdlOption>
-				     <wsdl>${basedir}/src/main/resources/wsdl/hello_world_underscore.wsdl</wsdl>
+                                    <wsdl>
+                                        ${basedir}/src/main/resources/wsdl/hello_world_underscore.wsdl
+                                    </wsdl>
                                 </wsdlOption>
-                                
+
                                 <wsdlOption>
-                                    <wsdl>${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_xml.wsdl</wsdl>
+                                    <wsdl>
+                                        ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_xml.wsdl
+                                    </wsdl>
                                     <dependencies>
-                                        <dependency>${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_xml_inc.wsdl</dependency>
-                                        <dependency>${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_1.xsd</dependency>
-                                        <dependency>${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_2.xsd</dependency>
-                                        <dependency>${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_3.xsd</dependency>
+                                        <dependency>
+                                            ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_xml_inc.wsdl
+                                        </dependency>
+                                        <dependency>
+                                            ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_1.xsd
+                                        </dependency>
+                                        <dependency>
+                                            ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_2.xsd
+                                        </dependency>
+                                        <dependency>
+                                            ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_3.xsd
+                                        </dependency>
                                     </dependencies>
                                 </wsdlOption>
                                 <wsdlOption>
-                                    <wsdl>${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_doclit_soap.wsdl</wsdl>
+                                    <wsdl>
+                                        ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_doclit_soap.wsdl
+                                    </wsdl>
                                     <dependencies>
-                                        <dependency>${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_doclit.wsdl</dependency>
-                                        <dependency>${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_1.xsd</dependency>
-                                        <dependency>${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_2.xsd</dependency>
-                                        <dependency>${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_3.xsd</dependency>
+                                        <dependency>
+                                            ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_doclit.wsdl
+                                        </dependency>
+                                        <dependency>
+                                            ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_1.xsd
+                                        </dependency>
+                                        <dependency>
+                                            ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_2.xsd
+                                        </dependency>
+                                        <dependency>
+                                            ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_3.xsd
+                                        </dependency>
                                     </dependencies>
                                 </wsdlOption>
                                 <wsdlOption>
-                                    <wsdl>${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_rpclit_soap.wsdl</wsdl>
+                                    <wsdl>
+                                        ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_rpclit_soap.wsdl
+                                    </wsdl>
                                     <dependencies>
-                                        <dependency>${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_rpclit.wsdl</dependency>
-                                        <dependency>${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_1.xsd</dependency>
-                                        <dependency>${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_2.xsd</dependency>
-                                        <dependency>${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_3.xsd</dependency>
+                                        <dependency>
+                                            ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_rpclit.wsdl
+                                        </dependency>
+                                        <dependency>
+                                            ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_1.xsd
+                                        </dependency>
+                                        <dependency>
+                                            ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_2.xsd
+                                        </dependency>
+                                        <dependency>
+                                            ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_3.xsd
+                                        </dependency>
                                     </dependencies>
                                 </wsdlOption>
 
@@ -268,7 +311,6 @@
                     </execution>
                 </executions>
             </plugin>
-
         </plugins>
     </build>
 

Added: incubator/cxf/trunk/testutils/src/main/java/org/apache/cxf/anonymous_complex_type/AnonymousComplexTypeImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/testutils/src/main/java/org/apache/cxf/anonymous_complex_type/AnonymousComplexTypeImpl.java?view=auto&rev=464891
==============================================================================
--- incubator/cxf/trunk/testutils/src/main/java/org/apache/cxf/anonymous_complex_type/AnonymousComplexTypeImpl.java (added)
+++ incubator/cxf/trunk/testutils/src/main/java/org/apache/cxf/anonymous_complex_type/AnonymousComplexTypeImpl.java Tue Oct 17 03:17:22 2006
@@ -0,0 +1,48 @@
+/**
+ * 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.anonymous_complex_type;
+
+import javax.jws.WebService;
+
+import org.apache.cxf.anonymous_complex_type.SplitNameResponse.Names;
+
+@WebService(serviceName = "anonymous_complex_type_service", 
+        portName = "anonymous_complex_typeSOAP", 
+        endpointInterface = "org.apache.cxf.anonymous_complex_type.AnonymousComplexType", 
+        targetNamespace = "http://cxf.apache.org/anonymous_complex_type/")
+        
+public class AnonymousComplexTypeImpl implements AnonymousComplexType {
+
+    public Names splitName(String name) {
+        // TODO Auto-generated method stub
+        if (name != null) {
+            Names names = new Names();
+            int pos = name.indexOf(" ");
+            if (pos > 0) {
+                names.setFirst(name.substring(0, pos));
+                names.setSecond(name.substring(pos + 1));
+            } else {
+                names.setFirst(name);
+            }
+            return names;
+        }
+        return null;
+    }
+}

Propchange: incubator/cxf/trunk/testutils/src/main/java/org/apache/cxf/anonymous_complex_type/AnonymousComplexTypeImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/testutils/src/main/java/org/apache/cxf/anonymous_complex_type/AnonymousComplexTypeImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/testutils/src/main/resources/wsdl/anonymous_complex_type.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/testutils/src/main/resources/wsdl/anonymous_complex_type.wsdl?view=auto&rev=464891
==============================================================================
--- incubator/cxf/trunk/testutils/src/main/resources/wsdl/anonymous_complex_type.wsdl (added)
+++ incubator/cxf/trunk/testutils/src/main/resources/wsdl/anonymous_complex_type.wsdl Tue Oct 17 03:17:22 2006
@@ -0,0 +1,78 @@
+<?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:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+    xmlns:tns="http://cxf.apache.org/anonymous_complex_type/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="anonymous_complex_type"
+    targetNamespace="http://cxf.apache.org/anonymous_complex_type/">
+    <wsdl:types>
+        <xsd:schema targetNamespace="http://cxf.apache.org/anonymous_complex_type/">
+            <xsd:element name="SplitNameResponse">
+                <xsd:complexType>
+                    <xsd:sequence>
+                        <xsd:element name="names">
+                            <xsd:complexType>
+                                <xsd:sequence>
+                                    <xsd:element name="first" type="xsd:string" />
+                                    <xsd:element name="second" type="xsd:string" />
+                                </xsd:sequence>
+                            </xsd:complexType>
+                        </xsd:element>
+                    </xsd:sequence>
+                </xsd:complexType>
+            </xsd:element>
+            <xsd:element name="SplitName">
+                <xsd:complexType>
+                    <xsd:sequence>
+                        <xsd:element name="name" type="xsd:string" />
+                    </xsd:sequence>
+                </xsd:complexType>
+            </xsd:element>
+        </xsd:schema>
+    </wsdl:types>
+    <wsdl:message name="SplitNameResponse">
+        <wsdl:part element="tns:SplitNameResponse" name="SplitNameResponse" />
+    </wsdl:message>
+    <wsdl:message name="SplitNameRequest">
+        <wsdl:part element="tns:SplitName" name="SplitName" />
+    </wsdl:message>
+    <wsdl:portType name="anonymous_complex_type">
+        <wsdl:operation name="SplitName">
+            <wsdl:input message="tns:SplitNameRequest" />
+            <wsdl:output message="tns:SplitNameResponse" />
+        </wsdl:operation>
+    </wsdl:portType>
+    <wsdl:binding name="anonymous_complex_typeSOAP" type="tns:anonymous_complex_type">
+        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+        <wsdl:operation name="SplitName">
+            <soap:operation soapAction="http://cxf.apache.org/anonymous_complex_type/SplitName" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="anonymous_complex_type_service">
+        <wsdl:port binding="tns:anonymous_complex_typeSOAP" name="anonymous_complex_typeSOAP">
+            <soap:address location="http://localhost:9000/anonymous_complex_typeSOAP" />
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>

Propchange: incubator/cxf/trunk/testutils/src/main/resources/wsdl/anonymous_complex_type.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/testutils/src/main/resources/wsdl/anonymous_complex_type.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/testutils/src/main/resources/wsdl/anonymous_complex_type.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml