Bonjour à tous!
voila mon problème est à la fois simple et compliqué
Je crée un web service classique avec une calcul simple pour le test (pendant tous ce que je vais écrire je test mon web service avec le wsdl
https://maxime-pc/WcfService2/Service1.svc?wsdl),
je le lance pas de problème
je l'héberge sur mon serveur IIS local, je test pas de problème
je veux qu'il y ai un certificat et donc en SLL et https,
pas de prblm ca marche aussi
Le hic viens je veux qu'il y ai une authentification windows
donc je rajoute a mon fichier config un configuration binding
ce qui donne au final :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 <wsHttpBinding> <binding name="TransportSecurity"> <security mode="Transport"> <transport clientCredentialType = "Windows" /> </security> </binding> </wsHttpBinding >
je test ca marche pas et IIS me dis que je dois le configurer en authentification windows, jusqu'à la ok normal, je le fais je relance...
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
31 <system.serviceModel> <services> <service name="WcfService2.Service1" behaviorConfiguration="WcfService2.Service1Behavior"> <endpoint name="wsHttpsEndpoint" address="" bindingConfiguration="TransportSecurity" binding="wsHttpBinding" contract="WcfService2.IService1"> <identity> <dns value="localhost" /> </identity> </endpoint> <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /> </service> </services> <bindings> <wsHttpBinding> <binding name="TransportSecurity"> <security mode="Transport"> <transport clientCredentialType = "Windows" /> </security> </binding> </wsHttpBinding > </bindings> <behaviors> <serviceBehaviors> <behavior name="WcfService2.Service1Behavior"> <serviceMetadata httpsGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel>
et la il me dit que je dois le configurer en authentification "anonyme"...
donc je tourne en rond je met l'un il me demande l'autre à chaque coup...
Pourtant ca part bien... il me demande bien si je dois faire confiance au certificat après il m'ouvre bien une fenetre d'identification windows et une fois validé c'est la que j'ai le message...
Après moulte recherche, je manque de solution.
Partager