wcf-binding

BasicHttpBinding vs wsHttpBinding vs WebHttpBinding

Dear Devs I need a comparisons chart of above 3 mentioned bindings in terms of features and performance. i have seen some between ws and basic but i need web as well. Please if anyone has link to any article please share i have tried google but no gain yet. ...

Are there any downside of increasing sendtimeout in WcfBinding?

My application calls a 3rd party WCF service and chances are that it get time-out 10 in 100 times. What should i do, should i increase the SendTimeout, are there any downside of it.?? ...

Clear text username password authentication in Wcf over https

My question may be very silly but here it is. I went through this question. jassuncao has suggested to use custom binding created Yaron Naveh. Now that it is not a very secure way of authentication, my question is, what if I use Yaron's custom binding and put my service behind https? Will it still be unsecured? ...

Hosting a WCF Service Lib through a Windows service get a System.InvalidOperationException: attempting to start WCF Service

I have a WCF Service Library containing five service contracts. The library is hosted through a Windows Service. Most if not all my configuration for the WCF Library is declaritive. The only thing I am doing in code for configuration is to pass the type of the class implementing the service contracts into ServiceHost. I then call Open on...

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 authenticated, the account that a client (of my web application) uses to logon ends up as the curre...

Passing Certificate to Svcutil to generate proxy for OSB Service

We are wanting to implement Two-Way SSL security from WCF to OSB Services. We have successfully deployed the certificates so that when you browse to the service with IE you get the appropriate prompt for certificate and then it takes you immediately to the WSDL. But, when you attempt to generate a proxy using svcutil as defined in steps...

WCF - calling back to client (duplex ?)

Hi, I have a problem with what solution to choose.. I have a server running having a Service running that can receive orders from a website. To this server several client (remote computers) are connected somehow. I would really like to use WCF for all comunication, but not sure it's possible. I dont wanna configure all client firewall...

Enable MEX in a Web.Config

Hi Folks, How do I enable/create a MEX endpoint in the below web config so I can view the service from my browser? I have tried a few variation from googling but VS always complains about it. (not a valid child element etc...) <configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> <system...

How to transfer large amount of data using WCF?

We are currently trying to move large amounts of data to a Silverlight 3 client using WCF with PollingDuplex. I have read about the MultiplerMessagesPerPoll in Silverlight 4 and it appears to be quite a bit faster. Are there any examples out there for me to reference (using MultipleMessagesPerPoll)? Or maybe some good references on us...

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 into SOAP and sent to the client. I would have thought that not all bindings would use SOAP...

WCF: Manually configuring Binding and Endpoint causes SerciveChannel Faulted State

Hi there, I've created a ComVisible assembly to be used in a classic-asp application. The assembly should act as a wcf client and connect to a wcf service host (inside a windows service) on the same machine using named pipes. The wcf service host works fine with other clients, so the problem must be within this assembly. In order to ge...

Create a WCF REST Client Proxy Programatically (in C#)

I am trying to create a REST Client proxy programatically in C# using the code below but I keep getting a CommunicationException error. Am I missing something? public static class WebProxyFactory { public static T Create<T>(string url) where T : class { ServicePointManager.Expect100Continue = false; WebHttpBindin...

Does WCF's reliableSession guarantee that messages are not corrupted by transport?

Hi everyone, here's my problem. I am using WCF for communication between two services. I am wondering if the reliableSession option guarantees that a message received by one service is really the same as the message sent by the other service, i.e., that no bit flips or similar happened on the wire? I know that reliableSession takes car...

WCF +Silverlight + problem passing circular DTO objects to wcf service.

hi, I am using WCF service which contain DTO objects . Previosly i was stuck with circular refrence problem while fetching the data from serice . i googled the thing and find the solution by using [DataContract(IsReference = true)] and now while passing the data to UI it created problem . Please help me out to get rid of this problem. ...

RIA - Silverlight 3 Issue Deploying to exising website

Hello I have an issue deploying my silverlight project to an existing website (normal website with aspx pages). Everything works fine except that when silverlight tries to connect to the RIA service, it fails because the website is redirecting each time to the login page. I found this on the web.config of the site that seems to make th...

WCF Create service response from XML File

We are needing to test client functionality and performance against several web services. We have the XML soap requests and corresponding responses in several XML files. I am writing a mock service provider that will simply look at the request object, and then load the appropriate XML file and send it back, as the actual SOAP response. I...

BasicHttpBinding and MessageVersion.None

How to configure XML web services client to use MessageVersion.Soap11WSAddressing10 for header namespaces. Currently it uses MessageVersion.None namespace, without me able to change it. ...

WCF MustUnderstand headers are not understood

Hello everyone, I am using a Java Web Service which is developed by one of our vendor which I really do not have any control over it. I have written a WCF router which the client application calls it and the router sends the message to the Java Web Service and returns the data back to the client. The issue what I am encountering is, I...

Using Sessions in WCF Services called from Silverlight

(Using Visual Studio 2008, and Silverlight 3) -I've really looked around for this one, and now I'm just confused by all the solutions that simply won't work for me. I'm trying to call a WCF service from a Silverlight client, which is no problem, but I can't get the service to handle sessions (I want to remember a few things about the ca...

WCF: Using multiple bindings for a single service.

Hi, I have a WCF service (in 3.0) which is running fine with wsHttpBinding. I want to add netTcpBinding binding also to the same service. But the challenge that I am facing is in adding behaviorConfiguration. How should I modify the following code to enable the service for both the bindings? Please help… <service name="Li...