[Mono-devel-list] Re: WSDL -appsettingurlkey generating empty ctor for proxy class (mono 1.1.1)

Yannick Jost yjost at perinfo.com
Tue Oct 26 08:02:54 EDT 2004


Hi,

I reported the problem as BUG# 68795
http://bugzilla.ximian.com/show_bug.cgi?id=68795

Regards,


On Mon, 25 Oct 2004 09:14:55 -0500, Fawad Halim <fawad at fawad.net> wrote:

> 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