[WCF] Appel d'un service avec le nom de la machine
Bonjour,
J'avoue que je ne sais pas où le mettre ce message : WCF ou SIlverlight ...
J'ai un service exposé via IIS suivant le configuration suivante :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="MyServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="MyServiceBehavior" name="MyService">
<endpoint address="" binding="basicHttpBinding" contract="IService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
</system.serviceModel> |
que j'accède en SIlverlight via la configuration suivante :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IService" maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647">
<security mode="None" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost/<REP_VIR>/Service.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService"
contract="ServicesDistants.IService" name="BasicHttpBinding_IService" />
</client>
</system.serviceModel> |
Jusque là tout marche nickel. Par contre, si au lieu de :
Code:
1 2
|
http://localhost/<REP_VIR>/Service.svc |
je mets
Code:
1 2
|
http://nomcompletmachine.local/<REP_VIR>/Service.svc |
J'ai un message :
Citation:
Une erreur s'est produite en tentant d'effectuer une demande à l'URI 'http://nomcompletmachine.local/<REP_VIR>/Service.svc'. Ce problème peut être dû à une tentative d'accès à un service entre domaines sans qu'une stratégie entre domaines appropriée soit en place, ou une stratégie inadaptée aux services SOAP. [...]
Je sais pas trop comment corriger ce pb ...