147
votes
18answers
28k views
What is the best workaround for the WCF client `using` block issue?
I like instantiating my WCF service clients within a using block as it's pretty much the standard way to use resources that implement IDisposable:
using (var client = new SomeWCFServiceClient())
{
...
6
votes
5answers
5k views
Performance Tests of Serializations used by WCF Bindings
I have the following object:
public partial class Game
{
public bool Finished { get; set; }
public Guid GameGUID { get; set; }
public long GameID { get; set; }
public bool ...
4
votes
2answers
2k views
Understanding WCF Windows Authentication
I have a service with windows authentication. Using the following code, I can get the Windows Identity of the user who (by using the client) consumes the service.
String currentUser = ...
47
votes
2answers
10k views
How does WCF deserialization instantiate objects without calling a constructor?
There is some magic going on with WCF deserialization. How does it instantiate an instance of the data contract type without calling its constructor?
For example, consider this data contract:
...
5
votes
4answers
2k views
Queuing in OneWay WCF Messages using Windows Service and SQL Server
I need to implement a queuing mechanism for WCF service requests. The service will be called by clients in a one-way manner. These request messages should be stored in a SQL Server database and a ...
140
votes
5answers
81k views
Collection was modified; enumeration operation may not execute
I can't get to the bottom of this error, because when the debugger is attached, it does not seem to occur. Below is the code.
This is a WCF server in a Windows service. The method NotifySubscribers ...
1
vote
2answers
493 views
WCF - Design Parameter Decision
I am designing a service for FundManagement. The FundManagement Service has an operation named “UpdateFundApprovalDate(FundDTO fund)”. This operation will update the fund table record with approval ...
54
votes
8answers
53k views
Large WCF web service request failing with (400) HTTP Bad Request
I've encountered this apparently common problem and have been unable to resolve it.
If I call my WCF web service with a relatively small number of items in an array parameter (I've tested up to 50), ...
17
votes
3answers
23k views
How to make a call to my WCF service asynchronous?
I have a WCF service that I call from a windows service.
The WCF service runs a SSIS package, and that package can take a while to complete and I don't want my windows service to have to wait around ...
10
votes
3answers
407 views
“Do not use Abstract Base class in Design; but in Modeling/Analysis”
I am newbie to SOA though I have some experience in OOAD.
One of the guidelines for SOA design is “Use Abstract Classes for Modeling only. Omit them from Design”. The use of abstraction can be ...
15
votes
3answers
12k views
creating WCF ChannelFactory<T>
I'm trying to convert an existing .NET Remoting application to WCF. Both server and client share common interface and all objects are server-activated objects. In WCF world, this would be similar to ...
16
votes
1answer
5k views
C# - WCF - inter-process communication
What is the best WCF binding to use for inter-process communication?
I have used WCF over local networks and it is amazing, and I'd like to use it for inter-process communication as well. I do not ...
8
votes
3answers
7k views
Error in WCF client consuming Axis 2 web service with WS-Security UsernameToken PasswordDigest authentication scheme
I have a WCF client connecting to a Java based Axis2 web service (outside my control). It is about to have WS-Security applied to it, and I need to fix the .NET client. However, I am struggling to ...
2
votes
4answers
11k views
Using MediaElement to play video from Stream
Is it possible to use the WPF MediaElement to play streaming video from a System.IO.Stream object? The Stream object is being retrieved from a WCF service that stores the media files.
24
votes
5answers
5k views
WCF Transport vs Message
i was reading about WCF security implementations and found out that there are 2 types of security:
Transport Mode and Message Mode (or both)
If i used HTTPS for Transport Mode, is it more secured ...