Questions tagged [wcf-binding]

The configuration of encoding, protocol and transport detailing how WCF services and clients communicate with each other. This tag is for both the default system-provided bindings, and custom bindings.

A WCF binding is a combination of encoding, protocol, and transport details used by WCF web services and clients to communicate with eachother. It determines the wire representation of messages exchanged by services and clients.

WCF offers default system-provided bindings for typical combinations, e.g. for typical http or https connections. You can also create custom bindings for your application, detailing non-default options for encoding, transport, and protocol.

References

1642 questions
389
votes
35 answers

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 'IMySOAPWebService' in the ServiceModel client configuration…
edosoft
  • 17,121
  • 25
  • 77
  • 111
313
votes
3 answers

BasicHttpBinding vs WsHttpBinding vs WebHttpBinding

In WCF there are several different types of HTTP based bindings: BasicHttpBinding WsHttpBinding WebHttpBinding What are the differences among these 3? In particular what are the differences in terms of features / performance and compatability?
Mubashar
  • 12,300
  • 11
  • 66
  • 95
120
votes
2 answers

What is the difference between a WCF Service Application and a WCF Service Library?

I am developing a WCF web service and I used the WCF Service Application template to do that. Does creating a "WCF Service Application" fulfill this requirement? What are the advantage of creating a WCF Service Library over a WCF Service…
Ashish Ashu
  • 14,169
  • 37
  • 86
  • 117
92
votes
24 answers

This could be due to the service endpoint binding not using the HTTP protocol

I have a WCF Service running fine on my local machine. I put it on the servers, and I am receiving the following error: An error occurred while receiving the HTTP response to http://xx.xx.x.xx:8200/Services/WCFClient.svc. This could be due to…
Matt Schubert
  • 1,003
  • 1
  • 10
  • 12
75
votes
2 answers

How to programmatically connect a client to a WCF service?

I'm trying to connect an application (the client) to an exposed WCF service, but not through the application configuration file, but in code. How should I go about doing this?
Alex
  • 7,432
  • 20
  • 75
  • 118
63
votes
3 answers

net.pipe vs. net.tcp vs. http Bindings

I'm new to WCF and would like to know the differences/advantages/limitations/etc of each of the following bindings: net.pipe net.tcp http Supporting scenarios on when to use each binding and other examples would be appreciated.
Aaron
  • 2,427
  • 4
  • 30
  • 41
61
votes
3 answers

Timeouts WCF Services

How do the timeouts work in WCF? I know for example that you can configure sendTimeout and receiveTimeout for a clients binding. But how do they work? MSDN describes sendTimeout as: A TimeSpan value that specifies the interval of time provided for…
TruckerG
  • 1,289
  • 1
  • 13
  • 14
44
votes
10 answers

WCF error: The caller was not authenticated by the service

I am trying to access my WCF service on a server from my client console application for testing. I am getting the following error: The caller was not authenticated by the service I am using wsHttpBinding. I'm not sure what kind of…
Blankman
43
votes
5 answers

WCF change endpoint address at runtime

I have my first WCF example working. I have the host on a website which have many bindings. Because of this, I have added this to my web.config. This is my default binding…
Valamas
  • 24,169
  • 25
  • 107
  • 177
42
votes
10 answers

WCF over SSL - 404 error

Okay, I must be missing something utterly simple here, because I've been googling for days, and looking at dozens of answers there, and here on SO, and i just CANNOT get this to work, no matter what i've tried. The service works perfectly fine when…
eidylon
  • 7,068
  • 20
  • 75
  • 118
41
votes
6 answers

Error in Protocol Mapping While hosting a WCF service in IIS

I developed a simple WCF service with VS 2010. And i hosted in the default website in IIS by Adding Application and set the Physical Path And i tried to browse the .svc file it gives me the following error: "The configuration section…
Amr Ramadan
  • 1,259
  • 5
  • 18
  • 29
40
votes
2 answers

basicHttpBinding vs wsHttpBinding

In a WCF endpoint, what is the difference between basicHttpBinding and wsHttpBinding? When should each be used?
Craig Schwarze
  • 11,367
  • 15
  • 60
  • 80
40
votes
3 answers

What is the maximum size that maxReceivedMessageSize can be set to for a NetNamedPipeBinding?

I noticed that 2147483647 seems to be a popular choice for maxReceivedMessageSize but is this the limit?
Nick
  • 3,217
  • 5
  • 30
  • 42
38
votes
15 answers

WCF Service, the type provided as the service attribute values…could not be found

When I right click on Eval.svc within Visual Studio 2012 and view in browser, I get the following - The type 'EvalServiceLibary.Eval', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element…
dynamicuser
  • 1,522
  • 3
  • 24
  • 52
37
votes
10 answers

Using netsh, bind an SSL certificate to a port number is failing

I have followed the instructions in SSL with Self Hosted WCF Service. When I am trying to bind the certificate on Windows 7 using netsh as described in How to: Configure a Port with an SSL Certificate., it is failing as follows. In Windows…
Win Myo Htet
  • 5,377
  • 3
  • 38
  • 56
1
2 3
99 100