cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [4/6] cxf git commit: [CXF-6783], WSDL-generation: don't create anonymous top-level types This closes #110 This closes #109
Date Tue, 08 Mar 2016 16:15:25 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/5cd57eb1
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/5cd57eb1
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/5cd57eb1

Branch: refs/heads/3.1.x-fixes
Commit: 5cd57eb14d0e5e5166234fb0015648d295132ff2
Parents: 3e64850
Author: Barnabas Bodnar <barnabas.bodnar@ser.de>
Authored: Thu Feb 18 17:52:15 2016 +0100
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Tue Mar 8 11:15:16 2016 -0500

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/5cd57eb1/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 f3cc641..1c65fac 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