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
20
votes
3 answers

WCF: using streaming with Message Contracts

I am trying to use the WCF streaming with Message Contracts, because I need additional parameters beside the stream itself. Basically I am creating a file upload and download service, with some additional logic on top. Unfortunately, when I try to…
Stefano Ricciardi
  • 2,923
  • 3
  • 33
  • 40
19
votes
3 answers

How can I set the receiveTimeout and sendTimeout to infinity with this WCF contact?

I have the following app.config in my Host:
Ryan R
  • 8,342
  • 15
  • 84
  • 111
19
votes
2 answers

What happens if I set HttpGetEnabled = false

I am confused with Metadata publish concept. If in a WCF Service config file I had written : No matter it is true or false. When I tried to give service reference in a client application using "Add…
Anil Purswani
  • 1,857
  • 6
  • 35
  • 63
19
votes
5 answers

WCF Error : 'It is likely that certificate 'my cert' may not have a private key that is capable of key exchange

I have a WCF service I'm trying to host on our production web server (IIS6). I've set the web up and tied our cert to the web. When I try to browse to the service url, I receive the following error in the event log : The exception message is: It is…
Bill Martin
  • 4,825
  • 9
  • 52
  • 86
18
votes
8 answers

The content type application/xml;charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8)

I trying to consume a WCF web service using stand alone application. I am able to view this service using Internet Explorer also able to view in Visual studio service references. This is the error I am getting The content type text/html;…
level_zebra
  • 1,503
  • 6
  • 25
  • 44
18
votes
3 answers

Error "This message cannot support the operation because it has been read"

I have the same problem that is listed in the following thread. WSDL first WCF server where client does not send SOAPAction I performed the steps that are listed in the same thread (also shown below) 1) Download the Microsoft WCF examples. Add the…
Jyina
  • 2,530
  • 9
  • 42
  • 80
17
votes
3 answers

Using protobuf in WCF services

My asp.net web pages are on IIS web server and it communicates with WCF services(sitting on windows 2008 app server) using basic HTTP binding. The performance of my wcf services doesnt seem to be that good and I want to improve the same.Also, I need…
Steve Chapman
  • 1,317
  • 4
  • 23
  • 34
17
votes
2 answers

XDocument.Descendants() not returning any elements

I'm trying to bind a Silverlight DataGrid to the results of a WCF service call. I was not seeing the data displayed in the grid, so when I ran through the debugger, I notice that XDocument.Descendants() was not returning any elements even when I was…
Kevin Babcock
  • 10,187
  • 19
  • 69
  • 89
17
votes
5 answers

WCF: How to get Binding object from configuration

I would like to get Binding object from web.config or app.config. So, this code works: wcfTestClient = new TestServiceClient("my_endpoint", Url + "/TestService.svc"); but I would like to do the following: Binding binding =…
bh213
  • 6,343
  • 9
  • 43
  • 52
17
votes
2 answers

WCF: Multiple binding configurations for a single service

I'm working on a client-server application (.NET 4 WPF, WCF) that must support backwards compatibility. In other words, old clients should be compatible with new servers (and vice versa) as far as operation contracts and data contracts. Our WCF…
John Russell
  • 2,177
  • 4
  • 26
  • 47
17
votes
5 answers

netTcpBinding or wsHttpBinding

I have a WCF Service hosted as Windows Service and client is an ASP.Net application consuming WCF Service methods. In process of implementing security, I am confused over which among netTcpBinding/wsHttpBinding will be suitable for my case. Most…
inutan
  • 10,558
  • 27
  • 84
  • 126
17
votes
2 answers

Azure Service Bus Relay - Enabling Compression

We are having speed issues while using the Azure Service Bus Relay with both netTcpRelayBinding and basicHttpRelayBinding. With small message sizes (10K), the relay operates with low latency (100ms), but as the message size increases (100K) we…
SliverNinja - MSFT
  • 31,051
  • 11
  • 110
  • 173
16
votes
1 answer

How to transfer MemoryStream via WCF Streaming

I am planning to pass MemoryStream via WCF Streaming but it seems not working but when I slightly change the code to pass FileStream instead, it is working. In fact, my purpose is to pass large collection of business objects (serializable). I am…
Thurein
  • 2,536
  • 7
  • 34
  • 49
16
votes
5 answers

Dynamic endpoints in ServiceReferences.ClientConfig

When building an app, it is often deployed in different environments (test, dev, prod), and therefore the endpoint addresses are changing. As the ServiceReferences.ClientConfig is built as a part of Silverlight's .xap file, its hard to change the…
randoms
  • 2,793
  • 1
  • 31
  • 48
16
votes
4 answers

WCF Bindings - so many! How do I choose one?

We have an R Server (R is a programming language used in statistical analysis) that basically takes a script and a csv file, processes some data and returns results as text. I need to write a service on the R server so that .net clients (could be…
Calanus
  • 25,619
  • 25
  • 85
  • 120