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

How can I unlock a FileStream lock?

I am implementing a module to upload files in chunks from a client machine to a server. At the server side I am using a WCF Soap service. In order to upload files in chunks, I have implemented this sample from Microsoft…
Fer
  • 255
  • 3
  • 8
9
votes
3 answers

WCF: Net.TCP multiple bindings, same port, different IP Addresses

I've run into a problem. I'm a little new at WCF so any help would be greatly appreaciated. Here's my code: public static void StartHosts() { try { // Create a new host ServiceHost host = new…
Mel Green
  • 3,571
  • 4
  • 26
  • 32
9
votes
5 answers

WCF is using the computer name instead of the IP address and cannot be resolved

I have a WCF service that works fine on the LAN but when trying to access it from outside the service reference fails. My WCF service is hosted on a win2k3 box that is using a static IP no domain.
baileyswalk
  • 1,198
  • 2
  • 17
  • 29
9
votes
1 answer

How can I prevent VS2010 to create a new binding each time I update a service reference?

I'm developing a Winforms Client application with a WCF Service in C # 3.5 and Visual Studio 2010. Every time I use "Update Service Reference" in the IDE, considering I have already a working binding in app.config, an additional binding entry is…
Larry
  • 17,605
  • 9
  • 77
  • 106
9
votes
1 answer

what is in WCF Binding?

I gone through this MSDN link but could not get enough details Can any one explain me with a scenario where and why i need to set this value. I came across the setting when i was trying to send a Data Contract object to service method and was…
PramodChoudhari
  • 2,503
  • 12
  • 33
  • 46
9
votes
1 answer

WCF Basic authentication between Full .NET and .NET Core

I would like to make a WCF https-connection between a .NET core application and a full .NET webservice (Hosted in IIS), with Basic authentication. On the .NET Core side I have a ChannelFactory set up like this: var binding = new…
PeterVD
  • 91
  • 1
  • 4
9
votes
2 answers

Get metadata out of a webHttpBinding endpoint

With a reference to my previous question, I would like to know how would I extract information of a WCF service from a client application to know what methods/types are exposed if the service exposes only one endpoint that uses webHttpBinding? Just…
decyclone
  • 30,394
  • 6
  • 63
  • 80
9
votes
1 answer

WCF IIS hosted service multiple Service Contracts implemented by a single service - how do I share uri between endpoints via config

I have a set of Service Contracts which split up my service interface into chunks of related functionality. I am currently implementing all contracts using a single service class (may want to split these later but for now the single service class…
Simon Fox
  • 10,409
  • 7
  • 60
  • 81
9
votes
3 answers

ActionNotSupported error when a WCF Service is created at runtime

I am trying to create a WCF service at runtime. My service interface is: [ServiceContract] public interface IInformationService : IService { [OperationContract] [WebInvoke(Method = "Get", ResponseFormat = WebMessageFormat.Json, …
Max Kornev
  • 131
  • 1
  • 6
8
votes
2 answers

How to override WebServiceHostFactory MaxReceivedMessageSize?

There are a lot of similar questions out there, but I have tried every solution in every one of them to no avail. We have a web service that initialises with WebServiceHostFactory, but if any more than 64k is thrown at it, we get a '400 Bad…
James R
  • 651
  • 1
  • 12
  • 21
8
votes
2 answers

.NET 4 WCF SOAP Service Http POST returns 404 NOT Found

I have WCF hosted SOAP service which I'm able to hit from the browser as well as from my SOAP client fine when making HTTP GET requests, however, when doing any HTTP POST requests, the response is a 404 Not Found. My Web.config looks…
Huzaifa Tapal
  • 191
  • 1
  • 1
  • 7
8
votes
2 answers

Cannot activate binary http binding on server

I'm trying to use binary message encoding in a WCF service, following the many examples on this site. On the server I have the binding declared as so:
David
  • 81
  • 2
8
votes
2 answers

What is the difference between BasicHttpBinding and CustomBinding/Soap11?

for the first time we're consuming an SAP NetWeaver web-service on SOAP 1.1 which requires user-name and password authentication over HTTPS. I'm currently prototyping the WCF application and I successfully can consume the SAP web-service with both…
mono68
  • 2,080
  • 19
  • 27
8
votes
2 answers

Calling a WCF service without generating an Assembly

I am trying to write some code in C# that will call a WCF service on the fly by importing the WSDL, examining it and then making calls to it dynamically. The service I am calling can change from time to time - so if it does I want my client to know…
Neil
  • 1,605
  • 10
  • 15
8
votes
1 answer

Does WCF always use SOAP to send information over your binding?

I understand you can choose from a range of bindings, such as TCP, HTTP, HTTPS etc. Am I correct in thinking it always uses SOAP to send data over this connection? I am watching a guide to WCF and it is talking about how exceptions are serialized…
NibblyPig
  • 51,118
  • 72
  • 200
  • 356