Author: keith
Date: Mon Dec  3 02:03:57 2007
New Revision: 10419

Log:

Fixing bug in readWSDL method



Modified:
   
trunk/commons/codegen/src/main/java/org/wso2/codegen/service/WSDL20MetaDataFactory.java

Modified: 
trunk/commons/codegen/src/main/java/org/wso2/codegen/service/WSDL20MetaDataFactory.java
==============================================================================
--- 
trunk/commons/codegen/src/main/java/org/wso2/codegen/service/WSDL20MetaDataFactory.java
     (original)
+++ 
trunk/commons/codegen/src/main/java/org/wso2/codegen/service/WSDL20MetaDataFactory.java
     Mon Dec  3 02:03:57 2007
@@ -57,11 +57,7 @@
 
     public void readWSDL(URL wsdlLocation) throws Exception {
         WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();
-        WSDLSource wsdlSource = new DOMWSDLSource(null);
-        InputStream in = wsdlLocation.openConnection().getInputStream();
-        Document document = XMLUtils.newDocument(in);
-        wsdlSource.setSource(document);
-        wsdlDescription = reader.readWSDL(wsdlSource);
+        wsdlDescription = reader.readWSDL(wsdlLocation.toString());
     }
 
     public ServiceEndpointsData[] createServiceEndpointsDataArray(URL 
wsdlLocation) throws AxisFault {

_______________________________________________
Commons-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/commons-dev

Reply via email to