hi,
I have a windows application accessing 3 asmx files residing in one server in one web folder. I usually set their url at app.config of the windows application, individually. Is thare a way to set their URL at run time so that i could simplify deployment? I tried the following:
My.WebServices.SVC_Employees.Url = "HTTP://MyWebServer/MyWebservice/SVC_Employees.asmx"
the My.WebServices.SVC_Employees.Url changed, but it doesn't seems working because when i tried to view the runtime value of my.Settings.SVC_Employees_And_Something it doesn't changed.
Any suggestions/help will be greatly appreciated.
thanks,
sid
Won't setting the url to the webservices be kept easier to change if you kept it at app.config or web.config?
microlau Blog: http://community.sgdotnet.org/blogs/microlau
Instead of letting VS.NET IDE to do the work of creating proxy class to use the webservice. You can create one for your self and change the URL of the webservice or do anything your heart desires.
Check System.Web.Services.Protocols and SoapHttpClientProtocol to get started
Hope this helps