WCF REST – Starter Kit

Something for my to-do list… the second preview release of the WCF REST Starter Kit on CodePlex. The bits and Hands On Labs are available internally now at http://sharepoint/sites/restsk The WCF REST Starter Kit is a set of features, Visual Studio templates, samples and guidance that enable users to create REST style services using WCF….


.net 3.5 – my recent presentation resources

Yesterday I presented to one of my financial services customers in the city on an overview of what’s new from 2.0 to 3.5. The audience was a mixture of project managers, developers and architects. I thought I would post some of the content and sources here for future reference. What’s new in 3.5 General Daniel…


WCF for .net 3.0 – Various web casts and links

The following post is the result of some questions I received while proctoring for WCF hands on labs. I’m currently on the last day of some training in Seattle with Microsoft.   1) Transformation of messages   There is an  interface that allows for the message to be changed prior to processing – its IDispatchMessageFormatter. The following…


WCF fault – The creator of this fault did not specify a reason

I was throwing a simple WCF FaultException yesterday and came across the same problem as this on the forums  The client was trying to catch a fault as below: catch (FaultException<InvalidOperationException> fexc) { MessageBox.Show(“A fault occurred because of an invalid operation exception”   To get it working from a server perspective I had to delcare…


Singleton becomes PerCall – ReleaseInstanceMode

Beware: Adding the following attribute to a member of the the underlying service class [OperationBehavior(TransactionScopeRequired = true)] when the class is marked with the the follow attribute: [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)] forces a new singleton to be created (ie. it makes it per call). This is due to the default behavior of the OperationBehaviorAttribute’s ReleaseInstanceMode property…


Using the Action Generic Delegate for callbacks

When creating a new subscriber interface for a WCF service recently I discovered this elegant little pattern “firing” a list of Action generic Delegates. Basically for each subscriber it calls the anonymous method // create a delegate for the call back to fireAction<ILogBookSubscriberCallback> fire = delegate(ILogBookSubscriberCallback callback) {callback.OnNewEntry(entry);}; // fore the delegate for each in the…


WCF – Could not find default endpoint element

I am implementing a WCF reference model this week as part of a presentation. You realise some basics in the process of hosting your new services Principle 1: Services needs hosting (adding a service to config doesn’t host it)             ServiceHost host = new ServiceHost(t);             host.Open(); ·         Principle 2: Service and client proxy contracts…


Technology Forecasting – a new .Net?

I am doing some research for my marketing course and more specifically I’m looking at forecasting. This reminded me of a conversation I had last week with Juval Lowy of IDesign. He posed the idea that COM was circa 1993 and was replaced in 2001-an 8 year technology cycle. Given that .net is now 6…


WCF Pre-reading

Thanks to Readify for the following links as suggested reading materials:  On C# 2.0: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/csharp_generics.asp http://msdn.microsoft.com/msdnmag/issues/06/00/C20/default.aspx   http://search.msdn.microsoft.com/search/default.aspx?siteId=0&tab=0&query=Generics+FAQ+Juval   On transactions: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/introsystemtransact.asp http://msdn.microsoft.com/msdnmag/issues/05/12/transactions/default.aspx On security:http://www.code-magazine.com/Article.aspx?quickid=0511031 On WCF: http://www.code-magazine.com/Article.aspx?quickid=0503031 http://www.code-magazine.com/Article.aspx?quickid=0605051     One of the cool things I just realised about WCF was its ability to be run in-process.


Realising Business Benefit with Service Orientation

I have been thinking about Services and how Services can  have tangible business benefits. First of all I began by thinking about project milestones and a specific realisable business benefit per milestone. The following benefits came to mind: Improved customer retention Can be used to maintain a SLA (usage, health etc) Improved customer Satisfaction Can be used to attribute services…