c# - Programmatically adding/updating web services references using a user form -
at moment follow tutorial add web services (non-native/non.net) using wizard.
which creates following code in web.config file.
<applicationsettings> <cart_test.properties.settings> <setting name="cart_test_net_webservicex_www_globalweather" serializeas="string"> <value>http://www.webservicex.net/globalweather.asmx</value> </setting> </cart_test.properties.settings> </applicationsettings>
also can seen in properties.settings
form. when updated properties.settings, see web.config file updated. when deleting web service properties.settings, removed web.config file , see web service hanging there in solution explorer under web references
.
i want add/update/delete service entirely application programmatically, taking input user , access properties.settings , update/add web service when web application setting up/installing.
so when publishing , packaging application, quite user friendly allow admin add web services using custom settings-form instead of messing back-end code.
how can approach this?
Comments
Post a Comment