This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[ JDK VERSION : 1.6.* ] I wanted to create a web service with axis2 from wsdl. The wsdl file was located somewhere in my home directory, which contains spaces (WinXp, German). This resulted in problems, as the spaces would have to be encoded. Please use sth. like this: <target name="axis-init" depends="init"> <makeurl property="wsdl.uri" file="C:/Dokumente und Einstellungen/.../MyService.wsdl"/> </target> <target name="wsdl2java-MyService" depends="axis-init"> ... <arg line="-uri ${wsdl.uri}"/> ... </target> This should solve the problems, but couldn't test, as the axis-build.xml file is always re-generated when I try to re-create the WS and I've currently not got any time for investigation.
I've looked into the source files, the problem is, that the model uses the URL, while the URI is needed. So please change line 233 in WsFromWsdlWizardIterator.java from String wsdlUrl = ((java.io.File)wiz.getProperty(WizardProperties.PROP_WSDL_URL)).toURL().toExternalForm(); to String wsdlUrl = ((java.io.File)wiz.getProperty(WizardProperties.PROP_WSDL_URL)).toURI().toString(); As a side-effect, this will make code cleaner, because method toURL() is deprecated.
One workaround is to put these targets to build.xml, instead of axis-build.xml. The files located in nbproject shouldn't be modified.
Sorry, should have mentioned that axis2.xsl does not have to be modified. After looking into the sources, I've found that a URL is constructed, while a URI is needed, so just fixing WsFromWsdlWizardIterator should be correct. After this change, the correct URI will be stored in the model - don't think You need to change the model element's name, though it would be cleaner, but I've seen some other bugs in the module (e.g. creating an axis web service from WSDL, second page: Try to uncheck "Generate skeletons" first, then changing the package ...), which I'd expect not to be fixed before 6.8.1, so IMO changes to model etc. doesn't need to be discussed yet.
axis2 functionality is on update center ( not under development already ).