cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [08/10] cxf git commit: [CXF-6783], WSDL-generation: don't create anonymous top-level types This closes #110 This closes #109
Date Wed, 16 Mar 2016 15:06:02 GMT
[CXF-6783], WSDL-generation: don't create anonymous top-level types
This closes #110
This closes #109


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/0f829973
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/0f829973
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/0f829973

Branch: refs/heads/3.0.x-fixes
Commit: 0f829973591ca1683410aa972e9b99c3f7a312a7
Parents: 41ce3c2
Author: Barnabas Bodnar <barnabas.bodnar@ser.de>
Authored: Thu Feb 18 17:52:15 2016 +0100
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Wed Mar 16 11:03:12 2016 -0400

----------------------------------------------------------------------
 .../cxf/wsdl/service/factory/ReflectionServiceFactoryBean.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/0f829973/rt/wsdl/src/main/java/org/apache/cxf/wsdl/service/factory/ReflectionServiceFactoryBean.java
----------------------------------------------------------------------
diff --git a/rt/wsdl/src/main/java/org/apache/cxf/wsdl/service/factory/ReflectionServiceFactoryBean.java
b/rt/wsdl/src/main/java/org/apache/cxf/wsdl/service/factory/ReflectionServiceFactoryBean.java
index a6a5e1f..e93d790 100644
--- a/rt/wsdl/src/main/java/org/apache/cxf/wsdl/service/factory/ReflectionServiceFactoryBean.java
+++ b/rt/wsdl/src/main/java/org/apache/cxf/wsdl/service/factory/ReflectionServiceFactoryBean.java
@@ -1297,9 +1297,11 @@ public class ReflectionServiceFactoryBean extends org.apache.cxf.service.factory
 
         wrappedMessage.getFirstMessagePart().setXmlSchema(el);
 
-        XmlSchemaComplexType ct = new XmlSchemaComplexType(schema, true);
+        boolean anonymousType = isAnonymousWrapperTypes();
+        XmlSchemaComplexType ct = new XmlSchemaComplexType(schema,
+                /*CXF-6783: don't create anonymous top-level types*/!anonymousType);
 
-        if (!isAnonymousWrapperTypes()) {
+        if (!anonymousType) {
             ct.setName(wrapperName.getLocalPart());
             el.setSchemaTypeName(wrapperName);
         }


Mime
View raw message