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
4 answers

WebServiceHostFactory and IIS authentication

I encounter a problem with using the WebServiceHostFactory in IIS. "IIS specified authentication schemes 'IntegratedWindowsAuthentication, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid…
Graham Ambrose
  • 1,891
  • 2
  • 13
  • 17
11
votes
2 answers

How can I deploy my WCF Service without IIS?

I'm doing some quick Java-.NET interop and have decided on POX with WCF. However, I don't want to -- nor have access to -- deploy to IIS. Would just wrapping it up as a .NET Service be the way to go? (I've built my fair share of Windows services…
taudep
  • 2,871
  • 5
  • 27
  • 36
11
votes
4 answers

How to stop WCF Test Client from randomly start when debugging?

We have a WCF service (setup to use IIS Express in VS2010 SP 1) that we start up for debugging. Most (95%) of the time it will just startup and sit there running/waiting. 5% of the time though it will decide to start the WCF Test Client which if…
Shane Courtrille
  • 13,960
  • 22
  • 76
  • 113
11
votes
0 answers

C#: How to invoke a SOAP service requiring client-side authentication with certificates installed at runtime

I have an application deployed to IIS that needs to invoke a SOAP service. It's using WCF from .NET Framework. That SOAP service requires that requests made be authenticated with a client-side certificate which is given at runtime. Admin users of…
peterguim
  • 111
  • 3
11
votes
2 answers

Powershell: Error consuming WCF services with MTOM message encoding

I'm currently exploring powershell capabilities, but I have encountered a problem that I have not been able to solve. Any quick tips would be greatly appreciated =) My goal: Invoke methods from a WCF service (configured with MTOM message encoding)…
Tung
  • 5,334
  • 1
  • 34
  • 41
11
votes
1 answer

View Complete WCF response on error using Visual Studio 2010

In Visual Studio 2010 I get an error which tells me the first 1024 bytes of a response from a WCF service when consumed, but no more. I would really like to see the entire response so I can work out what is going wrong, where can I get this info…
11
votes
1 answer

Could not load file or assembly App_Web_xxxxxxxx or one of its dependencies

The full error is: Could not load file or assembly 'App_Web_xxxxxxxx, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. Where xxxxxxxx is the ASP.Net generated temp…
Kram
  • 4,099
  • 4
  • 39
  • 60
11
votes
2 answers

How to send DateTime parameters to WCF DataService

I have simple function on the DataService that get DateTime parameter [WebGet] public IQueryable LoadJobsByDate(DateTime startDate, DateTime endDate) { var context = this.CurrentDataSource; var jobs = from j in context.Jobs …
shlomi
  • 111
  • 1
  • 1
  • 3
11
votes
3 answers

How should I handle user identity for a Window Phone / WCF / ASP.NET MVC application?

I'm working on an application which allows data entry and display from both a Windows Phone application and an MVC 3 web interface. Data access for the phone client is via authenticated WCF services hosted in the MVC 3 application. Users will be…
Jon Galloway
  • 52,327
  • 25
  • 125
  • 193
11
votes
5 answers

How to determine that a WCF Service is ready?

I have the following scenario: My main Application (APP1) starts a Process (SERVER1). SERVER1 hosts a WCF service via named pipe. I want to connect to this service (from APP1), but sometimes it is not yet ready. I create the ChannelFactory, open it…
Jaster
  • 8,255
  • 3
  • 34
  • 60
11
votes
4 answers

Change return type of a function in WCF without changing interface return type

I'm working on an old WCF service with many interfaces and services for a new system. I want to change return type of functions without changing all service interfaces and implementations as follow: interface OperationResult { ErrorInfo Error {…
BigBoss
  • 6,904
  • 2
  • 23
  • 38
11
votes
5 answers

WCF REST Service JSON Post data

Looking for some guidance on a wcf 4 rest service which is based on the WCF REST Template 40(CS) extension in VS2010. I've spent the last couple of days trying to get this bugger to work, reviewing other posts, and while I've gotten close, I can't…
Grogh
  • 349
  • 1
  • 2
  • 10
11
votes
1 answer

Creating testable WCF service without OperationContext

I've implemented a subscribe/publish (for my own enjoyment) WCF service which works reasonably well. Like all blogs and books I've seen they all use OperationContext to get the clients callback address. After a bit of reading, due to many people…
gcso
  • 2,315
  • 3
  • 28
  • 50
11
votes
8 answers

WCF Web Service error: "Service endpoint binding not using HTTP protocol"?

I've got a simple WCF service that has worked fine while I've been testing on my dev machine. Now I've moved the web service to a web server, and I'm running the service (in debug mode) at http://mydomain.com:8005. Opening a web browser to that URL…
Shaul Behr
  • 36,951
  • 69
  • 249
  • 387
11
votes
1 answer

"Service X has zero application endpoints" unless I add an endpoint in code - why?

I followed this MSDN article to create a WCF service hosted in a managed NT service thoroughly. When I click "Start" in services console I then see the following in Event Viewer: Service cannot be started. System.InvalidOperationException: Service…
sharptooth
  • 167,383
  • 100
  • 513
  • 979