Questions tagged [wcf]

Windows Communication Foundation is a part of the .NET Framework that provides a unified programming model for rapidly building service-oriented applications.

According to the Microsoft Developer Center:

Windows Communication Foundation (WCF) is a part of the .NET Framework that provides a unified programming model for rapidly building service-oriented applications that communicate across the web and the enterprise.

WCF Resources

WCF is a tool often used to implement and deploy a service-oriented architecture (SOA). It is designed using service-oriented architecture principles to support distributed computing where services have remote consumers. Clients can consume multiple services; services can be consumed by multiple clients. Services are loosely coupled to each other. Services typically have a WSDL interface (Web Services Description Language) that any WCF client can use to consume the service, regardless of which platform the service is hosted on. WCF implements many advanced Web services (WS) standards such as WS-Addressing, WS-ReliableMessaging and WS-Security. With the release of .NET Framework 4.0, WCF also provides RSS Syndication Services, WS-Discovery, routing and better support for REST services.

The Windows Communication Foundation (or WCF), previously known as "Indigo", is a runtime and a set of APIs in the .NET Framework for building connected, service-oriented applications.

Endpoints

A WCF client connects to WCF service via an endpoint. Each service exposes its contract via one or more endpoints. An endpoint has an address (which is a URL specifying where the endpoint can be accessed) and binding properties that specify how the data will be transferred.

WCF Features

  • Create and consume traditional SOAP-based web services
  • Create and consume services that use the international WS-* standards
  • Create and consume services using other transports:
    • TCP/IP with binary instead of text-based XML
    • Named Pipes
    • Microsoft Message Queue (MSMQ)
  • Host a WCF Service in any application, not just in IIS
  • Host a service in IIS with any transport, not just HTTP/HTTPS
  • Create services based on Windows Workflow Foundation workflows

Important WCF Questions on Stack Overflow

50818 questions
11
votes
3 answers

WCF MaxReceivedMessageSize: maximum message size quota exceeded

I am getting this error: The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element. How can I increase this value in the…
JL.
  • 78,954
  • 126
  • 311
  • 459
11
votes
1 answer

Error when using PrincipalContext.ValidateCredentials to authenticate against a Local Machine?

I have a WCF service which contains a Login method that validates a username and password against the local machine credentials, and after a seemingly random period of time it will stop working for some users. The actual login command looks like…
Rachel
  • 130,264
  • 66
  • 304
  • 490
11
votes
3 answers

Subscribe to events within a WCF service

I have a need to do some real-time reporting on the functionality of a WCF service. The service is self-hosted in a windows app, and my requirement is to report "live" to the host app when certain methods are called by the client. My initial…
ZombieSheep
  • 29,603
  • 12
  • 67
  • 114
11
votes
1 answer

ContractFilter mismatch at the EndpointDispatcher?

Here i am calling the method from the hosted RESTful service in my browser https://eshop/LinkService/LinkService.svc/GetStudentObj and getting the following error The message with Action '' cannot be processed at the receiver, due to a…
bala3569
  • 10,832
  • 28
  • 102
  • 146
11
votes
3 answers

Where has the browser WCF test form gone?

Really liked the convenience of just firing up the web browser and typing in some values to test an ASMX web service, is this no longer possible with WCF?
JL.
  • 78,954
  • 126
  • 311
  • 459
11
votes
2 answers

Hosting WCF Services in Asp.Net MVC Project

I have a solution with 3 projects: ConsoleClient (for testing WCF service) ServiceLibrary (for WCF) Web (asp.net mvc project) I have done some settings in my ServiceLibrary project in app.config
Idrees Khan
  • 7,702
  • 18
  • 63
  • 111
11
votes
2 answers

WCF service, response in SOAP or plain XML, how?

I am struggling few hours with this and can't find a solution to the communication problem. My service need to communicate with clients via SOAP or plain XML My service will be written based on WCF framework, however my clients not. Could you show…
Wodzu
  • 6,932
  • 10
  • 65
  • 105
11
votes
5 answers

Remoting or WCF for new development (between two .NET apps on the same machine) using interfaces?

We want to have two .NET apps running on the same machine communicate with each other. We want three projects. A library containing interfaces. A "server" app that implements the interfaces and "client" app that communicates with the server using…
drs9222
  • 4,448
  • 3
  • 33
  • 41
11
votes
1 answer

Getting an error: Contract requires Duplex, but Binding 'BasicHttpBinding' doesn't support it or isn't configured properly to support it

I have a WCF service and a Silverlight 5 client. I've defined the following interfaces: [ServiceContract(Namespace = "Silverlight", CallbackContract = typeof(IDuplexClient))] public interface IDuplexService { [OperationContract] void…
assafmo
  • 1,047
  • 3
  • 15
  • 32
11
votes
1 answer

WCF Java clients and IncludeTimestamp

So recently we exposed a service to a Java client. Our service utilizes transport security along with username/password validation. When attempting to call our service the client was receiving an exception about security headers. Further research…
Jacob Rutherford
  • 584
  • 3
  • 11
11
votes
4 answers

Transaction in REST WCF service

We are having a REST WCF service. we want the save operation on this REST service to be in transaction. Is there a way to pass Transaction object over the wire to REST WCF service?
Balaji
  • 2,109
  • 5
  • 27
  • 34
11
votes
2 answers

Fire a one-way ajax call

I have a WCF service which takes a long time to process the first time it is called, and then caches those results in HttpRuntime.Cache. In order to initialize this cache I'd like to trigger a fire-and-forget ajax call from javascript. Right now I…
jbabey
  • 45,965
  • 12
  • 71
  • 94
11
votes
3 answers

Using WCF from WPF very slow on first use

I have been struggling for a few days with an issue with our WPF applications and I wonder if someone has come across this before and can help? The problem seems to boil down to the client generating "on-the-fly" a serializer to handle the types in…
Simon Evans
  • 131
  • 1
  • 6
11
votes
2 answers

Minimum files needed to deploy webAPI server side

So after a great deal of research I'm starting to enhance our service server stack with a webAPI entry point. Based on this thread, and especially the last post by a member of the Digerati board, we are implementing webAPI services as a facade into…
SASS_Shooter
  • 2,186
  • 19
  • 30
11
votes
1 answer

WCF - have client check for service availability

I have a client-server system, both sides written by me, and I would like to put the clients in an 'offline' state when the server disconnects/dies, and then automatically bring them back 'online' when the server is available again. For the first…
WillH
  • 2,086
  • 6
  • 23
  • 40