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.
http://wcf.netfx3.com/files/folders/development_tools/entry6148.aspx
All content is
Copyright (c) 2010 Jorgen Thelin. All rights reserved.
The opinions expressed here represent my own views
and not necessarily those of my current, prior or future employer(s).
Content is provided "as-is", without any representations or warrenties of any kind.
Contents of the Weblog Feed are
licensed under a
Creative Commons License.