XFireClientFactoryBean fails to load wsdl from classpath
--------------------------------------------------------

                 Key: XFIRE-937
                 URL: http://jira.codehaus.org/browse/XFIRE-937
             Project: XFire
          Issue Type: Bug
         Environment: All
XFireClientFactoryBean
Trunk, latest version
            Reporter: Tom Lambrechts
         Assigned To: Dan Diephouse
         Attachments: XFireClientFactoryBean.java

Configuring the property wsdlDocumentUrl of XFireClientFactoryBean with a wsdl 
url relative to the classpath gives an error: " URI is not absolute"

<property name="wsdlDocumentUrl">
        <value>classpath:wsdl/AgentServiceEventListener.wsdl</value>
</property>

The URI is resolved correct by the resolver but uri.toURL does not support 
relative URI's. While the Resolver contains the correct URL. Using this URL 
instead solves the problem.

Regards,
Tom

Patch included in the makeClient method  in XFireClientFactoryBean:

           Resolver resolver = new Resolver(_wsdlDocumentUrl);

            URI uri = resolver.getURI();
            if (uri == null)
            {
                throw new XFireRuntimeException("Could not resolve uri " + uri);
            }
            
            serviceModel = getServiceFactory().create(getServiceInterface(),
                                                      name,
                                                      // TODO: bug fix 
uri.toURL does not allow relative url while resolver supports classloading urls
                                                      // uri.toURL(),
                                                      resolver.getURL(),
                                                      _properties);




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to