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

wcf net.tcp using SSL

Has anyone had experience using SSL with net.tcp binding in WCF? Ive read its possible, but not finding good information on how to implement it. I would love to hear from anyone who knows about or who has implemented this. Thanks in advance...
schmoopy
  • 6,419
  • 11
  • 54
  • 89
11
votes
1 answer

Execute code before (EVERY) Web API action

I have a Web API interface I'm trying to adapt to a multi-tenant architecture. Previously, we had a WCF mode whereby we passed a parameter, client ID, to the service, which then stored this for use in the code later. This meant that Client ID didn't…
Chris B. Behrens
  • 6,255
  • 8
  • 45
  • 71
11
votes
3 answers

Why am I getting this error suddenly?

So I have a WCF service, inside which there's a Process() method. This method reads a byte array (a file) from one table, and basically puts that data from that file into multiple tables. It just iterates through each row. It was working fine since…
karan k
  • 947
  • 2
  • 21
  • 45
11
votes
3 answers

WCF Windows Service - Long operations/Callback to calling module

I have a Windows Service that takes the name of a bunch of files and do operations on them (zip/unzip, updating db etc). The operations can take time depending on size and number of files sent to the service. (1) The module that is sending a request…
A9S6
  • 6,575
  • 10
  • 50
  • 82
11
votes
1 answer

Consuming Java Webservice with Date and Time elements in WCF

I need to consume a Java Webservice which has elements of type Date and Time. Example from the wsdl: ... ... When consuming the…
Thomas
  • 2,137
  • 1
  • 17
  • 38
11
votes
6 answers

What's the best way to send generic repository via WCF?

I have a repository like this : public abstract class DbRepository : IDbRepository { public TEntity Insert(TEntity entity) where TEntity : class { _context.Entry(entity).State = EntityState.Added; return entity; …
ThomasBecker
  • 388
  • 6
  • 20
11
votes
5 answers

401 Client 'Negotiate', Server 'Negotiate,NTLM' When Calling WCF Server to Server

Ok, I've read every thread & question I can find with this error and surprisingly have not found a solution. I'm trying to require Windows authentication on my IIS hosted WCF service (.NET 4.0) which, until now, has been optional. I have had a…
xr280xr
  • 12,621
  • 7
  • 81
  • 125
11
votes
3 answers

Creating a singleton ChannelFactory and reusing for client connections

In our SharePoint/ASP.NET environment we have a series of data retriever classes that all derive from a common interface. I was assigned the task of creating a data retriever that could communicate remotely with other SharePoint farms using WCF. The…
11
votes
3 answers

IIS Express Error http 404.17 – not found running a WCF service

I just created a WCF Service Application in VS2013 with framework 3.5. for exposing some methods I have in a class library project. Everything went fine but when I tried to see if the service runs, it doesn't. Instead I got the next error. HTTP…
Ricker Silva
  • 1,137
  • 4
  • 17
  • 37
11
votes
1 answer

WCF Test Client breaks a string value and then concatenates the 2 parts together again

I've written a simple SOAP service which returns an object having among others a data member of type string. Everything works just fine when i consume the service through a written test client, however when I test the service through the Visual…
user3364673
  • 111
  • 4
11
votes
3 answers

WCF Service for many concurrent clients and database access

I'm new to WCF services and wondered what the best way to tackle the following would be. I have many clients (~200 - ~500) that are all making requests of my service fairly constantly during the working day. Most requests involve interrogation of an…
Andy
  • 183
  • 1
  • 1
  • 7
11
votes
3 answers

WCF Service Reference does not reuse types in existing assemblies (VS 2010 Beta 2)

I'm looking for the best approach to share types (the actual classes, not proxies) between a WCF service and a client. To that end, I defined the classes in a separate assembly that both service and client reference. I selected "Reuse types in all…
Eric J.
  • 147,927
  • 63
  • 340
  • 553
11
votes
2 answers

Passing complex objects into a WCF Rest Service

I have an Operation Contract that accepts a complex object and I'm calling the operation through jQuery. How do I pass in a complex type object like that using jQuery. Below is the operation signature: public Resolution…
Brandon Michael Hunter
  • 1,179
  • 3
  • 20
  • 48
11
votes
2 answers

Alternative to HttpContext when using NInject with a WCF Service Hosted in WAS using MSMQ binding

I have a one way WCF service using the MSMQ Binding which is activated using Windows Activation Service in IIS 7.0. I'm a big fan on NInject so I've been using the NInject extension for WCF, which for a typical HTTP WCF service would work great.…
Ray Wits
  • 123
  • 1
  • 5
11
votes
3 answers

Cannot update or delete after migrating EntityFramwork 6 and VS 2013 in WCF Data Service application

After migrating to EntityFramework and VS 2013, I can't update or delete a ressource. Request URL:service.svc/Orders(22354) Request Method:DELETE Status Code:500 Internal Server Error Request Headersview source Accept:application/json,…
nboukeffa
  • 127
  • 1
  • 9