A service application includes a website host already setup for you.
Choosing a Service Application limits your host to just IIS/ASP.NET (though this might be ok for your purposes, but will limit the protocols you can use).
WCF Service library:
A service library is a library of services that a host can reference and startup.
With a service library you can then choose any host you wish (a windows service, IIS/ASP.NET, or even a console application) and you'd just reference your library from your new host.
Finally one can say:
"WCF Service Application” is a web application relying on WCF technology.
"WCF Service Library" on the other hand is a compiled component which can be deployed as a web service inside IIS, WAS etc. or a Windows service.
Also you can check here for How to's/Differences in developing WCF services using both these templates:
if i choose wcflibrary,how to add service reference to web application
Just right click on your Web Application project
Click on add Service Reference
If this Web application project is in the same solution in which your WCF service library is also present then you can just click on discover button and you can then see your WCF service right there, select that and add it.
If both are in different solutions, then you have to give the WCF service url and then add it.
sridevi.vmb
Member
39 Points
130 Posts
how to create wcf service
Jun 13, 2012 12:22 PM|LINK
how to create wcf service by wcf service libraray or wcf service application
two ways to create wcf create->new project->wcf
or
create->new website->wcf
Sandeep Shen...
Participant
1678 Points
492 Posts
Re: how to create wcf service
Jun 13, 2012 12:27 PM|LINK
hi
You can do it either way...both of them will create web service...but you have to choose according to your need...
Skype : sandeep.d.shenoy
Gmail : sandeepdshenoy@gmail.com
amitpatel.it
Star
7940 Points
1862 Posts
Re: how to create wcf service
Jun 13, 2012 12:31 PM|LINK
You can do it both way but first one is create web application for WCF and second one is create web site for WCF where each page level dll created.
For WCF first one apporach is preferable.
Below is the good tutorials with example for step by step to create wcf service.
http://www.c-sharpcorner.com/uploadfile/hgvyas123/wcf-tutorial/
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
sridevi.vmb
Member
39 Points
130 Posts
Re: how to create wcf service
Jun 13, 2012 12:32 PM|LINK
if i choose wcflibrary,how to add service reference to web application
nijhawan.sau...
All-Star
16400 Points
3173 Posts
Re: how to create wcf service
Jun 13, 2012 12:36 PM|LINK
WCF service Application:
WCF Service library:
Finally one can say:
"WCF Service Application” is a web application relying on WCF technology.
"WCF Service Library" on the other hand is a compiled component which can be deployed as a web service inside IIS, WAS etc. or a Windows service.
Also you can check here for How to's/Differences in developing WCF services using both these templates:
http://www.itscodingtime.com/post/The-difference-between-Visual-Studios-WCF-Service-Application-and-WCF-Service-Library-project-templates.aspx
amitpatel.it
Star
7940 Points
1862 Posts
Re: how to create wcf service
Jun 14, 2012 07:06 AM|LINK
WCF service libarary is indipendent service which will work for any plateform.
refere below links
http://stackoverflow.com/questions/2821308/wcf-service-library-reference-in-a-web-form-asp-net
http://www.codeproject.com/Articles/38160/WCF-Service-Library-with-Windows-Service-Hosting
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
nijhawan.sau...
All-Star
16400 Points
3173 Posts
Re: how to create wcf service
Jun 14, 2012 07:13 AM|LINK