Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>My understanding is if you follow the procedure of client access described in <a href="http://www.netfxharmonics.com/2008/11/Understanding-WCF-Services-in-Silverlight-2" rel="nofollow noreferrer">Understanding WCF Services In Silverlight 2</a>, you should be able to choose which service to access at runtime, because you don't need to create proxy at client side.</p> <p><strong>A snippet from this article:</strong></p> <blockquote> <p>Now we may turn our attention to the client application. To begin, let me start off by reminding everyone that you shouldn't ever use "Add Service Reference" in Visual Studio for magical service client creation. The code is incredibly verbose, hard to manageable, edits are prone to being overwritten, and it's almost always used as an excuse to not actually learn WCF. </p> <p>As I've mentioned many times already, WCF relies on the concept of the ABC. For both .NET and Silverlight, you merge an address and a binding with a contract in a channel factory to create a channel. This isn't just fancy conceptual architect speak, this is exactly what your code would look like (the sign of really good architecture!) Below is the .NET version of what I mean:</p> </blockquote> <pre><code>BasicHttpBinding basicHttpBinding = new BasicHttpBinding(); EndpointAddress endpointAddress = new EndpointAddress("http://localhost:1003/Person.svc"); IPersonService personService = new ChannelFactory&lt;IPersonService&gt;(basicHttpBinding, endpointAddress).CreateChannel(); Person person = personService.GetPersonData("F488D20B-FC27-4631-9FB9-83AF616AB5A6"); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload