Archives for SOA Patterns
SOA Challenges–State Maintenance, Security
APIs Computer to computer interactions (see 2-way certificates for Web Service Security). APIs are tightly integrated into client code – Web Services work through a proxy – nothing from the…
Agatha–Getting Started–First Application
Introduction The advent of WCF has made life simpler for web service developers . Passing complex types, quick serialization, write once run with multiple bindings (and hence multiple consumers) etc.…
The Publish Subscribe Pattern in C# and some gotchas
This post does three things: Provides a complete implementation of the publish subscribe pattern in C#. Highlights 4 potential issues that are inherent to ANY publish subscribe implementation – including…
A flexible service oriented architecture that handles multiple platforms (multiple devices, multiple databases…)
The Problem Statement Imagine that you have just built a sophisticated application to work against a SQL Server database. You followed a best-practices approach and separated out your presentation, business…
Abstract Factory in C# – Equally useful for manufacturing operations (services) and products
This article assumes some familiarity with the Factory pattern. The factory concept is equally useful for creating products (ProductFactory) or for creating services (ServiceFactory). A good way to start is…
WCF and Publish Subscribe–A Full Example: Running the Client (Subscriber)
Now that all the pieces are in place, we are ready to run our client ; The first error I encountered was: AddressAccessDeniedException: HTTP could not register URL http://+:8080/ Step…
WCF and Publish Subscribe–A Full Example: Client Code
The subscriber needs to know about the service. We will use to generate the proxy class for the subscribers to use. Step 1 : Ensure Service Loads Ok Use CRL…
WCF and Publish Subscribe–A Full Example: The Event Generator
The purpose of the Event Generator code is to publish events (New Magazine Issue Available) that subscribers will get notified about. Add a new Console App (Add New Project) to…
WCF Publish Subscribe– A Full Example: The Service Side Part 2 (Implementation)
Our implementation is based on .NET events (for a non-events based implementation, check out the New IObserver IObservable interfaces in C# ). The idea of publishing goes hand-in-hand with 'raising…
WCF Publish Subscribe–A Full Example – The Service Side Part 1 (Interface)
The Service code consists of an Interface (IMagazineService) and its implementation (MagazineService). The Interface defines all the capabilities of the service. What do we really want from a Publisher service?…