shifting a webservice from one m/c to another

J

Jaydeep

Hi All,
I have created a webservice. I used this webservice in a ASP.NET Web
Application project, by adding a webreference
http://myMachine/service1.asmx. Now I shifted all code to my live server,
which is having just framework installed on it.Now I want to change
webreference of the webservice ? how to do that ?
Is there any command-line command to do this ?


Thanks
JD
 
J

Jan Tielens

In your client project, you should the URL Behavior property of your web
reference to Dynamic (using the Properties window). By doing so VS.NET will
create an App.Config file containing the value of the URL property
(=location of your webservice). When you want to change that location you
just have to change the value in the .config file (=plain xml), and without
re-building the solution the next time you start your application it will
use the location specified.

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
 
J

Jaydeep

Thanks for your prompt reply. One question,

Do I need to read this setting in a page or webservice will automatically
reads this ?

Jaydeep
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top