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
10
votes
2 answers

WCF REST Service - 401 Unauthorized

We're in the process of developing a WCF REST web service which just receives a bunch of arbitrary text from any anonymous user and then performs some processing on the back end. For example, here's one method from our web…
Jacobs Data Solutions
  • 4,850
  • 4
  • 33
  • 38
10
votes
2 answers

Turn based Multi-player Game: WCF or Socket?

I would like to have an advice regarding my problem. We are creating a multi-player internet chess game having these features: Game will support a very huge amount of concurrent users We will be saving each game move physically on disk (e.g. using…
sallushan
  • 1,134
  • 8
  • 16
10
votes
3 answers

How to run WcfTestClient from Visual Studio 2022?

I have installed VS 2022, I need to use the WcfTestClient to test my service. But I cannot find it. It used to be in the below location in VS 2019. C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE
Vivek Nuna
  • 25,472
  • 25
  • 109
  • 197
10
votes
4 answers

Consuming WCF from jQuery as JSON

With a contract: namespace ACME.FooServices { [ServiceContract] public interface IFooService { [OperationContract] [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, …
Bullines
  • 5,626
  • 6
  • 53
  • 93
10
votes
2 answers

How to specify AddressFilterMode.Any declaratively

There are lots of answers stating that AddressFilterMode.Any needs to be added as a code attribute when you can create an extension behavior for WCF that does the same thing. How can you specify AddressFilterMode.Any programmatically
Richard Collette
  • 5,462
  • 4
  • 53
  • 79
10
votes
2 answers

Are requests to a WCF service hosted by WAS authenticated by IIS processing pipeline or ...?

Following questions assume we're hosting in WAS a WCF service side by side with Asp.Net: "When hosting WCF side by side with Asp.Net - The WCF hosting infrastructure intercepts WCF requests when the PostAuthenticateRequest event is raised and…
user702769
  • 2,435
  • 2
  • 25
  • 34
10
votes
3 answers

Problems with the Using Statement and WCF client

I've been wrapping all the code that invoke WCF calls within an using statement in a thought that the object will be disposed properly. When I'm googling for an exception "Http service located at .. is too busy" I found this link…
VJAI
  • 32,167
  • 23
  • 102
  • 164
10
votes
1 answer

WCF Service dies on its own after some time

I am facing a peculiar problem related to a hosted WCF service (.NET Framework 4, IIS 7, Windows 2008 Standard SP2). After I deployed the service it works fine for some time and it dies on its own by throwing a file not found exception. The…
Anil S
  • 133
  • 1
  • 9
10
votes
3 answers

JQuery/WCF without ASP.NET AJAX:

I am proper struggling getting that "magic" moment when WCF is configured nicely and jQuery is structuring its requests/understanding responses nicely. I have a service: <%@ ServiceHost Language="C#" Debug="true"…
Program.X
  • 7,250
  • 12
  • 49
  • 83
10
votes
2 answers

RAISERROR―How to distinguish with SqlException?

I have some 3-4 stored procedures ― which I can modify if needed ― that use RAISERROR to inform my application of some fatal errors on the database side. Some of these stored procedures are executed from the C# side with ExecuteNonQuery, while…
User
  • 3,244
  • 8
  • 27
  • 48
10
votes
1 answer

RESTful WCF service returns "endpoint not found" error on POST operations

I've built a WCF service that's exposed both through SOAP and RESTfully. All SOAP actions work as advertised. GETS/PUTS do as well, but when I try to do a POST to an action in my service, I get the following error returned: "Endpoint not…
joshua.ewer
  • 3,944
  • 3
  • 25
  • 35
10
votes
2 answers

WCF OperationContract - What's the point of Action and ReplyAction?

[ServiceContract(Namespace = "http://schemas.mycompany.com/", Name = "MyService")] public interface IMyService { [OperationContract(Name = "MyOperation") OperationResponse MyOperation(OperationRequest request); } In this scenario, what is…
michael
  • 14,844
  • 28
  • 89
  • 177
10
votes
2 answers

Passing an array to WCF service via GET

I have an AJAX call that I want to run against a WCF GET service. Basically, the call to the service (via jquery) looks like this: $.get(serviceEndpoint, {query : "some search text", statusTypes: [1, 2]}, function (result) { /* do something*/ },…
ddango
  • 946
  • 1
  • 12
  • 25
10
votes
1 answer

How to consume WCF service programmatic in .Net core 3.1 version

I have a WCF service, which was developed using the .Net framework 4.7. Now I have to validate & Parse the WCF Service programmatically using .Net Core3.1 Web Application without adding the WCF Service as a Service Reference/Add Connected Service…
user3237193
  • 137
  • 1
  • 1
  • 7
10
votes
4 answers

What are WCF Proxies and what are they good for?

I have recently been educating myself about WCF and I have even written some production services using WCF. But I have never really looked too much into WCF until recently. I am aware of the idea of the "proxy" design pattern. I am also aware of the…
TheJediCowboy
  • 8,924
  • 28
  • 136
  • 208
1 2 3
99
100