Http --> Https configuration
Bonjour,
Parceque je veux faire une authentification personnalisé de mes web services je dois installer ssl sur mon serveur (ca c fait et ok) et changer mon web.config de mon service. Depuis que j'ai fait ce changement j'essaye de faire des tests et je me retrouve qu'avec des erreur 404.
Ma config qui marche en HTTP
Code:
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
|
<system.serviceModel>
<services>
<service name="TEST.WCFServiceFacade.ExposedService" behaviorConfiguration="WCFWebServices.TESTBehavior">
<host>
<baseAddresses>
<add baseAddress="http://localhost:59431/TESTServices.svc" />
</baseAddresses>
</host>
<endpoint address="soap" binding="basicHttpBinding" contract="TEST.WCFInterface.IClients"/><!--SOAP-->
<endpoint address="rest" behaviorConfiguration="restBehavior" binding="webHttpBinding" contract="TEST.WCFInterface.IClientsRest"/>
<endpoint address="restJSON" behaviorConfiguration="restBehavior" binding="webHttpBinding" contract="TEST.WCFInterface.IClientsRestJSON"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="WCFWebServices.TESTBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="restBehavior">
<webHttp/>
</behavior>
</endpointBehaviors>
</behaviors>
</system.serviceModel> |
Ma config qui ne marche pas en HTTPS
Code:
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 31 32 33 34 35 36 37 38
|
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="TransportSecurity">
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</wsHttpBinding>
</bindings>
<services>
<service name="TEST.WCFServiceFacade.ExposedService" behaviorConfiguration="WCFWebServices.TESTBehavior">
<host>
<baseAddresses>
<add baseAddress="https://localhost:59431/TESTServices.svc" />
</baseAddresses>
</host>
<endpoint address="soap" binding="basicHttpBinding" contract="TEST.WCFInterface.IClients"/><!--SOAP-->
<endpoint address="rest" binding="wsHttpBinding" bindingConfiguration="TransportSecurity" contract="TEST.WCFInterface.IClientsRest"/>
<endpoint address="restJSON" binding="wsHttpBinding" bindingConfiguration="TransportSecurity" contract="TEST.WCFInterface.IClientsRestJSON"/>
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="WCFWebServices.TESTBehavior">
<serviceMetadata httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="restBehavior">
<webHttp/>
</behavior>
</endpointBehaviors>
</behaviors>
</system.serviceModel> |
Avez-vous une idee du pb ?
Merci