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
1 answer

Error connecting to WCF service with Windows security

I have a client connecting to a WCF service using the following on both endpoints: This works in my dev environment (both running locally) and the negotiation works…
mortware
  • 1,910
  • 1
  • 20
  • 35
10
votes
2 answers

Where is the startup method of a WCF Service?

I need to run some methods before the first call of a wcf service, where do i put those methods? Where is the startup method of a WCF Service? Obs1: my WCF Service will run on a IIS6. Obs2: i'm using .net framework 4.0.
Vinicius Ottoni
  • 4,631
  • 9
  • 42
  • 64
10
votes
1 answer

Calling WCF service by VBScript

There is a WCF service with configuration:
Alex
  • 321
  • 1
  • 5
  • 14
10
votes
1 answer

How to emit bare XML for a [WebGet] method in WCF?

How can I define a [OperationContract] [WebGet] method to return XML that is stored in a string, without HTML encoding the string? The application is using WCF service to return XML/XHTML content which has been stored as a string. The XML does not…
Doug Domeny
  • 4,410
  • 2
  • 33
  • 49
10
votes
3 answers

Is MVC RESTful by design

Does MVC have to be RESTful? Is there a way to make a SOAP service using MVC pattern? Would the input request actually go into the View first and then into the Controller then the Model eg: Request -> View -> Controller -> Model but in doing so,…
Seph
  • 8,472
  • 10
  • 63
  • 94
10
votes
2 answers

JSON parameter size limit

I am calling my WCF Web service using jQuery $.ajax json POST. One of the input parameters is very long - over 8000 bytes. The data in it is a comma-separated list of GUIDs, like this…
Dmitri Mogilevski
  • 426
  • 1
  • 5
  • 7
10
votes
3 answers

Update Service Reference insist on adding Soap12 to Config.

When I update a Service Reference I end up with : An endpoint configuration section for contract 'MyService.MainServiceSoap' could not be loaded because more than one endpoint configuration for that contract was found. Please indicate the preferred…
Bart Calixto
  • 19,210
  • 11
  • 78
  • 114
10
votes
3 answers

C# 4.0 WCF REST JSON - HTTP GET CODE 400 Bad Request

When trying to create a simple service to return a simple JSON string by following several tutorials. I get stuck on two different machines with a HTTP Statuscode 400 bad request. Example tutorials RESTful WCF Service with JSON pt.1 & pt.2 -…
user1087261
  • 113
  • 1
  • 1
  • 6
10
votes
2 answers

WCF: How can I programmatically recreate these App.config values?

I have a WCF service that works ok if I create the service without specifying any binding or endpoint (it reads it from the generated values in the App.config when I registered the WCF via Visual Studio). I have a simple method that returns the…
Martin Marconcini
  • 26,875
  • 19
  • 106
  • 144
10
votes
4 answers

wcf json web service

What is the best way to create a JSON web service? We have another team that is using Java and they insist to having all communication done using JSON. I would prefer to use WCF rather than any 3rd party framework. I found this blog:…
Grzenio
  • 35,875
  • 47
  • 158
  • 240
10
votes
5 answers

Entity Framework, WCF & updates

I have created an n-tier solution where I am retrieving related data from a WCF service, updating it within a Windows Forms application, and then returning the updated data via WCF to be persisted to the database. The Application, WCF Service and…
Martin Robins
  • 6,033
  • 10
  • 58
  • 95
10
votes
1 answer

Linq & Paging - Unable to return paged data with an OrderBy

I've been trying to implement a simple paging system on a WCF service I've written that uses Linq To SQL To query a database but seem to be going from one problem to another. I want the WCF Service to return a list of this…
GrandMasterFlush
  • 6,269
  • 19
  • 81
  • 104
10
votes
2 answers

How to consume a WCF service with SSRS 2008 R2

Are there any good tutorials available for querying for WCF services from within SSRS? My WCF service is running fine, but when I try to query it from SSRS, I get contract mismatch exceptions. Some Googling suggests that querying WCF services in…
Vishal Bardoloi
  • 652
  • 5
  • 18
10
votes
2 answers

WCF BodyStyle WrappedRequest doesn't work for incoming JSON param?

I've been working on getting a RESTful WCF service to both accept a JSON as a parameter and return some JSON. This is my service: [OperationContract] [WebInvoke( Method="POST", BodyStyle =…
adamwtiko
  • 2,865
  • 8
  • 39
  • 47
10
votes
2 answers

ConfigurationErrorsException: This element is not currently associated with any context

I am getting strange exception which seems to me is related to WCF configuration object but what is wrong is completely unclear to me A first chance exception of type 'System.Configuration.ConfigurationErrorsException' occurred in…
Captain Comic
  • 15,744
  • 43
  • 110
  • 148
1 2 3
99
100