Last post Nov 14, 2013 12:52 PM by JacobPressures
Jul 16, 2009 11:29 AM|zhu928|LINK
Recently i am working on a wcf project. we need to make decision on the way to deploy the web services. I did research and so far I found 2 ways.
1. Create a wcf service library project and a wcf service web site. in this way the service will be implemented in the library and be called from the website.
2. Create a wcf service application project. This will create a wcf service, which is ready to be deployed on IIS. All the implementation will be done within the project.
They both seem to work. Any body know which is a better way of doing this? thanks
Jul 16, 2009 02:37 PM|johnwsaunders3|LINK
The service library project type has some interesting features. For instance, when you debug, it runs the WCF Test Host to host your service, and the WCF Test Client to test it.
Jul 16, 2009 03:09 PM|zhu928|LINK
Thanks for the tips.... but beside on this, are there any real world advantages for one over another?
Jul 16, 2009 07:22 PM|johnwsaunders3|LINK
Yes. I recommend against ever using a Web Site "project" for anything but simple web sites. So, don't do that.
Nov 14, 2013 12:52 PM|JacobPressures|LINK
This is quite old but i thought I'd reply so if someone else runs into it, they will have a more detailed answer.
For a more detailed answer explaining the difference between a WCF Service Library and WCF Service Application check out the following link:
For an explanation of other options other than using templates to host the WCF Service Library then check out this link:
For an explanation of how to host it and publish the WCF Service, check out this link:
You should be able to follow these links pretty much step-by-step. I was able to skip the second method and use both the WCF Service Libary and the WCF Service Application and then follow the steps in the last link.
I hope this information helps someone speed up there research. It took me several days to figure all his out and I have two books I've read on the subject.