cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1307677 - /cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/ServiceWSDLBuilder.java
Date Sat, 31 Mar 2012 01:03:14 GMT
Author: dkulp
Date: Sat Mar 31 01:03:14 2012
New Revision: 1307677

URL: http://svn.apache.org/viewvc?rev=1307677&view=rev
Log:
Merged revisions 1307672 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1307672 | dkulp | 2012-03-30 21:00:45 -0400 (Fri, 30 Mar 2012) | 2 lines

  Use the potentially cached element instead of always creating a new DOM

........

Modified:
    cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/ServiceWSDLBuilder.java

Modified: cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/ServiceWSDLBuilder.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/ServiceWSDLBuilder.java?rev=1307677&r1=1307676&r2=1307677&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/ServiceWSDLBuilder.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/ServiceWSDLBuilder.java
Sat Mar 31 01:03:14 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