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

Configure WCF service client with certificate authentication programmatically

How do i setup a ServiceClient using Certificate authentication programmatically in c#? And i don't want to use .config. using(var srv = GetServiceInstance()) { srv.DoStuff() } private TheServiceClient…
espvar
  • 1,045
  • 5
  • 16
  • 28
11
votes
2 answers

WCF Discovery .NET 4: Problem with config / programmatically definition

i have a discovery enabled WCF service and now i want to connect the client to it. Problem: When i use the udp endpoint ( 1. ) and try to programmatically discover the service, it works... When i use the App.config approach ( 2. ) it does not (…
David
  • 2,551
  • 3
  • 34
  • 62
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
2 answers

WCF sessions with a wsHttpBinding and without windows security

I need to create a WCF service that is hosted in IIS, uses http transport and hold state in the server’s memory. While I’m aware that stateful services aren't a good idea, this last constrain is necessary to make the service work with a legacy…
Robert
  • 6,407
  • 2
  • 34
  • 41
11
votes
1 answer

How to change the default schemalocation in wsdl file of WCf Service?

Following is the wsdl file of my service:
Googler
  • 525
  • 3
  • 12
  • 30
11
votes
4 answers

How to add net.tcp to the "Enabled protocols" by using a WIX 3.5 project/setup?

We have a few MSI packages (generated by WIX) that install WCF services. Most of these services need net.tcp for their endpoint bindings. I'd like to make our deployment life easier and automate the process of adding net.tcp. I already know the…
DonKotlino
  • 173
  • 1
  • 2
  • 8
11
votes
1 answer

ContractFilter mismatch at the EndpointDispatcher?

Here i am calling the method from the hosted RESTful service in my browser https://eshop/LinkService/LinkService.svc/GetStudentObj and getting the following error The message with Action '' cannot be processed at the receiver, due to a…
bala3569
  • 10,832
  • 28
  • 102
  • 146
11
votes
1 answer

Getting an error: Contract requires Duplex, but Binding 'BasicHttpBinding' doesn't support it or isn't configured properly to support it

I have a WCF service and a Silverlight 5 client. I've defined the following interfaces: [ServiceContract(Namespace = "Silverlight", CallbackContract = typeof(IDuplexClient))] public interface IDuplexService { [OperationContract] void…
assafmo
  • 1,047
  • 3
  • 15
  • 32
11
votes
2 answers

Consuming a WCF WsHttpBinding WebService in Java

I'm trying to get a Java Client to communicate with a WCF wshttpbinding WebService. But I am unable to do so. The call either hangs, or I get "musunderstoodheader expcetions". My Web Service is just the default Visual Studio generated "WCF Service…
vicsz
  • 9,552
  • 16
  • 69
  • 101
10
votes
2 answers

WCF: How can I programmatically recreate these App.config values?

I have a WCF service that works ok if I create the service without specifying any binding or endpoint (it reads it from the generated values in the App.config when I registered the WCF via Visual Studio). I have a simple method that returns the…
Martin Marconcini
  • 26,875
  • 19
  • 106
  • 144
10
votes
2 answers

Why is my WCF Service not loading my Binding config?

I have the problem with the following error: "The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element." So I did some research…
MisterIsaak
  • 3,882
  • 6
  • 32
  • 55
10
votes
4 answers

Expose webHttpBinding endpoint in a WCF service

I created a WCF service and exposed three endpoints which are basicHttpBinding, wsHttpBinding and webHttpBinding. This is a test service for my experiments with WCF. But, whenever I add service reference using the .svc file, I only get two (basic…
decyclone
  • 30,394
  • 6
  • 63
  • 80
10
votes
4 answers

(401) Unauthorized error : WCF security/binding

I have a WCF web service, and a client both on the same machine. Accessing the WCF web service directly using the browser works, but the client can't connect; error message below. Any ideas? Integrated Windows Auth in IIS is used for both client and…
xt_20
  • 1,406
  • 3
  • 13
  • 27
10
votes
3 answers

WCF: The maximum array length quota (16384) has been exceeded while reading XML data

I know this has been asked quite a few times, and trust me I've been looking at and trying many of them for half the afternoon, but still cannot get past this. I'm trying to submit some form contents (which can also include an attachment) over a web…
David C
  • 2,766
  • 6
  • 29
  • 44
10
votes
1 answer

Encode and Decode content-type 'application/soap+msbin1' for use with HttpWebRequest/HttpWebResponse in C#.NET

I have searched high and low looking for a simple class or set of functions to encode and decode the content type 'application/soap+msbin1' My end goal is to be able to use HttpWebRequest and HttpWebResponse to interact with a webserver running a…
jroberts
  • 449
  • 1
  • 5
  • 13