History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XFIRE-610
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dan Diephouse
Reporter: Michael Hoffmann
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XFire

wsdlURL in services.xml does not resolve to files located on the application classpath

Created: 29/Aug/06 07:34 AM   Updated: 02/Sep/06 12:08 PM
Component/s: Core
Affects Version/s: 1.2
Fix Version/s: 1.2.1

Time Tracking:
Not Specified

Environment: Windows XP (Service Pack 2), JDK 1.5.0_06, XFire 1.2


 Description  « Hide
This issue is directly related to JIRA XFIRE-481 ("@WebService.wsdlLocation does not resolve to files located on the application classpath").

That issue was closed with the statement "Instead of adding the @WebService.wsdlLocation attribute we now generate a service descriptor, which should help."

Unfortunately it doesn't. It is still not possible to use a relative path from your application to specify the WSDL location - using the services.xml file is no help here. I tried every possibility for <wsdlURL>, but every entry either results in a MalformedURLException or a FileNotFoundException. The only thing that works is a fully qualified path in your file system (file:/C:/somepath/xyz.wsdl) - which is not an acceptable solution IMHO.

In XFIRE-417 Mike McAngus asked - when you have something like "file://somepath/SomeFile.wsdl" - if "somepath" isn't relative to the classpath. My answer is "No, unfortunately that doesn't work".
In XFIRE-492 he stated "The @WebService.wsdlLocation path created by WsGen in the Service Impl class is an Absolute file path on the development machine where WsGen was run. In most cases, the developer will still need to modify this path to a path relative to the running service's classpath." I'd really love to do that, but its not possible.

So this problem is already mentioned in several issues, but unfortunately its stil not fixed.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dan Diephouse - 29/Aug/06 08:52 AM
Well part of the issue is that @WebService.wsdlLocation must be a valid URI, so relative file paths can't work there. But we can support them in services.xml. This should be simple to do, we just need to pass the base path of the webapp around.

Dan Diephouse - 02/Sep/06 12:08 PM
Just fixed this in SVN. Thanks for reporting.