April 26, 2007

WCF Dynamic Proxy

I found this great sample on the .NET Framework 3.0 community site showing how to create and use a dynamic proxy using Windows Communication Foundation (WCF).

The DynamicProxy allows you to create the dynamic WCF client at runtime by specifying the WSDL URI of the service. The DynamicProxy does not depend on the precompiled proxy or configuration. The DynamicProxy uses the MetadataResolver to download the metadata from the service and WsdlImporter to create the contract and binding at runtime. The dynamic proxy can be used to invoke the operations on the service using reflection.


Posted by Jorgen Thelin at April 26, 2007 08:00 AM - [PermaLink]