"Jordan Z." <JordanZ@discussions.microsoft.comwrote in message
news:D5B8A829-4ADB-4EEF-8AA7-72882E7EA238@microsoft.com...
Quote:
Hi. John. Thanks a lot for pointing it out. You are correct.
>
In 2.0, 3.5, we cannot rely on the old configuration section to overwrite
the dynamic web service URL any more. What we need to do is to configure
it
in the new section of configuration file.
>
1. Adding section in section group containing web service reference's
property settings.
For example:
<configuration><configSections <sectionGroup name="applicationSettings"
type="System.Configuration.ApplicationSettingsGrou p, System,
Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="MyWebServiceRefLibrary.Properties.Settings"
type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089"
requirePermission="false" />
</sectionGroup></configSections>
>
>
2. Add this setting.
>
<applicationSettings>
<MyWebServiceRefLibrary.Properties.Settings>
<setting name="<MyWebServiceNameSpace_MyWebService"
serializeAs="String">
<value>http://localhost:8080/axis/services/MyWebService</value>
</setting>
</MyWebServiceRefLibrary.Properties.Settings>
</applicationSettings></configuration>
>
Thanks for posting this. I see that I win my bet!
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer