2010-01-08 12 views
0

J'ai créé un service wcf que j'ai téléchargé sur mon hôte (en utilisant IIS). Tout fonctionne bien. Donc, si je vais à http://www.mydomain.com/path/Service.svc cela fonctionne très bien. Si je vais à http://mydomain.com/path/Service.svc j'obtiens une erreur de ressource non trouvée.En-têtes d'hôte multiples WCF

J'ai créé un clientaccesspolicy.xml dans le dossier de chemin qui contient les éléments suivants:

<?xml version="1.0" encoding="utf-8" ?> 
<access-policy> 
<cross-domain-access> 
<policy> 
<allow-from http-request-headers="SOAPAction"> 
<domain uri="http://*"/> 
<domain uri="http://www.mydomain.com/path/*" /> 
<domain uri="http://mydomain.com/path/*" /> 
</allow-from> 
<grant-to> 
<resource include-subpaths="true" path="/"/> 
</grant-to> 
</policy> 
</cross-domain-access> 
</access-policy> 

mais il ne semble pas avoir d'effet. J'ai regardé sur le web mais je n'ai pas trouvé une explication décente sur la façon dont cela est résolu. Des idées?

Merci.

Répondre