wcf

Detect WCF client open channel operation

I read the article in this site related to WCF Channel Listeners. I suppose that (correct me if I'm wrong), after a service opened a channel, it is possible to detect a request of connection made by a client. In practice I would like to detect when the client calls the Open method. Could you tell me how can I do that please? Thanks in ad...

Change WCF default timeout

Hi, I have here a WCF Duplex Service, the requierement is that the Callback to the client should have a timeout of 10 seconds, therefor my web.config file of the Service looks like this: <bindings> <basicHttpBinding> <binding name="simulatorEndpoint" closeTimeout="00:00:10" openTimeout="00:00:10" ...

HttpModule and WCF (AspNetCompatibilityRequirementsMode.Allowed)

Hello, I'm hosting WCF services in Asp.net web page in ASP.NET Compatibility Mode (AspNetCompatibilityRequirementsMode.Allowed). I've written simple HttpModule: public class ExceptionInterceptor : IHttpModule { public ExceptionInterceptor() { } public void Dispose() { } public void Init(HttpApplication co...

WCF Connection faults at DataSet return values

Hi, i am working on an intranet application which should able to control sub-applications. As part of the application i want to read the logs of the sub-applications. the sub applications are keeping the connection alive by sending an alive signal every 15 minutes. so the channel is not closed - this works fine, for many days. but when...

Where can I download the Castle Windsor WcfIntegration Facilities dll?

I would like to integrate Castle Windsor into a WCF project and have read that you can hook it up using the WcfIntegration facility but I am unable to find where to download the dll. Can anyone help? ...

WCF: Is it safe to spawn an asynchronous worker thread on the server?

I have a WCF service method that I want to perform some action asynchronously (so that there's little extra delay in returning to the caller). Is it safe to spawn a System.ComponentModel.BackgroundWorker within the method? I'd actually be using it to call one of the other service methods, so if there were a way to call one of them asynch...

Can you communicate between a WCF service and the Windows service hosting it?

I have a WCF service I use for configuration stuff hosted in a windows service that will be used to maintain a database. Is there any way that I can access the WCF service inside of the hosting service? Or should I move the database functionality to another WCF service and host them both inside of a windows service? ...

Silverlight server side excel report generation based on database query

I am in a process of building an intranet application entirely using silverlight 3. On one of the page, I need to generate an excel report. Users can select few parameters through UI and will hit submit button, then silverlight shall generate an excel report & popup a window allowing users to save the generated report. Is there anyway t...

WCF deserialization of Dictionary where Enum type is key

Hello there. I would like to aks you for your help. I have here problem with WCF deserialization of Dictionary where Enum type is used as a key. I have two data objects: [DataContract] public enum MyEnum : int { [EnumMember] Value1 = 0, [EnumMember] Value2 = 1 } and [DataContract] [KnownType(typeof(MyEnum))] public cl...

Creating WCF DataContracts dynamically from code

Given the fact that I have a fully dynamic object model, that is, I have no concrete classes defined anywhere in code, but I still want to be able to create WCF DataContracts for them so I can use them in operations. How can I achieve this? My concrete class "Entity" implements ICustomTypeDescriptor which is used to present the various ...

OCSP responder with WCF client

How to invoke a OCSP responder service by using WCF client? More details about OCSP can be found at http://en.wikipedia.org/wiki/Online_Certificate_Status_Protocol ...

How do I refactor data contracts in WCF services?

We have lots of WCF services that are only used by our own code; the code that uses them is mostly in the same solutions files that contains the services. However they do not use a shared assembly for the contracts, so each time a data contract is change the reference to the service has to be updated by hand in all projects that use the...

Accessing WCF service with Integrated Windows Authentication from Windows Service using local SYSTEM account

Hi, We have WCF service using Integrated windows authentication deployed on a dedicated server. There will be Windows Service on Client machines[windows service uses Local System Account].We get an error when the WCFServiceClient in Windows service accesses the WCF service.[If windows service is on server machine it works fine] System....

WCF communication with several clients without IIS

Hey, we're working on a peer to peer comm software that would allow a number of grocery stores to sync their inventory with what we call "headquarters". To so this, we're thinking WCF+WPF, and no IIS and web services. My experience with WCF is basically zero, so my question is whether a TCP comm solution using WCF would work. The data th...

iPhone web service calls to WCF Service with Certificate Authentication

We are a .Net shop that has standardized on WCF Services. We are in the processs of developing an iPhone application that needs to make secure web services calls to obtain data for the app. To ensure secure communiations we have enabled SSL on our web servers. But this does not ensure the service can only be consumed by authorized apps. ...

WCF, Web services or ADO.NET data services: What shall I use?

For a project I have to implement a communication between a database hosted on a web server and several clients out there in the internet. After reading a bit and watching a few introductory videos about possible (Microsoft) technologies I figured out that I seem to have (at least) three options: 1) Windows Communication Foundation (WCF...

WCF counters in perfmon.exe

I would like to use PerfMon.exe to monitor the calls to a WCF service, but I don't understand which counter I have to use. I tried Calls and Instance but the result is always 0. Could you explain me the meaning of counters? Moreover, there are 3 groups of counters: ServiceModelEndpoint ServiceModelOperation ServiceModelService What i...

Creating a singleton ChannelFactory<T> and reusing for client connections

In our SharePoint/ASP.NET environment we have a series of data retriever classes that all derive from a common interface. I was assigned the task of creating a data retriever that could communicate remotely with other SharePoint farms using WCF. The way I have it implemented at the moment is a singleton ChannelFactory<T> is created in a ...

How to Handle WCF Service Error in Silverlight When Authenticated Session Times Out

I have a WCF Service that I'm accessing in Silverlight. The Silverlight application requires authentication (authentication happens through a call to the service.) I've noticed that when the authenticated session times out and the user does something application-side that would make a call to the service, the application just hangs wait...

Is there a way to implement a core code template in WCF?

Hi, I am working on a WCF based web services project. We have like 50 different services which provide get,create, update and delete operations. My problem is when I find a bug in an operation, let's say in get operation, that is common on all the services, i need to open and replace all the code in all the 50 services. My question is, ...