Last post Oct 09, 2009 04:06 AM by jetxx
Oct 08, 2009 03:05 PM|jetxx|LINK
Hello all, i've been using the extension classes to evaluate parms before and after service calls. I'm using JSON as the message transport. The classes compile and install fine, but will not fire when a request comes in.
Does anyone know if these extensions for parameter inspection/validation only work with SOAP and XML transports?
Thanks - JS
Oct 09, 2009 03:09 AM|ranamauro|LINK
No, it works for other formats as well. If you unzip the WCF REST Starter Kit Preview 2 source code, you can see examples of these:
Microsoft.ServiceModel.Web\Microsoft.ServiceModel.Web\CachingParameterInspector.cs: class CachingParameterInspector : IParameterInspector
Microsoft.ServiceModel.Web\Microsoft.ServiceModel.Web\ResponseWebFormatPropertyAttacher.cs: class ResponseWebFormatPropertyAttacher : IParameterInspector
and can check out how they're wired up to see if there's anything you need to change in the way you're currently doing it.
Oct 09, 2009 04:06 AM|jetxx|LINK
Thanks .. will check that out. I see in the examples it supports all SOAP bindings, but can't find one using JSON (or the two that support JSON WebHTTP and BasicHTTP.