wcf

How do I use Google Protocol Buffers with a C++ client and a C# WCF service?

Several questions: How do I get my C# WCF service to use Protocol Buffers? How do I write a C++ client for a WCF service? How do I get that C++ client to use Protocol Buffers when talking to the WCF service. There seems to be lots of tiny snippets of information out there, but nobody appears to have pulled it all together in one plac...

WCF Dataservices and OData

Could someone please explain the difference? From what I understand, I could expose my data directly using WCF data services or expose it using OData. OData is a more universal protocol? http://msdn.microsoft.com/en-us/data/aa937697.aspx ...

How should I synchronize lists in WCF?

I've got a WCF service that offers many lists of items of different types. The lists can be changed on the server. Every change has to be published to all clients to make sure every client has an up-to-date copy of each server list. Currently I'm using this strategy: On login, every client receives the current status of every list. On e...

JQuery and WCF - GET Method passes null

Hello, I have a WCF service that accepts requests from JQuery. Currently, I can access this service. However, the parameter value is always null. Here is my WCF Service definition: [OperationContract] [WebInvoke(Method = "GET", BodyStyle = WebMessageBodyStyle.WrappedRequest, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMe...

Autocomplete Extender with WCF Service

I'm trying to use Ajax Control Toolkit's Autocomplete extender with a WCF Service. This question is almost what I'm looking for, one of the answers points to a tutorial but I can't get it to work. In my solution I have a web form application project and a WCF service library project. One of the properties of the Autocomplete extender ...

Using WCF authentication service for web application

I am using a WCF authentication service I set up with a web application. I have successfully set up and tested the AuthenticationService and RolesService. The web application can successfully call methods like ValidateUser and GetRolesForCurrentUser through the WCF services. I want to integrate the WCF authentication service with my web...

Config for WCF with multiple endpoints

Hi guys I'm new to WCF and am trying to get some ideas I have off the ground. Basically I have a web WCF Application project with the following in its web.config: <system.serviceModel> <services> <service name="WcfService1.ServiceContract.IDirectorySearchService" behaviorConfiguration="defaultServiceBehavior"> ...

How to get service instance's endpoint uri?

Hi I'm working on a wcf service and I have the need for it to figure out it's own endpoint address (pref. in the constructor). Is this possible and if so, could anyone point me to the right direction? The service is hosted on IIS. Thanks. ...

wcf and duplex communication

I have a lot of client programs and one service. This Client programs communicate with the server with http channel with WCF. The clients have dynamic IP. They are online 24h/day. I need the following: The server should notify all the clients in 3 min interval. If the client is new (started in the moment), is should notify it immediate...

Catches communication exception instead of custom fault exception - WCF

On Server I'm throwing the exception like this. catch(SqlException exception) { if (exception.Message.Contains("Custom error from stored proc")) { //Exception to be thrown when authentication fails. throw new FaultException<MyServiceFault>(new MyServiceFault { MessageText = exception.Message }); } } And on client end I'm...

using WCF in asp.net MVC

can we use WCF in Asp.net MVC and how can we use? ...

Silverlight file download for COM Interop

Is the following possible in Silverlight when a button is clicked? An Excel template is downloaded from a remote server and saved to the local machine An instance of the template is then opened on the client A macro is then executed within the new Excel document I can do everything apart from saving the template to the local machine...

GZip compression with WCF hosted on IIS7

Everyone, as far as I'm concerned the question is ansered in EDIT 2. Although it's only a partial solution to the IIS side of the problem, it's what I was looking for. So I'm going to add my query to the small ocean of questions on the subject. I'm trying to enable GZip compression on large soap responses from a WCF service. So far,...

How to create a RESTful web service in asp.net?

Hi Guys, I simply want to create a fairly basic REST service, so that I can expose some of the data in my asp.net/SQL server application to the outside works, like this..... http://domain.com/api/offices - would return an xml set of office locations. http://domain.com/api/offices/15 - would return all the details of office 15. It's al...

Creating WCF Services using Dynamic Languages and DLR

I was curious how anyone would go about creating WCF based services using a dynamic language like IronPython or IronRuby. These languages do not have the concept of interfaces. How would someone define service contracts? Would we need to rely on static languages for such kind of tasks? I am a big fan of Python in particular and would lik...

What is the advantage of WSDualHttpBinding in WCF?

So far, no one can really offer any benefit of using dual channel over a client polling system except for the immediate notification you can get from the dual channel. Every other point says if you dont need immediate notice the dual binding provides negative value - anyone disagree with this? How much benefit would there be to using W...

How do I design a web service (microsoft) that can be consumed by multiple end points?

My company is planning to implement a solution in multiple applications that will help to validate mailing addresses at the point of data entry. We're using UPS's Extended Address Validation (XAV) web service API to validate the addresses. Our current plan is to build a .NET web service that can be used to communicate between our appli...

Serialization in WCF using JQuery

is it possible to use WCF classes with attributes (like [DataMember....) then you wouldnt need to do seralization on the client side (jquery) ? ...

WCF Message Debugging on WebHttpBehavior

I've created a custom binding in WCF for a custom MessageEncoder to allow messages to be written as XML using a wider range of encodings than WCF supports out of the box. The encoder appears to be working and I am able to send and receive messages, but I want to verify that the XML message being written is exactly as required by the serv...

Multiple WCF Services implementing same Service Contract interface

Is it possible for multiple wcf services to implement the same service contract interface? What I want to do is allow for a test service to be interchangeable for the real service, and to specify which service to be used in the configuration file. For example: [ServiceContract] public interface IUselessService { [OperationContra...