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
7
votes
1 answer

WCF Abstract base class with complex collection of abstract types not being included for deserialization in service response

We are using a base class for all of our Response DTO's in our application. The class has the following signature: [Serializable] public abstract class ResponseBase { public bool Successful { get; set; } public List
VulgarBinary
  • 3,520
  • 4
  • 20
  • 54
7
votes
5 answers

WCF Service Library with NetTcpBinding

I'm having a tough time with NetTcpBinding. When I run my WCFservice,I get this: System.InvalidOperationException: Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes…
Josh
  • 13,530
  • 29
  • 114
  • 159
6
votes
3 answers

WCF Client - How to process or ignore a MustUnderstand header element?

I'm writing a WCF Client that consumes a non-.Net web service, using WS-Security. The service's response contains a Security header with mustUnderstand set to true. Using a ServiceModelListener, I do see actual data coming back from the service. The…
Mark Maslar
  • 1,121
  • 4
  • 16
  • 28
6
votes
2 answers

WCF modifying ReaderQuotas for HttpTransportBindingElement in CustomBinding

The BasicHttpBinding class has a ReaderQuotas property that you can access to override attributes such as MaxArrayLength, MaxBytesPerRead, etc. How can I access ReaderQuotas to achieve the same thing when using an HttpTransportBindingElement within…
yogibear
  • 14,487
  • 9
  • 32
  • 31
6
votes
2 answers

WCF services by default are restful or soap based?

I am new to WCF and just have made a sample service. Please guide me by default WCF services are soap or restful if we not specify anywhere ? I tried to run URL of my services and got this page. I am feeling it is SOAP based. Kindly guide. Thanks
haansi
  • 5,470
  • 21
  • 63
  • 91
6
votes
1 answer

Equivalent custom WCF binding for basicHttpBinding with TransportWithMessageCredential security mode

I need to integrate my server with non-WCF client and suggested to change SOAP version in the headers. This can be done with element on a custom binding so i need to convert my current…
UserControl
  • 14,766
  • 20
  • 100
  • 187
6
votes
3 answers

Things to consider while calling one WCF service from another

We are migrating set of WSE services to WCF platform. The new WCF services are called over secured HTTP. (https) I want to invoke an operation contract of one WCF service from another. Both the services are mostly hosted in the same IIS, but they…
Learner
  • 4,661
  • 9
  • 56
  • 102
6
votes
1 answer

Passing Python List to WCF Service

I am trying to pass a list (or array, collection) of strings from python to a WCF service endpoint The WCF interface: [OperationContract] string[] TestList(IEnumerable vals); Binding in Web.config:
Jama
  • 295
  • 4
  • 9
6
votes
1 answer

WCF security, username password without certificate

I am new to WCF. I was used to *.asmx but it will become deprecated, so I decided to dive into WCF. I want a simple username + password authentication for my service, but everywhere on the web it's all about X509 certificates. I'd like to host my…
JP Hellemons
  • 5,977
  • 11
  • 63
  • 128
6
votes
1 answer

Can WebInvoke attributes be replaced by binding configurations

In order to get a WCF service working with JQuery I have added a WebInvoke attribute on the operation contract to control the JSON serialisation as follows: [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, BodyStyle =…
Rob West
  • 5,189
  • 1
  • 27
  • 42
6
votes
1 answer

Does setting Security Mode = Transport automatically make it secure in a HTTPS web service?

I have a web service and we're currently hosting it in a HTTPS site. My binding is this.
Diskdrive
  • 18,107
  • 27
  • 101
  • 167
6
votes
1 answer

How to add WCF IncludeExceptionDetailInFaults to Endpoint behaviors?

how do i add IncludeExceptionDetailInFaults = true; to the below code. I need to get the details of the FaultException thrown by the web service. currently i am not getting any details back. It looks like the only thing i get back is the . any…
Anthony
  • 536
  • 1
  • 8
  • 27
6
votes
1 answer

Use wshttpBinding with SSL and wsHttpBinding without SSL in single service

I want to use wshttpbinding (with SSL and without SSL) in single service but it not works, anybody had implemented it. So please guide how can i achieve that?
Miraj Baldha
  • 297
  • 1
  • 2
  • 13
6
votes
2 answers

WCF 3.5 and UDP

Is it possible to make udp binding in wcf 3.5 or it's only possible in .net 4.0 ? If it's possible in .net 3.5 could somebody give me an example please ? thanks
Cédric Boivin
  • 10,854
  • 13
  • 57
  • 98
6
votes
2 answers

How to configure multiple WCF binding configurations for a single scheme

I have a set of IIS7-hosted net.tcp WCF services that serve my ASP.NET MVC web application. The web application is accessed over the internet. WCF Services (IIS7) <--> ASP.NET MVC Application <--> Client Browser The services are username…
Sandor Drieënhuizen
  • 6,310
  • 5
  • 37
  • 80