What happens when a WCF client specifies multiple endpoints for the same contract?
Will it consume from all of them? Will it throw an exception? ...
Will it consume from all of them? Will it throw an exception? ...
I am trying to add a WCF RIA service to an existing website. When I load the page I get a "Load Operation failed for query" I fire up fiddler2 and get The resource cannot be found. <body bgcolor="white"> <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1> <h2> <i...
I set my DataContracts namespace to "" which removed one namespace but I have to remove the other: xmlns:i="http://www.w3.org/2001/XMLSchema-instance" If theres no other way, how can I serialize my class prior to returning and hack out the namespace? I have to do this to work with another companys API. ...
I've got a common library that contains enums that are shared between a WCF Service and a client by means of the DLL. Yes, I know the better way of doing this is to create a service out of my common lib - that's for later. I've made a change to my common lib, adding another field to the enum. After compiling, I've updated the DLL's in...
I have a WPF application which I'm currently working on separating into a client and server side - using WCF. I did not like the mess I initially got with the straight forward solution, so now I'm restructuring following the recommendations in the screencast of Miguel Castro, WCF Extreme. If you're not familiar with the video he basicall...
This is how my service is set up: myServiceHost = new ServiceHost(typeof(ChatCommunicationService), new Uri("http://localhost:8080")); myServiceHost.AddServiceEndpoint(typeof(IChatService), new WSHttpBinding(), "Soap"); myServiceHost.Open(); This is how my webservice client is set up: ChannelFactory<IChatService> scf = new ChannelFac...
I have a WCF service where I use a customUserNamePasswordValidatorType (specified in the behaviors\serviceBehaviors\serviceCredentials\userNameAuthentication section of the web.config file). My custom UserNamePasswordValidator works that way: public bool Authenticate(string userName, string password) { If ( IsUserValid(username, p...
I know I've had this problem when I started working with Silverlight, but I can't for the life of me remember how to fix it. I created a new RIA service application using the standard tutorial, added a table from the database and added a grid to display the results. Works great. Now I pull open the Web properties and change the web proj...
The WCF starter kit has WebProtocolException to throw exceptions in WCF. Is this included in .net 4.0? ...
I am consuming a 3rd-party web service which has been implemented in WCF. My consumer code resides on an ASP.NET asynchronous page. Problem is, sometimes the BeginCallWebService() method is returning null. Shouldn't it always return an IAsyncResult object? Should I ask the web service developer to modify their code, or is null a legit...
Sorry for asking a question about something I don't know much about, but I've been pulling my hair out trying to get this working. So, I have a WCF service that is hosted on IIS and seems to be working insomuch that I can "see" it on the network by going to http://servername/MyService.svc in a browser. That .svc looks like: <% @Servic...
Hi, I have a wcf operation that sends byte array to client. The maximum size of byte array I intend to send is 2mb. So I have set maxbuffersize and maxreceivedmessagesize to 2097152 (2 mb) on basichttpbinding with transfermode=buffered on the server. Despite these settings, no buffer overflow exception is getting thrown if I transfe...
WCF is a general communication framework and the more you use it, the more knobs you find there are to tune (endpoint, security, serialization, etc). I have an application that is sensitive to a number of QoS attributes and I'd like to begin tweaking the settings to understand how each impacts bandwidth, latency and scalability of this ...
I would like to create an [CustomDataMember] attribute that override the formatter behavior of DataContractSerializer through an IOperationBehavior. I have followed the instructions given by Aaron Skonnard but when I call the DCS serializer, the custom behavior does not get neither instantiated nor called. Obviously, I am missing somet...
In my WPF application data model I have multiple classes representing data for interaction with backend DB through WCF self hosted service. Should I have multiple Data Contracts or multiple Service Contacts or Endpoints in my WCF Sevice for representing these multiple WPF data model classes? What is correct (or maybe the only) way to a...
Hi All, I'm looking to implement a chatroom interface for an ASP.NET page. I'm in the process of learning WCF and it seems that it is appropriate for a chat application. Before I get too involved into WCF I want to be sure it is the right choice to make for developing a chat application in ASP.NET. Can anyone provide any feedback? I fo...
Not sure if I'm doing something wrong ... but I'm trying to implement a WCF service that can be called from WCF. I implemented the async pattern on the client, and here's what the call looks like: BasicHttpBinding basicHttpBinding = new BasicHttpBinding(); EndpointAddress endpointAddress = new EndpointAddress(AccountServiceURL); var pe...
While my service executes, many classes will need to access User.Current (that is my own User class). Can I safely store _currentUser in a [ThreadStatic] variable? Does WCF reuse its threads? If that is the case, when will it clean-up the ThreadStatic data? If using ThreadStatic is not safe, where should I put that data? Is there a place...
Looking for some collective wisdom. Here is the situation. This is using Visual Studio 2008. We have a simple WCF contract exposing the following method: DataSet ExecuteQuery (out string someStuff); This method is implemented as: public DataSet ExecuteQuery (out string someStuff) { someStuff = "abc"; return new DataSet(); ...
I have the following code, that I am testing... public static void Main() { try { ServiceHost host = null; host = new ServiceHost(typeof(StockService), new Uri("http://localhost:8080/EssentialWCF")); host.AddServiceEndpoint(typeof(IStockService),new BasicHttpBinding(), ""); ServiceMetadataBehavior behavior = new ServiceM...