<p>Has anybody got any kind of experience with dynamic programming using WCF. By dynamic programming I mean runtime consumption of WSDL's.
I have found one blog entry/tool:
<a href="http://blogs.msdn.com/vipulmodi/archive/2006/11/16/dynamic-programming-with-wcf.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/vipulmodi/archive/2006/11/16/dynamic-programming-with-wcf.aspx</a></p>

<p>Has anybody here found good tools for this?</p>

[{'answer_id': 42283, 'author': 'Brian Lyttle', 'author_id': 636, 'author_profile': 'https://Stackoverflow.com/users/636', 'pm_score': 1, 'selected': False, 'text': '<p>I have done this a long time ago with SOAP web services. There was a tool on GotDotNet which I think has become <a href="http://www.codeplex.com/wsstudioexpress" rel="nofollow noreferrer">Web Services Studio Express</a>, that had code which inspected/parsed a WSDL file and allowed you to call it.</p>\n\n<p>I think the assumption is that the WSDL is known at the time of client creation, and you don\'t need to be hooked up at runtime. If you inspect the WSDL at runtime you still need to have some sort of logic to decide how to generate the proxy. Why would can you not consume the WSDL before runtime? Web Services are supposed to be fairly static with an interface that doesn\'t change once published.</p>\n\n<p>You can use .NET CodeDom to generate code to execute and use the web service described by the WSDL. The WSDL can be parsed using the standard .NET XML classes.</p>\n'}, {'answer_id': 43396, 'author': 'khebbie', 'author_id': 4189, 'author_profile': 'https://Stackoverflow.com/users/4189', 'pm_score': 0, 'selected': False, 'text': '<p>I am actually considering making a small ESB, where a user can add a webservice to route to at run time.\nSo I can not add WSDLs statically </p>\n'}, {'answer_id': 169485, 'author': 'Cuyler', 'author_id': 25041, 'author_profile': 'https://Stackoverflow.com/users/25041', 'pm_score': 3, 'selected': True, 'text': '<p>This is one of the weirder aspects of WCF.  You can dynamically create a channelfactory, but only with a known type.</p>\n\n<p>I came up with a solution that is not perfect, but does work:</p>\n\n<p>Create an interface, "IFoo" which contains a single method, say <code>Execute()</code>.  In your ESB, dynamically create a <code>ChannelFactory&lt;IFoo&gt;</code> for the endpoint that you want to connect to.  Set the connection properties (URI, etc.).</p>\n\n<p>Now, you can attach services dynamically to your ESB, provided that they always implement the "IFoo" interface.</p>\n'}]
['https://Stackoverflow.com/questions/41355', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4189/']