j'ai quelques questions sur le fichier de configuration ci-dessous:WCF, en changeant le baseAdress d'un point de terminaison
<system.serviceModel>
<bindings />
<services>
<service behaviorConfiguration="WcfReporting.Service1Behavior"
name="WcfReporting.Service1">
<endpoint address=""
binding="basicHttpBinding" bindingConfiguration=""
contract="WcfReporting.IService1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:5050/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="WcfReporting.Service1Behavior" >
<!-- To avoid disclosing metadata information, set the value below to false
and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes,
set the value below to true. Set to false before deployment to
avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
Pourquoi lorsque je tape sur F5 pour redémarrer le service, le service commence par cette URL http://localhost:2752/. .. pourquoi pas 5050 comme je l'ai spécifié dans baseAddresses.
Comment ajouter une autre extrémité. J'ai essayé avec adresse de noeud final = «/Address2 » binding = « basicHttpBinding » contrat = « WcfReporting.IService1 » />
comment devrais-je être en mesure d'accéder au service, non seulement avec http://localhost/VirtualDir/ mais aussi avec http://localhost/VirtualDir/address2 ou Comment ça marche?
merci. Donc, si j'ajoute un point de terminaison comme ceci Quand je tape F5, c'est mon service hébergé par TCP ou dois-je réellement écrire du code dans une application de console pour le faire? –