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.

Bug 174651 - [68cat] Axis2: Problems with spaces in path
Summary: [68cat] Axis2: Problems with spaces in path
Status: RESOLVED WONTFIX
Alias: None
Product: webservices
Classification: Unclassified
Component: Axis2 (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-15 14:13 UTC by Peter Nabbefeld
Modified: 2010-10-26 11:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Nabbefeld 2009-10-15 14:13:39 UTC
[ 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.
Comment 1 Peter Nabbefeld 2009-10-19 06:55:58 UTC
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.
Comment 2 Milan Kuchtiak 2009-10-20 08:31:56 UTC
One workaround is to put these targets to build.xml, instead of axis-build.xml.
The files located in nbproject shouldn't be modified.
Comment 3 Peter Nabbefeld 2009-10-20 08:53:32 UTC
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.
Comment 4 Denis Anisimov 2010-10-26 11:33:38 UTC
axis2 functionality is on update center ( not under development already ).