Q:

Validating parameters with WCF, Unity and VAB

I am developing an application that exposes a WCF service using the Message/Response pattern for service methods.   The application is using Unity 2.0 for dependency injection and the Validation Application Block from MS Patterns & Practices.   I've already gotten Unity tied into WCF using a custom HttpModule I picked up from several website a while back and everything works great. 
In my service interface I have a method such as:
DoSomethingResponse DoSomething(DoSomethingRequest request)
I can easily attach VAB attributes to the service contract to verify that 'request' is never null but I also want to validate the contents of the request object. 
To do this, I inject the validator into the DoSomethingRequest constructor and include an internally scoped IsValid property which handles interacting with the VAB validator.   Unfortunately, this constructor doesn't get called because WCF deserializes the object and constructors aren't used. 
Without getting into the merits of having the request object be a simple DTO versus having some server-side business logic, is there a way to cleanly inject dependencies into an object passed into WCF service as an argument? 

A:

So it turns out that adding the validation attributes to my DataContract actually works with no additional code.   Unfortunately, it doesn't work if validation is defined in the app's config file (app.config or web.config). 
As a result, I've stripped out the constructor injection and IsValid property on my DataContract (request object) which makes it more of an annotated DTO which I think is preferred anyway.   I only wish that it would work the same with the XML configuration.