Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / WCF

WCF

WCF

Great Reads

by Tharaka MTR
A solution to the problem
by Vinayaka Krishna Shenoy
.NET Coding Best Practices - Vinayak's thumb rulesDo not hard code strings/ numerics. Instead of that use constants as shown below.Bad practice int Count; Count = 100; if( Count == 0 ) { // DO something… }Good practice int Count; Count = 100; private...
by Anil Kr. Sharma
.NET Framework 3.0 primer.
by Livio Francescucci
How to create an ASP.NET gridview AJAX enabled connected with WCF SOAP and REST webservices.

Latest Articles

by Tharaka MTR
A solution to the problem
by Vinayaka Krishna Shenoy
.NET Coding Best Practices - Vinayak's thumb rulesDo not hard code strings/ numerics. Instead of that use constants as shown below.Bad practice int Count; Count = 100; if( Count == 0 ) { // DO something… }Good practice int Count; Count = 100; private...
by Anil Kr. Sharma
.NET Framework 3.0 primer.
by Livio Francescucci
How to create an ASP.NET gridview AJAX enabled connected with WCF SOAP and REST webservices.

All Articles

Sort by Score

WCF 

by Vinayaka Krishna Shenoy
.NET Coding Best Practices - Vinayak's thumb rulesDo not hard code strings/ numerics. Instead of that use constants as shown below.Bad practice int Count; Count = 100; if( Count == 0 ) { // DO something… }Good practice int Count; Count = 100; private...
by MarcusCole6833
A basic tutorial on how to Use WCF service with the Entity Framework
by Ankurkumarbora
This tip contains a solution for a Batch process which invokes a RESTful WCF Service.
by Math08avan
A simple example for CRUD actions using WCF service in ASP.NET
by cesar_boucas
A custom derivative of ServiceHostFactory to control how WCF service hosts are created.
by Michael Bergman
Using Windows Communication Foundation to build a simple web server
by Erion Pici
Generating automatized PDF reports based on Docx templates and Business-Logic XML-serialized data
by Ramanujam Shankar
Show data in grid view control of Windows Stores App using web service or WCF
by Sky Sanders
Mixing and matching security to get something like this locked down and providing the desired exposure might be challenging but I didn't offer to solve that in the title, did I?                    <behavior...
by Phil Boyd
Adding support for PasswordDigest to WCF Service References
by Frozen Rain
There is a simple way to consume WCF from clients which do not support Microsoft's SOAP implementation. It is achieved by using REST to accept data and convert REST calls to SOAP calls with the PHP Framework.
by User 10259217
Handy bridge between ASP.NET webservices and Java
by Eduardo Yost
Creating a Web User Control containing an AutoCompleteExtender for data through WCF (JSON) allowing to store the entity selected through EntityFramework. Entity object serialization from the server to the client and the client to the server.
by Mukesh Pr@sad
This tip describes how to build an application in Azure Cloud with ASP.NET MVC and WCF.
by javieranton
A basic WCF call + callback example in C# using WSDualHttpBinding.
by A Mahesh
Difference between BasicHttpBinding and WSHttpBinding
by Vinayaka Krishna Shenoy
Introduction...
by yafeya
Build a username authentication WCF self-host application with SSL
by Dave M. (Member 10734106)
Develop a simple lite web server using WCF
by Michele Ziparo
An effective way to implement a caching system in Silverlight (MVVM) RIA
by Chaitanya Kolla
Adding the WS-Security Header to a request using the WCF bindings
by Mirko Rezzin
Explain how to implement code generation and inheritance in a WCF service
by Shivarajbk
This tip explains how to write RESTFUL WCF service for Android applications.
by Surya Kiran Bonugu
Client Web Application which consumes OAUTH enabled restful WCF service using JavaScript
by Abhishek Shrotriya
This tip gives the very basic/simple implementation to interact with SAP PI webservice for authorized recipients.
by A Mahesh
wcf durable services
by Damon Du
This tip documents problems encountered in the process of learning WCF and Computer Network.
by Luhuiya
Create a WCF service using wsHttpBinding and use in a Windows Forms application.
by Nicolas Dorier
This is a short bat program to create a self signed key (with private key), if you call the bat "makecertif.bat", to create a key named ServerKey you need to type :makecertif.bat ServerKey, it will create ServerKey.pfx, a certificate with a private key you can use to secure a web site in...
by Melih Mucuk
Creating a WCF Service with JSON data for use on iOS
by Michael Bendtsen
Implementing a service proxy that automatically closes the proxy after each call.
by Alexander Batishchev
Implementing WCF behavior extension to run code on service launch
by Sunny Makode
There are several contents available on the internet that talk about injecting dependencies through .svc file's markup [in WCF service application] and it's easy when you have a WCF service application. But, it is equally easy to do that even in your WCF Library project (without .svc).
by Dominic Burford
Deploying your WCF web service to IIS
by Umesh Khandelwal
Design the WCF service without implementing interface
by WaqaarRasool
Heartbeat Implementation in WCF Service in C#
by Sujeet Bhujbal
In this article I will show you the differences between WCF channel factory and proxy and when to use them.
by Anupama Roy
Different tools to unit test your WCF services
by Omar Al Zabir
Traditional using() block disposes WCF clients incorrectly when there's a communication exception, eg dropping network connection. It raises exception during the dispose and thus the resources held by the WCF client aren't released properly. After some time, you end up with memory leaks.
by Patrick Kalkman
Good Tip, got my 5!As an alternative to your tip, when using generated proxies you could also add the logic to a partial class with the same name as the proxy class, see below.public partial class MyGeneratedProxyClient : IDisposable{ void IDisposable Dispose() { try...
by Jeremy Hutchinson
Or you can use T4 to generate a static class wrapper around the service. Then your call can look like this:SvcWrapper.Login(username, password);The full explanation and sample code is located here[^].
by Krishnendu Ghosh
Dynamic Generation of Client Proxy at Runtime in WCF using a Single Factory
by Christian Amado
A very brief article about the implementation of encryption and decryption of a string in Silverlight Business Application
by Dominic Burford
Exception handling in WCF
by Jon McKee
Extending the ServiceHost class to support dependency injection
by lusgon
Uploading a file using WCF REST API and JavaScript
by Oleksandr Kulchytskyi
Boost up your serialization in ASP.NET Web API.
by SONI Technologies (http://sonitechnology.com)
WCF Restful Service which accept data from iPad in any form. e.g JSON, XML, Plain text
by Rahul_Bansal
Remove the ‘Anonymous Authentication’ exception that occurs at the time of WCF service (3.5 framework) hosting on IIS
by Hasan Habib Surzo
Basic Server/Client Example using Windows Communication Foundation (WCF) programming
by Laszlo Voros
We force to hide an empty string-property by serializing with EmitDefaultValue
by Jitendra sondarva
Consume WCF service/ access WCF service, that hosted on Localhost (IIS 7.5 or IIS express)
by Math08avan
Hosting WCF Service - IIS Hosting
by ASP.NET Community
Hosting a WCF Service with netTcpBinding on IIS7
by Abey Thomas
Start a .NET WCF Windows Service automatically soon after the setup installation is complete.
by Henning Dieterichs
This tip shows how to change a WSDL-file to avoid the SFxCannotImportAsParameters_DifferentWrapperName-Exception, which is thrown when importing the WSDL-file in Visual Studio
by Manish_Kaushal
This tip provides a quick starter guide to create a RESTful JSON service in WCF.
by tungnt185
This tip will show you how to create a WCF service return JSON use for mobile app.
by Assil
Just one way to solve a common problem of WCF timing out
by Puresharper
How to generate basic swagger yaml description for WCF automatically on build time with Swagger4WCF .NET 4.0+
by OriginalGriff
Originally, I was going to create a simple Web Service using an ASMX file, but that appears to have been removed from Visual Studio 2010 - or at least I couldn't find it easily. So, WCF it is! I love the way technology lasts, don't you? Right, so I know nothing about WCF, tutorials here I come...
by Arthur Minduca
How to handle faults in WCF without declaring them explicitly
by Infoteam SA
Two solutions to host a self-hosted WCF Service
by WillCaptain
How to implement subcription based on WCF
by HUONG Minh-Luong
This tip explains how we can use PresentationRequestor to query presentation objects over WCF.
by Karuna_Sorate
HTTP status 404: Not Found error while accessing WCF service through an ASMX clientI have personally faced this error without any accurate reasons explained in the server's log/trace. With some trial and error, I just managed to resolve it. Here is how it worked for me.Reason 1:If you...
by Espen Harlinn
IDisposable works for WCF services
by Shine K Velayudhan
Why and How to implement KnownType Attribute in WCF Service
by Alexandr Mihalciuc
This tip shows how to inject WCF proxies into controllers using Castle Windsor Interceptors.
by babzog
Most articles I read about REST and C# apps concerned themselves with starting fresh whereas I needed to add REST to an existing application. This articles describes the process.
by Dhruti90
MVC functionalities with web service with simple integration
by Dhruti90
MVC functionalities with Web Service with simple integration
by Santhakumar Munuswamy @ Chennai
This tip explains WCF and helps understand the difference between WCF and Web Services.
by Shah Ankita
How to join table and display data using WCF Service in MVC
by Mohsen Heydari
Intercepting WCF and SOAP services for logging SOAP envelope
by Dima Zevelev
In this article I will talk about server failover and how to manage it.
by Pranay Rana
Method overloading in WCF
by Member 10409352
Issue of method overloading in WCF and solution.
by RaviAakula
Web API 2- Basics of Attribute Routing
by Chathuranga Muthukumarana
MVC and jQuery with WCF Data Service
by TalentTuner
In this article, I’ll describe how to use NetNamePipe binding in a WCF application.
by TalentTuner
In this article, I’ll describe how to use NetTcp binding in a WCF application.
by Houssem_Dellai
Developing the client and server side for a chat application.
by muralikannan_t
How to pass values from one Silverlight application to another using WCF service
by Tom Glick Philadelphia, US
POC to demonstrate passing of collections of complex objects to ASP.NET Web API Controllers.
by shahed.sohail
Passing Parameters to Success method in executeQueryAsync.
by jasonalls
The solution in this tip will enable you to delete SSL certificates programmatically when you receive the error InvalidOperationException: Found multiple X.509 certificates.
by Rahul_Bansal
Remove the ‘Anonymous Authentication’ exception that occurs at the time of WCF service (3.5 framework) hosting on IIS
by SumitJaiswal
Knowledge sharing article on WWF.
by Mahmudul Haque Azad
by jseijas2
In this tip, we will see how you make quick REST API from database defining the API in a configuration file.
by Yogesh Gulve
Return Comma Separated String using SQL
by smoore4
Run programs on remote machines without PsExec or WMI
by Bangla Gopal Surya Prakash
How to build a security layer on top of your WCF RESTful service.
by Himanshu Thawait
WCF With No config file needed – all setting in code only, No IIS – Self hosted, consume by channel factory
by Sujeet Bhujbal
How to send email using a WCF Service.
by Palash Biswas
You have a WCF Service that needs a SPN from its client But We typically use client config file to send the spn using the below code: <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttp" name="BasicEndPoint" bindingNamespace="TestNamespace" ...
by Andrii Cherednychenko
Article describes how vehicle routing problem can be solved using genetic algorithms. Performance of C# version and solution architecture are also briefly covered
by Damon Du
Dig into the WCF inside and talk about WCF communication details, including how a WCF service is hosted, how channel layer works in WCF, and how messages are transported on the internet and so on.
by Mohammad Dayyan, VahidJafari
A library for creating .Net Serializable Expressions to send via WCF services
by michael_john_talbot
I needed a small footprint, highly performant binary, reflection based serializer for the project I am working on...
by Rupali Raghavan
A simple solution that allows you to databind custom properties on your WCF objects without the need for painful Converters or custom code-behind logic.
by Kamalakumar
This is a simple chat program using WCF with NetTcp binding.
by Dav Zen
Simple and easy to use jQuery matrix 2D.
by Igor Merabishvili
Simple WCF web service to receive parameter from HTTP POST request body
by venugopalm
The underlying provider failed on Open Exception in WCF
by Kelvin Armstrong
GUI application for running SVCUtil to generate service model code
by Hrvoje Batrnek
Easy and seamless caching implementation of any virtual method in any class
by akhil khare
The-underlying-connection-was-closed--The-connection-closed-unexpectedly-in-EF-4-0
by akhil khare
The Underlying Connection Was Closed: The Connection Closed Unexpectedly in EF 4.0
by a.alghabban
How to use WCF to stream large file size over TCP
by Suniil Kumar Pal
Configuration settings need to be made to transfer large data with WCF
by Tania Jindal
In this tip, we see how DELETE HTTP verb can be used to generate a DELETE request passing data both in request Body and Uri
by #realJSOP
When you need to communicate with the app that contains your ServiceHost object, use custom events
by tungnt185
This article will guide you how to using WCF service in Windows Phone.
by Gerardo Recinto
Virtualization of RAM & Disk for high-speed, low-footprint & scalable data caching
by jerpat
How to get (almost) all your code in one place when using WCF together with Silverlight
by Anant Beriwal
How to avoid delay in Object Initialization of WCF client proxy in a Window service
by Yaron Naveh
WCF Binding Box WCF Binding Box (online)Introduction Those of you who have worked with WCF can testify that: WCF configuration is hard. WCF security configuration is hard.After a while you get used to BasicHttpBinding or WSHttpBinding. But then comes a service which...
by Deependra Sampang
Usage of WCF for sending messages, WAS binding of MSMQ message queue for processing of messages, fail-over set up for MSMQ server
by Prasad Agarmore
Datacontract channelfactory WCF way of consuming SOAP web services written in C, C++ using gSoap framework on Linux platform
by NikStar
Using OutgoingMessageProperties and OperationContextScope to implement authorization by http header for WCF client that communicates with non WCF-based web services.
by A Mahesh
In WCF, you can easily create custom bindings using configuration and custom implementations.
by Omar Al Zabir
WCF does not support Compression out of the box, so fix it
by Sujeet Bhujbal
A practical example of a WCF service for inserting , Deleting and Displaying Data using a WCF Service in ASP.NET
by Jon Paugh
WCF slow to respond
by Valentino_Lokesh
This tip explains how to POST different kinds of data (string, XML, JSON or bytes) to a Single WCF REST Operation.
by SSBO
Receive raw XML in WCF service
by Member 11832771
Hosting WCF REST Service on Windows Service
by sandeep12jain
WCF Restful Service Authentication without SSL Certificate
by mozwizard
Out of frustration comes simplicity ...
by bclegg
Converting a synchronous WCF contract to an asynchronous one
by Kumar_Jitendra
Expose an Entity Framework class entity as a data contract.
by mehr4n mousavi
What is KnownType attribute and how to use it