Bonjour a ts,

Voila je viens de réaliser mon service WCF. Je veux l'exposer sur internet donc l'adresse de mon service dans le "app.config" est par exemple : http://localhost:8040/MonService/

Donc si je tape cette adresse dans le navigateur ca marche nikel mais comment l'appeler depuis un autre ordinateur qui n'est pas sur mon réseau local ?

app.config server
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
<configuration>
  <system.serviceModel>
    <services>
      <service name="ChatServices.ChatWCF">
        <!--<endpoint
          address="http://localhost/ChatServices/"
          binding="wsDualHttpBinding"
          contract="ChatInterfaces.IChat"
          />-->
 
        <endpoint
          name="ChatServices.ChatWCF"
          address="http://localhost:8080/ChatServices"
          bindingConfiguration="DuplexBinding"
          binding="wsDualHttpBinding"
          contract="ChatInterfaces.IChat" />
 
      </service>
    </services>
 
    <bindings>
      <wsDualHttpBinding>
        <binding name="DuplexBinding" clientBaseAddress="http://localhost:8090/ChatServices" >
        </binding>
      </wsDualHttpBinding>
    </bindings>
 
  </system.serviceModel>
</configuration>