Nous avons actuellement un service WCF qui fonctionne sur https. Mais nous voulons le changer pour le faire fonctionner juste sur http.WCF sur les paramètres http requis
Quelqu'un pourrait-il me dire ce que j'ai besoin de changer pour que le service wcf fonctionne sur http? Voici mes valeurs de fichier de configuration. Y a-t-il autre chose que j'ai besoin de cahnge autre que le web.config ??
d'aide grandement appréciée
<system.serviceModel>
<serviceHostingEnvironment>
<baseAddressPrefixFilters>
<add prefix="myservername" />
</baseAddressPrefixFilters>
</serviceHostingEnvironment>
<bindings>
<basicHttpBinding>
<binding name="basicHttpBinding_Windows"
maxReceivedMessageSize="500000000" maxBufferPoolSize="500000000"
messageEncoding="Mtom">
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="Windows" />
</security>
<readerQuotas maxDepth="500000000"
maxArrayLength="500000000" maxBytesPerRead="500000000"
maxNameTableCharCount="500000000" maxStringContentLength="500000000"/>
</binding>
</basicHttpBinding>
</bindings>
<behaviors>
<endpointBehaviors>
<behavior name="myproject_Behavior">
<dataContractSerializer />
<synchronousReceive />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="WebService.WSBehavior">
<serviceMetadata httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
<behavior name="WebService.Forms_WSBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="WebService.WSBehavior"
name="IMMSWebService.mywebservice_WS">
<endpoint
address="myproject_WS"
binding="basicHttpBinding"
bindingConfiguration="basicHttpBinding_Windows"
bindingName="basicHttpBinding"
contract="WebService.ICommand">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex"
binding="mexHttpsBinding"
contract="IMetadataExchange" />
<host>
<timeouts closeTimeout="00:10:00" openTimeout="00:10:00" />
</host>
</service>
<service behaviorConfiguration="WebService.Forms_WSBehavior"
name="WebService.Forms_WS">
<endpoint
address=""
binding="wsHttpBinding"
contract="WebService.IForms_WS">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange" />
</service>
</services>
</system.serviceModel>
J'ai changé mon fichier de configuration pour NOne et quand j'essaye d'obtenir le service de l'IE j'obtiens cette erreur N'a pas pu trouver une adresse de base qui assortit le schéma http pour l'endpoint avec la liaison basicHttpBinding. Les schémas d'adresse de base enregistrés sont [https]. Toute aide sur ce qu'il faut faire ensuite sur ce – Crishna
voir modifier ci-dessus httpsGetEnabled = "true" – Nix
Cela n'a pas aidé non plus. Je reçois toujours la même erreur – Crishna