a. Have a WCF-service hosted on IIS (6.0)
b. Pass user's AD-credentials to the WCF-service
c. NOT use SSL/HTTPS
So in IIS I have disabled anonymous access and specified "integrated
Windows authentication" .
I have tried to use wsHttpBinding, but as far as I can figure out,
wsHttpBinding with security mode "TransportWithM essageCredentia l" demands
HTTPS.
Is this correct?
My service is configured as
<service behaviorConfigu ration="BLST.Da taService.WCF.B WServiceBehavio r"
name="BLST.Data Service.WCF.BWS ervice"
><endpoint address=""
binding="wsHttp Binding"
bindingConfigur ation="ADCreden tialsBinding"
contract="BLST. DataService.WCF .IBWService"
><identity>
<dns value="localhos t" />
</identity>
</endpoint>
<endpoint address="mex"
binding="mexHtt pBinding"
contract="IMeta dataExchange"/>
<host>
<baseAddresse s>
<add
baseAddress="ht tp://localhost:8731/Design_Time_Add resses/BLST.DataServic e
..WCF/BWService/" />
</baseAddresses>
</host>
</service>
My binding "ADCredentialsB inding" is defined as
<bindings>
<wsHttpBindin g>
<binding name="ADCredent ialsBinding">
<security mode="Transport WithMessageCred ential">
<transport clientCredentia lType="Windows"/>
</security>
</binding>
</wsHttpBinding>
</bindings>
The funny thing is that when I look at the WSDL generated by my
service.svc, it is (the last part, anyway)
<wsdl:service name="BWService ">
<wsdl:port
name="WSHttpBin ding_IBWService "
binding="tns:WS HttpBinding_IBW Service">
<soap12:addre ss
location="https ://dkljessto.denma rk.ecsoft/WCF/servicehost.svc "/>
<wsa10:Endpoint Reference><wsa1 0:Address>
https://dkljessto.denma rk.ecsoft/WCF/servicehost.svc </wsa10:Address>
<Identity
xmlns="http://schemas.xmlsoap .org/ws/2006/02/addressingident ity">
<Dns>localhos t</Dns>
</Identity>
</wsa10:EndpointR eference>
</wsdl:port>
</wsdl:service>
(notice the small 's' in the protocol-prefix of
https://mymachine.denmark.myaddomain...ervicehost.svc)
Is my understanding correct - and if it is - which binding should I turn
to instead?
--
Jesper Lund Stocholm
http://idippedut.dk