Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Services   (RSS)

N-Tier Synchronization With The Sync Framework And WCF ChannelFactory (Part 2)

In my previous post , I discussed using ServerSyncProviderProxy with ChannelFactory<T> , and explained how you can get up and running with that combination. While the described modification is definitely necessary, there's at least one other caveat
Posted by ploeh | 1 Comments
Filed under:

N-Tier Synchronization With The Sync Framework And WCF ChannelFactory (Part 1)

Sync Services for ADO.NET 2.0 allows a proper n-tier architecture where you can synchronize a client with a back-end data store via a web service. To do this, your web service must expose a simple interface consisting of four operations. As described
Posted by ploeh | 1 Comments
Filed under:

An Overview of Unit Testing Duplex WCF Services and Clients

In the last couple of posts, I've demonstrated how to isolate implementation from WCF contract definition and behavior in a duplex communication scenario. These posts have been rather detailed, so it occurred to me that you might benefit from an overview.

Unit Testing Duplex WCF Clients

In my previous post , I explained how to unit test a WCF service with callbacks. Since the scenario involves duplex communication, the service is also a client, and vice versa, so it's only reasonable to look at the 'client' as well, to examine how to

Unit Testing Duplex WCF Services

One of my readers recently asked me about unit testing WCF services when they have callbacks. Given that I strongly believe that you should attempt to implement your services without referencing WCF at all , but duplex WCF services require you to get
Posted by ploeh | 5 Comments
Filed under: ,

Modifying Behavior of WCF-Free Service Implementations

In my previous post , I explained how to implement a WCF service without referencing WCF. In simple cases, it works as described, but you may soon find yourself in a situation where you need to modify the behavior of the service when it's hosted by WCF.
Posted by ploeh | 2 Comments

Implementing WCF Services Without Referencing WCF

More than a year ago, I wrote my first post on unit testing WCF services . One of my points back then was that you have to be careful that the service implementation doesn't use any of the services provided by the WCF runtime environment (if you want
Posted by ploeh | 4 Comments
Filed under: ,

Declarative Use of Custom SecurityTokenParameters

It's not the first time I've stated this, but one of the reasons I love WCF is that it's so wonderfully extensible. You can even implement your own custom security token, as this article explains . The only problem with this article is that it uses imperative
Posted by ploeh | 3 Comments
Filed under:

Why Federation Matters

Ayende recently griped about the complexity of Federation and WCF . While I hope I have already communicated my (partial) consent, as well as some additional remarks on the cause of this in the comments, a comment by s ig prompted me to write this post
Posted by ploeh | 0 Comments
Filed under:

Troubleshooting WCF In Production Environments

WCF is such a nice framework, and its diagnostics capabilities are really comprehensive. Really, I only have two (pseudo-)issues with diagnostics so far: Configuring diagnostics is pretty difficult to do (lots of XML editing involved) Reading trace and
Posted by ploeh | 11 Comments
Filed under:

Authorizing Services

If you look at the default authorization model for WCF, you will notice that it expects you to implement centralized authorization. While centralized and pluggable authentication makes a lot of sense to me, that's not the case with authorization. Does
Posted by ploeh | 4 Comments

Mapping SAML Tokens to IPrincipals

In my post about integration testing of WCF services , I briefly touched on the topic of authorization managers and the desirability of separation of concerns. When working with user identity, it's important to place authentication and authorization logic
Posted by ploeh | 4 Comments
Filed under:

Integration Testing WCF Services

In my previous post about unit testing WCF services , I hinted at the need to perform integration testing of services as well. As Jimmy writes , you should still place your logic involving OperationContext in the Service Interface Layer (SIL): In many
Posted by ploeh | 25 Comments
Filed under: ,

Unit Testing WCF Services

A few years ago, when ASP.NET web services were the only (or at least most common) implementation of web services on the Microsoft platform, you couldn't really unit test services. Obviously, since you had programmatic access (via a proxy class) to the
Posted by ploeh | 8 Comments
Filed under: ,
 
Page view tracker