I’m currently building a reporting service (WCF) – filled reports are produced using an Elastic Object which uses C# dynamics – I have written code to transform the object into JSON within the WCF service. The WCF service is hosted within a Windows Service and uses either named pipes or TCP bindings.
What I need to do next is to return the report object as JSON to an ASP.Net MVC web application which then just passes it through to the client without deserializing. I cannot have the client call the WCF service directly due to security issues.
Is this possible?
OK – This was fairly straightforward in the end –
I followed this post here, replacing my ElasticObject with the SerializableDynamicObject
(I didn’t need the extended abilities of the ElasticObject)
This approach works nicely.