cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Mao <james....@iona.com>
Subject Re: URL in Client stub
Date Mon, 26 Mar 2007 06:51:30 GMT
This seems a bug to me, we just fixed a bug about the relative URI for 
annotation in SEI and Service class.
The static block in service class should still use absolute path, which 
used as a default wsdl location.

Please fire an issue for this.

Thanks,
James.
> Hola,
>
> When using the WSDL2Java program it always generates hard coded urls 
> in the
> client stub like so:
>
>    static {
>        URL url = null;
>        try {
>            url = new 
> URL("file:/C:/cygwin/home/Dan%20Diephouse/some.wsdl");
>        } catch (MalformedURLException e) {
>            e.printStackTrace();
>        }
>        WSDL_LOCATION = url;
>    }
>
> There is a problem with this though - It may not be in that same location
> when I deploy my service. I can specify a relative URL using wsdl to 
> java,
> but then the URL string will be something like "some.wsdl" - which is 
> not a
> valid URL and will throw a MalformedURLException.
>
> First, the exception is caught, which strikes me as odd. If its 
> important,
> we should do something about it. If its not important, then why is it
> there??
>
> Is there anyway around this?
>
> Thanks,
> - Dan


Mime
View raw message