cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1307672 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/ServiceWSDLBuilder.java
Date Sat, 31 Mar 2012 01:00:46 GMT
Author: dkulp
Date: Sat Mar 31 01:00:45 2012
New Revision: 1307672

URL: http://svn.apache.org/viewvc?rev=1307672&view=rev
Log:
Use the potentially cached element instead of always creating a new DOM

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/ServiceWSDLBuilder.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/ServiceWSDLBuilder.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/ServiceWSDLBuilder.java?rev=1307672&r1=1307671&r2=1307672&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/ServiceWSDLBuilder.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/ServiceWSDLBuilder.java Sat Mar
31 01:00:45 2012
@@ -388,13 +388,8 @@ public class ServiceWSDLBuilder {
 
             String name = baseFileName + "_schema" + (++xsdCount) + ".xsd";
             schema.setDocumentBaseURI(name);
-               
 
-            try {
-                schema.setElement(schemaInfo.getSchema().getSchemaDocument().getDocumentElement());
-            } catch (XmlSchemaSerializerException e) {
-                //ignore
-            }
+            schema.setElement(schemaInfo.getElement());
 
             namespaceToSchemaMap.put(schemaInfo.getNamespaceURI(), schema);
             namespaceToSchemaInfo.put(schemaInfo.getNamespaceURI(), schemaInfo);



Mime
View raw message