none
SharePoint Portal and WCF Service on different machines

    Question

  • We have a Windows Enabled WCF service hosted on Server B and a SharePoint Portal in machine A which uses NTLM Windows authentication.The WCF service is called from the SharePoint Portal. Things work fine as long as the Portal is accessed from a browser in Machine A. It fails with an error when trying to access the Portal from a browser in Machine C.

    The error we get is

    "The HTTP request is unauthorized with client authentication scheme 'Negotiate'.
    The authentication header received from the server was 'NTLM,Negotiate'.]"

    1) We are using impersonation and the credentials are passed to the services

    2) We create dynamic proxy and have the following code when creating the channel

               BasicHttpBinding httpBinding = binding as BasicHttpBinding;
                httpBinding.MaxReceivedMessageSize = Constants.MAXLIMIT;
                httpBinding.MaxBufferPoolSize = Constants.MAXLIMIT;
                httpBinding.MaxBufferSize = Constants.MAXLIMIT;
                httpBinding.ReaderQuotas = quotas;
                httpBinding.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly;
                httpBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows;
                httpBinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;

     Please provide your suggestions


    Sindhu

    jeudi 14 juin 2012 14:00

Réponses

Toutes les réponses