Note that there are some explanatory texts on larger screens.

plurals
  1. POSilverlight WCF services: WCF is accessed through Client?
    primarykey
    data
    text
    <p>Does a WCF service get called from the IIS server hosting the silverlight XAP or directly from the client's browser? If you were to put your WCF services on a server closer to your database (and not the same server as your Silverlight / ASP.NET page), would the WCF server's ports need to be opened to the world?</p> <p>It may be sound like a simple answer, but really it's not as obvious as it sounds for example:</p> <blockquote> <ol> <li>ClientAccessPolicy.xml</li> </ol> <p>This file helps you control which domains have access to call your WCF service. Here is a very basic example of how you can restrict access to only those applications running under your desired domain. This permits someone running your Silverlight application from both a secure and a non-secure url.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;access-policy&gt; &lt;cross-domain-access&gt; &lt;policy&gt; &lt;allow-from http-request-headers="*"&gt; &lt;domain uri="https://www.yourwebsite.com"/&gt; &lt;domain uri="http://www.yourwebsite.com"/&gt; &lt;/allow-from&gt; &lt;grant-to&gt; &lt;resource path="/" include-subpaths="true"/&gt; &lt;/grant-to&gt; &lt;/policy&gt; &lt;/cross-domain-access&gt; &lt;/access-policy&gt; </code></pre> </blockquote> <p>Sounds as if the call goes back to the web server which hosts the Silverlight application and then to the WCF service. </p> <p><strong>Additional:</strong> I understand that I may not have communicated my question well.</p> <p>If you have a server that you use for your WCF server (<strong>Server A</strong>) and a server hosting your Silverlight application (<strong>Server B</strong>)</p> <p>Does your client directly call <strong>Server A</strong> or does it make a request to <strong>Server B</strong> which is used as a proxy to communicate with <strong>Server A</strong>?</p> <p><strong>Server A</strong> is on one domain, <strong>Server B</strong> is on another domain, and <strong>Client</strong> is through the internet.</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.
 

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