Let me preface this (Because I know I’ll get this eventually in the responses)
- Yes I know about WCF, but we are not using that or plan to right now (boss won’t budge)
Ok, so my questions are the following. First I want to move some of our .asmx into a separate project. Right now it’s in several scattered folders in our WAP project. Ok so if I create a new project:
1) What type should it be?
2) What deployment issues do I now have to face? Someone told me that if we move it to a separate project, we have to deploy it separately, I assume that means IIS, and yes, copying up that project to another place on the server
3) I was told that if we move it out of the WAP project we can no longer have that service run under our domain (something.com). But then someone told me you can setup a single web service to be a “pass-through” and have the actual .asmx files wherever you want? I don’t get that.
The main concern is moving it. How to expose the services in that web project as we’ll have multiple. How to deploy (both the files and IIS) it and then how to make sure it’s still available under our same domain in production.
Agreed, create a new Web Service Project.
There’s no issue having your webservice be deployed alongside your existing site in IIS.
Create your existing site url http://www.something.com then within IIS add a virtual directory or application to myservice so that you get http://www.something.com/myservice/awesome.asmx.
You could also create yourself an alternate host header to direct webservices.something.com to your webservices.