Posts

Showing posts with the label WCF

Difference between WCF and Web service

Difference between WCF and Web service Web service is a part of WCF. WCF offers much more flexibility and portability to develop a service when comparing to web service. Still we are having more advantages over Web service, following table provides detailed difference between them. Features Web Service WCF Hosting It can be hosted in IIS It can be hosted in IIS, windows activation service, Self-hosting, Windows service Programming [WebService] attribute has to be added to the class [ServiceContraact] attribute has to be added to the class Model [WebMethod] attribute represents the method exposed to client [OperationContract] attribute represents the method exposed to client Operation One-way, Request- Response are the different operations supported in web service One-Way, Request-Response, Duplex are different type of operations supported in WCF XML System.Xml.serialization name space is used for serialization System.Runtime.Serialization namespac...

WCF Useful links

WCF -  http://msdn.microsoft.com/en-us/netframework/aa663324.aspx (.net Framework Developer center, central resource for all things WCF) WCF 3.5 samples -  http://msdn.microsoft.com/en-us/library/ms751514.aspx WCF 4.0 samples -  http://msdn.microsoft.com/library/dd483346(VS.100).aspx (good resource to learn the basics by playing with samples) WCF screencasts -  http://msdn.microsoft.com/en-us/netframework/wcf-screencasts.aspx .Net endpoint blog -  http://blogs.msdn.com/endpoint/ (Blog by the .NET and AppFabric teams about WCF and WF development, deployment, and management) Bug report/ Feature request/ Feedback to the product team -  https://connect.microsoft.com/wcf (There are useful resources mentioned at the bottom of this page as well) Detailed WCF security guidance -  http://www.codeplex.com/WCFSecurity Detailed debugging using WCF tracing -  http://msdn.microsoft.com/en-us/library/ms733025.aspx

New to Windows Communication Foundation programming??

http://msdn.microsoft.com/en-us/library/aa480190.aspx

WCF Demos

Image

Configuring WCF Service References

Change the default Visual Studio Test Client in "WCF"

Image
Right Click project goto properties and in "debug" section change the "Command Line Arguments", by default is points out to visual studio default test client where we can point it to our own test client location.

Creating Your First WCF Client

Self-hosting WCF Services

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

If you install DotNet framework 4.0 on IIS server and then enable DotNet 3.0 or 3.5 WCF features, you might see following error when browse your application site made of ASP.NET 4.0 (or run on ASP.NET 4.0 application pool). Resolution:   To resolve this issue, run the following from Visual Studio command prompt:    aspnet_regiis.exe -iru

Hosting WCF Services in IIS

"Hosting WCF Services in IIS"

Configuring Services with Endpoints

"Configuring Services with Endpoints"

Creating Your First WCF Service

"Creating Your First WCF Service"

Getting Started WCF Tutorial

http://msdn.microsoft.com/en-us/library/ms734712.aspx