J
JT
Hi,
I think I need a "best practices" lesson on web sites and web services.
In order to conform to the restraints of my web host, my web services
seem to need to be in a subfolder of my web site. So if I have a
wwwroot folder containing my site, which maps to www.MySite.com, then
to reference my web service, MyService, I place it in a folder that
maps to wwwroot/MyService/MyService.asmx. This is dandy. I reference
it by using the URL, ftp://www.MySite.com/MyService/MyService.asmx, in
my WinForms application. The problem is that if I decide to make a
change to my web site and "publish" it, it tells me it is going to
delete the existing files, and it does; every file including my web
services.
As a big band-aid, we moved the services to a folder up at the same
level as the wwwroot and the web host tech support guy did some behind
the scenes magic so that I could refer to it with a subdomain,
MyService.MySite.com/MyService.asmx. He says that as soon as I do
anything with the control panel, it will break things. Also, this
seems like a bad way to deal with this.
How do I publish without deleting web services that are in subfolders
of my web site? Essentially, what is the best practice for having a
web site coexist with a completely separate web service?
OR
How do I position them so that no magic has to be performed by the web
host and nothing willl get broken when I change something in my control
panel?
Naturally, this needs to be locked down because if the web service is
moved, applications compiled against the web service will break.
Thanks!
JT
I think I need a "best practices" lesson on web sites and web services.
In order to conform to the restraints of my web host, my web services
seem to need to be in a subfolder of my web site. So if I have a
wwwroot folder containing my site, which maps to www.MySite.com, then
to reference my web service, MyService, I place it in a folder that
maps to wwwroot/MyService/MyService.asmx. This is dandy. I reference
it by using the URL, ftp://www.MySite.com/MyService/MyService.asmx, in
my WinForms application. The problem is that if I decide to make a
change to my web site and "publish" it, it tells me it is going to
delete the existing files, and it does; every file including my web
services.
As a big band-aid, we moved the services to a folder up at the same
level as the wwwroot and the web host tech support guy did some behind
the scenes magic so that I could refer to it with a subdomain,
MyService.MySite.com/MyService.asmx. He says that as soon as I do
anything with the control panel, it will break things. Also, this
seems like a bad way to deal with this.
How do I publish without deleting web services that are in subfolders
of my web site? Essentially, what is the best practice for having a
web site coexist with a completely separate web service?
OR
How do I position them so that no magic has to be performed by the web
host and nothing willl get broken when I change something in my control
panel?
Naturally, this needs to be locked down because if the web service is
moved, applications compiled against the web service will break.
Thanks!
JT