huckfinn19
Programmer
I am using C# 2.0
When creating a new web-reference in a Windows application, Visual Studio creates a bunch of references to the web service in the project. We have moved these references in the App.Config of the application as follows:
<applicationSettings>
<SomeNamespace.WebServices.Properties.Settings>
<setting name="SomeWebServices_Service" serializeAs="String">
<value> </setting>
...
</SomeNamespace.WebServices.Properties.Settings>
</applicationSettings>
I need to be able to retrieve this information at runtime to display the list of web services that are used to the users, without hard coding the access to the web services objects themselves. Basically, if a developper adds a reference to a web service, I want the list of web services displayed to the users at runtime to be updated automatically.
Does anyone knows how to retrieve these settings from the App.Config file at runtime?
Thanks.
When creating a new web-reference in a Windows application, Visual Studio creates a bunch of references to the web service in the project. We have moved these references in the App.Config of the application as follows:
<applicationSettings>
<SomeNamespace.WebServices.Properties.Settings>
<setting name="SomeWebServices_Service" serializeAs="String">
<value> </setting>
...
</SomeNamespace.WebServices.Properties.Settings>
</applicationSettings>
I need to be able to retrieve this information at runtime to display the list of web services that are used to the users, without hard coding the access to the web services objects themselves. Basically, if a developper adds a reference to a web service, I want the list of web services displayed to the users at runtime to be updated automatically.
Does anyone knows how to retrieve these settings from the App.Config file at runtime?
Thanks.