Configuration WCF - basicHttpbinding

J'ai un problème avec la configuration de base de la WCF. Je suis en train de téléphone mobile de l'Application . J'ai d'abord créé test bureau appliction qui utilisent basicHttpBinding et que tout allait bien.
Ensuite, j'ai utilisé le même code (la Seule différence est dans ServerReference - Dans le téléphone que j'ai utilisé Deux Serveur de Fichiers générés à l'aide de NetCFSvcUtil). Dans l'Application Téléphone, je suis Endpoint pas Trouvé Exception.
Ci-dessous, je suis en train de monter ma configuration. Je vous serais reconnaissant de l'aide ou des suggestions.

Ce qui concerne.

Exception sur le Téléphone de côté:

Il n'y a pas de point de terminaison de l'écoute à
http://localhost:4444/Service/PhoneService
qui pourrait accepter le message. C'est
souvent causé par une mauvaise adresse
ou du SAVON d'action. Voir InnerException, si
présent, pour plus de détails.

Configuration Du Téléphone:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.serviceModel>
   <bindings>
    <basicHttpBinding>
    <binding name="BasicHttpBinding" closeTimeout="00:01:00"
        openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
        allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
        maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
        messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
        useDefaultWebProxy="true">
      <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
          maxBytesPerRead="4096" maxNameTableCharCount="16384" />
      <security mode="None">
        <transport clientCredentialType="None" proxyCredentialType="None"
            realm="" />
      </security>
    </binding>
  </basicHttpBinding>
</bindings>

  <client>
    <endpoint address="http://localhost:4444/Service/PhoneService/"
      binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding"
        contract="IPhoneService" name="BasicHttpBinding" />
    </client>



</system.serviceModel>

** conditions fragment de la Configuration du Serveur**

<service name="Server.PhoneService" behaviorConfiguration="Server.PhoneServiceBehavior">
    <endpoint address="" binding="basicHttpBinding" bindingConfiguration="" contract="Server.IPhoneService" />
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
    <host>
      <baseAddresses>
        <add baseAddress="http://localhost:4444/Service/PhoneService" />
      </baseAddresses>
    </host>
  </service>



//______________________________//

<behavior name="Server.PhoneServiceBehavior">
  <serviceMetadata httpGetEnabled="true" />
  <serviceDebug includeExceptionDetailInFaults="true" />
</behavior>

*De Configuration dans le navigateur *

PhoneService Service

Vous avez créé un service.

Pour tester ce service, vous aurez besoin de
création d'un client et de l'utiliser pour appeler le
service. Vous pouvez faire cela en utilisant la
svcutil.exe outil depuis la ligne de commande
avec la syntaxe suivante:

svcutil.exe
http://localhost:4444/Service/PhoneService?wsdl

Cela va générer une configuration
fichier et un fichier de code qui contient le
classe client. Ajouter les deux fichiers
votre application client et l'utilisation de la
client généré classe d'appeler le
Service. Par exemple:

C#

class Test
{
    static void Main()
    {
        PhoneServiceClient client = new PhoneServiceClient();

        //Use the 'client' variable to call operations on the service.

        //Always close the client.
        client.Close();
    }
}
  • Avez-vous testé la config du client à partir d'un autre appareil (par exemple, un autre dev ordinateur)?.
  • Salut, j'ai testé tout sur mon portable, il n'y a pas de pare-feu.
InformationsquelleAutor user648518 | 2011-03-20