[Mono-devel-list] WSDL -appsettingurlkey generating empty ctor for proxy class (mono 1.1.1)
Fawad Halim
fawad at fawad.net
Mon Oct 25 10:14:55 EDT 2004
Hi,
This does seem to be a bug. Kindly file a bug on bugzilla.ximian.com.
Regards
-fawad
Yannick Jost wrote:
> Hi,
>
> I was trying to put a bit of flexibility in my mono app by putting
> the adress of the WebServices server in the web.config file.
> So I tried wsdl -appsettingurlkey:serveraddress -out:myproxy.cs
> http://myserver/mywsdl.wsdl
> But suprisingly the ctor of the proxy that was generated doesn't
> contain the line
> this.Url = "....";
> and is totally empty
>
> I have tried to use the same parameter on a windows box with mono
> 1.0.1 and the ctor seems to be correct (didn't try to compile)
>
> string urlSetting =
> System.Configuration.ConfigurationSettings.AppSettings["serveraddress"];
> if ((urlSetting != null)) {
> this.Url = urlSetting;
> }
> else {
> this.Url = "originaladress";
> }
>
>
> Am I doing wrong or is this a regression ?
>
> Thanks,
>
> --
> Yannick
More information about the Mono-devel-list
mailing list