Windows Communication Foundation is a part of the .NET Framework that provides a unified programming model for rapidly building service-oriented applications.
309
votes
10answers
106k views
Best Practices for securing a REST API / web service
When designing a REST API or service are there any established best practices for dealing with security (Authentication, Authorization, Identity Management) ?
When building a SOAP API you have ...
229
votes
5answers
103k views
REST / SOAP endpoints for a WCF service
I have a WCF service and I want to expose it as both a RESTfull service and as a SOAP service.
Anyone has done something like this before?
164
votes
22answers
110k views
Could not find default endpoint element
I've added a proxy to a webservice to a VS2008/.NET 3.5 solution. When constructing the client .NET throws this error:
Could not find default endpoint
element that references contract
...
149
votes
18answers
29k views
What is the best workaround for the WCF client `using` block issue?
I like instantiating my WCF service clients within a using block as it's pretty much the standard way to use resources that implement IDisposable:
using (var client = new SomeWCFServiceClient())
{
...
145
votes
6answers
83k views
Collection was modified; enumeration operation may not execute
I can't get to the bottom of this error, because when the debugger is attached, it does not seem to occur. Below is the code.
This is a WCF server in a Windows service. The method NotifySubscribers ...
124
votes
8answers
76k views
WCF - How to Increase Message Size Quota
I have a WCF Service which returns 1000 records from database to the client. I have a ASP.NET WCF client - (I have added service reference in asp.net web application project to consume WCF). I get the ...
109
votes
3answers
66k views
WCF vs ASMX web service
I am totally confused between WCF and ASMX web services. I have used a lot of web services in my earlier stage and now there is this new thing introduced called WCF. I can still create WCF that ...
106
votes
4answers
57k views
How do I return clean JSON from a WCF Service?
I am trying to return some JSON from a WCF service. This service simply returns some content from my database. I can get the data. However, I am concerned about the format of my JSON. Currently, the ...
96
votes
4answers
58k views
WCF Error: This collection already contains an address with scheme http
I built a web application containing a wcf service contract and a silverlight control which makes calls to that wcf service. On my development and test servers it works great. When I deploy to our ...
88
votes
33answers
75k views
The breakpoint will not currently be hit. No symbols have been loaded for this document
Ok, what i have:
Visual Studio 2010 RC, W7 x64, started a new project type of Silverlight application. Hosting the Silverlight application in a ASP.NET Web Application Project. Silverlight Version ...
74
votes
6answers
74k views
The provided URI scheme 'https' is invalid; expected 'http'. Parameter name: via
I am trying to make a WCF service over basicHttpBinding to be used over https. Here's my web.config:
<service behaviorConfiguration="MyServices.PingResultServiceBehavior"
...
71
votes
15answers
9k views
WCF: WTF! Does WCF raise the bar or just the complexity level?
I understand the value of the three-part service/host/client model offered by WCF. But is it just me or does it seem like WCF took something pretty direct and straightforward (the ASMX model) and made ...
67
votes
8answers
43k views
How to add a custom header to every WCF calls?
I have a WCF service that is hosted in a Windows Service. Clients that using this service must pass an identifier every time they're calling service methods (because that identifier is important for ...
67
votes
5answers
45k views
Difference between web reference and service reference?
What is the difference between web reference and service reference in WCF?
Which is preferable in WCF?
66
votes
9answers
7k views
WCF for the totally clueless [closed]
I've been hearing about WCF for a couple of years now, and I still don't get it. I understand that it's supposed to be a replacement for web services, remoting, MSMQ, and a few other things.
The ...