|
| Test live environment Path of webservice |
 |
Thu, 3 Apr 2008 15:17:02 +0000 |
Hello,
I have a test and a live server. My live server is only updated via ftp. My
website references my webservice on the test webserver. I added this url
reference via visual studio. When I ftp my files to the live server my new
webservice and webpage will have a difference address. Do I just change the path
of my webservice in my web.config file as I cannot use visual studio in the live
environment ? I am concerned as I see in the *.Disco and *.wsdl files the url
references are hardcoded there as well.
Thanks
Grant
|
| Post Reply
|
| Re: Test live environment Path of webservice |
 |
Thu, 3 Apr 2008 22:58:26 +0000 |
You just need to change the one line:
<appSettings>
<!--<add key="localhost.Service1"
value="http://localhost:51032/Service1.asmx"/>-->
<add key="localhost.Service1"
value="http://MyServer:1234/Service1.asmx"/>
</appSettings>
You can also do it programatically:
protected void Page_Load(object sender, EventArgs e)
{
localhost.Service1 MyService = new localhost.Service1();
MyService.Url = "http://MyServer:1234/Service1.asmx";
}
|
| Post Reply
|
|
|
|
|
|
|
|
|
|