[Mono-devel-list] WSDL -appsettingurlkey generating empty ctor for proxy class (mono 1.1.1)
Yannick Jost
yjost at perinfo.com
Mon Oct 25 05:15:10 EDT 2004
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