Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here's a really basic example of how to configure a WCF service in your web/app.config:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;configuration&gt; &lt;system.serviceModel&gt; &lt;services&gt; &lt;service name="MyServiceTypes.MyService" &gt; &lt;endpoint address="http://localhost:55555/MyService" binding="basicHttpBinding" contract="MyServiceTypes.IMyService" /&gt; &lt;/service&gt; &lt;/services&gt; &lt;/system.serviceModel&gt; &lt;/configuration&gt; </code></pre> <p>On the client side, you want to use the exact same endpoint settings, like this:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;configuration&gt; &lt;system.serviceModel&gt; &lt;client&gt; &lt;endpoint address="http://localhost:55555/MyService" binding="basicHttpBinding" contract="MyServiceTypes.IMyService" /&gt; &lt;/client&gt; &lt;/system.serviceModel&gt; &lt;/configuration&gt; </code></pre> <p>There are a ton of ways to customize the binding, etc. by adding bindingConfiguration sections, and stuff like that. The binding configuration might be where you configure your streaming mode.</p> <p>It's usually a best practice to put your contract interface; your service and client implementations; and your DataContract types (your data-transfer-objects) in a separate DLL if you can. If you don't have control over the contract (e.g. you are accessing the service on a machine you don't control), an easy way to generate the client side code is to use "Add Service Reference" in Visual Studio, or the svcutil tool. I like svcutil better than Add Service Reference, because it gives you easier control over where the generated code ends up in your project.</p>
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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