Monday, June 11, 2012 3:12 AM
I am using web application with claims based authentication with windows authentication enabled and integrated windows authentication type is 'NTLM' and SSL is configured for that web application
Below is my WCF web.config file .The WCF service is deployed to ISAPI folder
<configuration> <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name="MyServiceTypeBehaviors" > <serviceMetadata httpsGetEnabled="true" /> </behavior> </serviceBehaviors> </behaviors> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> <services> <service name="Service" behaviorConfiguration="MyServiceTypeBehaviors"> <endpoint address="" binding="wsHttpBinding" bindingConfiguration="TransportSecurity" contract="IService" /> <endpoint contract="IMetadataExchange" binding="mexHttpsBinding" address="mex" /> </service> </services> <bindings> <wsHttpBinding> <binding name="TransportSecurity"> <security mode="Transport"> <transport clientCredentialType="Ntlm"/> </security> </binding> </wsHttpBinding> </bindings> </system.serviceModel>
I am receiving below error when consumed in console application
ServiceClient dc=new ServiceClient();
Error:-The HTTP request is unauthorized with client authentication scheme 'Ntlm'.
The authentication header received from the server was 'NTLM'.
Thanks in advance,
- Edited by spoorthi Monday, June 11, 2012 6:30 PM
Tuesday, June 12, 2012 9:32 AMModerator
Friday, June 22, 2012 11:53 PMhttp://blogs.msdn.com/b/kaevans/archive/2009/03/10/calling-sharepoint-lists-web-service-using-wcf.aspx
- Marked As Answer by Qiao WeiMicrosoft Contingent Staff, Moderator Monday, June 25, 2012 1:56 AM
Saturday, June 23, 2012 5:09 AM
Refer the post
you need to change the authentication of your web application to "Kerbose'.
Regards, Dharnendra Shah, MCTS,MCPD - Sharepoint 2010 Application Development Blog: http://ds-sharepoint2010blogs.blogspot.in/ Email: email@example.com
- Marked As Answer by Qiao WeiMicrosoft Contingent Staff, Moderator Monday, June 25, 2012 1:57 AM