axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r646510 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
Date Wed, 09 Apr 2008 20:05:57 GMT
Author: dims
Date: Wed Apr  9 13:05:47 2008
New Revision: 646510

URL: http://svn.apache.org/viewvc?rev=646510&view=rev
Log:
Fix for AXIS2-3717 - WSDL2Java fails for WSDL that work for Axis2 1.3

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java?rev=646510&r1=646509&r2=646510&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
Wed Apr  9 13:05:47 2008
@@ -1205,11 +1205,17 @@
         reader.setFeature(WSDLReader.FEATURE_VALIDATION, true);
         WSDLSource wsdlSource = reader.createWSDLSource();
         wsdlSource.setSource(document.getDocumentElement());
-        if (getBaseUri() != null && !"".equals(getBaseUri())) {
+        String uri = getBaseUri();
+        if (uri != null && !"".equals(uri)) {
             try {
-                wsdlSource.setBaseURI(new URI(getBaseUri()));
+                wsdlSource.setBaseURI(new URI(uri));
             } catch (URISyntaxException e) {
-                AxisFault.makeFault(e);
+                File f = new File(uri);
+                if(f.exists()) {
+                    wsdlSource.setBaseURI(f.toURI());
+                } else {
+                    log.error(e.toString(), e);
+                }
             }
         }
         if (log.isDebugEnabled()) {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message