wcf

How to enable IIS compression for WCF services?

Hi, I currently use a custom gzip encoder for my WCF service. I want to replace it with the built-in IIS 7 compression if that is possible. I can't find info online on how to that. Is there any way to enable IIS 7 compression for WCF services? Do you know if this will be supported out-of-the-box with .Net 4? Edit June 15th: I'm still...

WCF based WinForms app in standalone mode

Hi, I have a windows application that has its business logic layer implemented as a WCF service. This service is currently hosted on IIS. I wanted to know that if there's a way where I could optionally run the application in standalone mode when a service isn't available/feasible. ...

Has anyone successfully implemented this MSDN solution for Sharepoint External Libraries using Silverlight/WCF?

Has anyone successfully implemented this MSDN solution for Sharepoint external libraries? http://msdn.microsoft.com/en-us/library/dd440954.aspx Some background: We will be providing file upload/download capabilities to both Intranet and Extranet users. In some cases, user uploads will be very large : sometimes twice the WSS3/MOSS2007 2...

How to limit the service access in WCF to a set of windows accounts?

I have a WCF service which uses netTcp binding and transport security. It uses Windows authentication (default). Everything is working smoothly but I want to ensure that only a select windows user account can use this service instead of everyone in the domain. Is there any way to accomplish this such that select user accounts can be wr...

WCF sending big files

I'm writing a WCF service which will be used to receive big files (mp3 files and others), process them and then return an mp3 audio file. I don't want to save those files in the filesystem, I'd just like to process them, and then return an audio file. the problem is I'd like the process to use as low memory as possible. how would I acco...

Unable to deploy a simple WCF - Get the "The resource cannot be found"

I created a very simple WCF and deployed it to the hosting provider by doing a "Copy Website". Locally, it's setup to use the development server (not in IIS). The domain is under Full trust permissions. Locally, I can get to the Service.svc page, but not in the hosting provider. The code is as follows: Service.svc <%@ ServiceHost Lang...

WCF + POX + XDocument, is there a way to do it?

I'm in deep trouble because I wrote a POX service w/ WCF and WebInovke and specified the input type as XElement because we need several different types of data coming into. I'm in trouble now because the service throws a 400 Bad Request if you submit an xml infoset w/ processing instructions. When I tried changing it to XDocument, the se...

Where to put the calls to WCF or other webservices in MVVM?

I'm building Silverlight applicaitions using Prism and MVVM. When calling WCF services on your own server, or even external webservices like the Bing api, would this be done from the Model? or from the ViewModel, thus making the service the Model? ...

Writing Windows service in WCF

Hi I want to write windows service in wcf After searching a lot I only found were tutorials of writing webservice in wcf not windows service. Can any one please provide a link to any tutorial which explains how to write windows service in WCF ...

WCF GZip Compression Request/Response Processing

How do I get a WCF client to process server responses which have been GZipped or Deflated by IIS? On IIS, I've followed the instructions here on how to make IIS 6 gzip all responses (where the request contained "Accept-Encoding: gzip, deflate") emitted by .svc wcf services. On the client, I've followed the instructions here and here on...

SSL WCF Could not establish trust relationshop

I have a WCF web service that works perfectly with an http address, but since then I've needed to make sure it works over https. Because I am using IIS 7, the process was pretty easy to get the web site https binding up and running using this guide here I opened up a browser, and got the usual security prompts, but everything worked f...

Is this the correct way to configure "Global settings" in WCF Serviced, Delivered through IIS

Hi There, I have a WCF service written. I want it to pick up some "global settings" upon startup. The WCF service will run under IIS. Here's how I am doing it, but I want to make sure this is the correct way. Can an expert comment? I put the relevant data in web.config. Now I don't believe I can access this in my WCF class as suc...

WCF Test Client Won't Refresh

I am having a very frustrating problem with the WCF test client. When I build my WCF service locally and debug I am able to test it in the test client app. However, when I make a change, sometimes even completely removing a service method, it absolutely will not refresh. It's like it's caching a copy of the service somewhere. I have trie...

WCF : Could not establish trust relationship for the SSL/TLS secure channel with authority - back to the drawing board

Really thought I had this issue fixed, but it was only disguised before. I have a WCF service hosted in IIS 7 using HTTPS. When I browse to this site in internet explorer, it works like a charm, this is because I HAVE added the certificate to the local root certificate authority store. I'm developing on 1 machine, so client and serve...

Dealing with large data sets in WCF?

We've got a smart client that talks to a SQL Server database via WCF, displaying the entities in the database, and allowing the user to edit those entities. Some of the WCF calls return a large data set. Since this data set doesn't change very often, I'm considering some sort of write-through cache on the client, and only getting the de...

Trouble using IAuthorizationPolicy with WCF and Castle-Windsor

I'm currently using Castle-Windsor with the WCF Facility to inject all my WCF services. I've just started adding permission requirements using a custom IAuthorizationPolicy, which seems to work when done on a per-method basis on the service, but when the service class itself is marked up with the requirements, I get an exception thrown. ...

Can I use net.tcp bindings for protobuf-net WCF?

Can I use net.tcp bindings for protobuf-net WCF? Can I use ClientBase or I have to use ProtoClient? ...

Can a WCF OperationContract method's WebGet attribute have multiple ResponseFormat types?

I have a ServiceContract describing a method used in a WCF service. The method has a WebGet attribute which defines a UriTemplate and ResponseFormat. I want to reuse a single method and have multiple WebGet attributes with different UriTemplates and different ResponseFormats. Basically I'm hoping to avoid having multiple methods just...

WCF + WebClient + Powershell

Hi, I tried it works fine for the asmx (simple web services) but for WCf do we need to do some thing different. Can the Same work for the WCF services as i get the error for the WCF service also. i just created the Simple WCF service in .net and tried to access. but was not successful. Error: $Url = "http://localhost:4637/WCFService2/...

WCF - How to detect if server is alive ?

Hello, I am developing a client/server application with net tcp binding and I need to be notified if my connection to server goes down. From server-side if a client disconnects, i can detect it instantly with CommunicationObject. Faulted event (with reliable session off). However, from Client side, it seems I have no way to know if ser...