Windows Communication Foundation is a part of the .NET Framework that provides a unified programming model for rapidly building service-oriented applications. This integrates various other(.net\java\MSMQ) technologies. The primary focus on the interoperability of different stacks of communication.

learn more… | top users | synonyms

8
votes
1answer
71 views

WCF Duplex service authentication

I have been thinking about a way to implement this and I am not sure that what I have done is correct, because it surely sounds kinda dirty to me. Basically what I have is a WCF duplex service which ...
0
votes
1answer
59 views

Is a single instance of reusable HttpClient a bad idea?

I've got a method shown below and I realize that an instance of HttpClass is going to be created for each call to it. While working seemingly OK, I consider moving it out and place it as a private ...
2
votes
1answer
64 views

This brittle OData to SQL Server C# code isn't sustainable over time

The intent of this code is to access a third party OData API to capture only the relevant data to an existing in-house set of MSSQL server tables. Ignore the exception handling for now--the errors ...
4
votes
2answers
72 views

WCF service implementation

I have WCF Service using .NET 4.0. I have similar methods, similar code and I want use good patterns for improvement the code for get high level quality. I want reuse code, maybe using ...
3
votes
2answers
222 views

Implementing WCF method that supports either string or object as a method parameter

I have the following contract in a WCF-based web service: public List<string> GetAllPossibleQueryEngineHostNames(Instance instance); Obviously, I can call ...
3
votes
1answer
83 views

Proper way of mapping in C#

I have a WCF service that itself uses another third party WCF service. It's basically a proxy. So I'm getting a request to my own one and I have just to "forward" it to the third party one. I would ...
3
votes
1answer
190 views

.NET WCF Activator for sync and async calls

I decided to re-write my code responsible for WCF calls, as all of my methods had try-catch-...
1
vote
1answer
105 views

Concept for saving context information

My Problem I have a library containing business logic which is being used from 3 different projects: Website Local WPF Application WCF Service The library uses Entity Framework and a connection ...
4
votes
1answer
157 views

Using XDocument properly

I have a WCF service in which I am reading and adding some records to a .xml file. I load the .xml document in the constructor and use it in all the methods and save when it's updated. I want to ...
3
votes
1answer
939 views

Call to external web service

The architecture is showing a call to an external Web Service which is called by me. Then I will expose the data using WCF to be callable from another WCF client. But I really don't like how it's ...
3
votes
2answers
2k views

Consistent way to handle transient timeouts with WCF calls (timeouts, unreliable network, server load, etc)

I'm currently using the following code to manage calls to WCF services that are unreliable, and or suffer performance load issues due to contention. Right now this code is limited to solving issue ...
1
vote
2answers
209 views

Exposing WCF Service with dynamic search operation

I have this WCF service providing search functionality - to be used by our client in his web application. There can be any number of search parameters and possible nesting of ...
4
votes
1answer
1k views

Thread-safe wrapper around WCF ServiceModel.ClientBase subclass

I have an ASP.NET application which uses a Service Reference to a (third-party, offsite) payment processor. The service reference class is generated automatically. Its implementation is a subclass of ...
1
vote
1answer
335 views

Avoiding Duplicate Boilerplate Code in WCF Service

I'm responsible for maintaining a web service project in c#. I have one service class with a bunch of methods that look a lot like this: ...
4
votes
3answers
3k views

Make WCF Service testable

I have WCF Service. It works fine and I want to have test coverage for it. Unit tests and acceptance. The problem is the static class in the code. How is it ...
1
vote
1answer
221 views

Simple WCF messaging system via EF

I'm open to any comments on this code/approach. This is mostly architecture and threading. ...
1
vote
0answers
621 views

WCF using TAP without worrying about timeouts

I am really liking using the new TAP pattern in .net 4.5. And am updating some of my older projects to use it. One of the old patterns I used to use was to use EAP with WCF so I could have functions ...
1
vote
1answer
198 views

How to write a stable WCF service

I'm writing a WCF service for validating password and getting company ID for the clients that requests the services. The service runs on a server locally as a windows service, which sends queries to ...
8
votes
3answers
14k views

Recommended method to use a WCF service client and handling it's exceptions

I am new to WCF and need to work with another programmer's code. I am unsure of the way the WCF service client is used here : ...
5
votes
1answer
4k views

How to design a good interface for WCF service

A little bit of background might be in order to fully illustrate the problem. I'm designing a client (UI made with WPF) and server (WCF) that communicates with a device known as DDC (Direct Digital ...
3
votes
0answers
241 views

Self hosting service architecture

I'd like to have a few advices on my self hosting wcf services project. Image: Class: Host holds IoC root container creates ServiceHost instances with endpoints, behaviors and running them Q: Am ...
3
votes
1answer
854 views

caching in WCF web service

I want to realize caching in WCF web service. I'm using the following code: ...
1
vote
1answer
1k views

how to self-host wcf in winform without another windows process [closed]

I have a windows application and want to self-host a wcf in it. This MSDN article walks you through how to self-host wcf in a console. Jason Henderson's article demonstrates how to call the service. ...
1
vote
2answers
1k views

Best practice Multiple service classes vs Single class using partial class and different interfaces?

I want to have separate service classes for each business layer. And trying another possibility with partial classes. Please suggest which one is better one. regards, anand Option 1: ...
3
votes
2answers
4k views

WCF wrapper implementing dispose-finalize pattern

I tried to implement the dispose-finalize pattern on this WCF wrapper. Do you have any comments about this? Something I missed? ...
3
votes
1answer
4k views

How to improve WCF client proxy based on CreateChannel (not generated from WSDL) in C#

When invoking a Web Service from C# (where the external service might be WCF, ASMX, Java, etc. - you just don't know), it is common practice to point your modern development tool of choice (Visual ...
4
votes
2answers
397 views

Is this a good way to handle Web API UriTemplates?

I want to be able to do /contacts/Matt%20Phillips and /contacts/1 and have both of them return a contact. The way I did that was ...
2
votes
1answer
512 views

WCF general response validation for multiple services

Background information I am building a web application that consumes 3 different WCF services that are hosted internally. Each response object from the service inherits from a base class ...