web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

SL webservices - Issue while invoking the LoginWindow service

(0) ShareShare
ReportReport
Posted on by

Hello,

I have written C# to invoke LoginWindows service. as below

 LoginWindowsServiceClient client = new LoginWindowsServiceClient();
           
            LoginWindowsContext context = new LoginWindowsContext();
            context.CompanyID = "0060";
            context.Culture = "en-US";
            context.OnBehalfOf = String.Empty;
            context.RequestedEncoding = Encode.None
            client.LoginWindows(context); 

Web.config  supports Negotiate authentication System and Windows authentication is enabled  with Providers Ntlm and Negotiate on IIS 7.5.

App.config in WCF has Windows Credential  Type.

Which Fails and  Exception is as below

The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate XXXXX'

 

AS SL service uses transport security with negotiated authentication. This negotiation attempts to use Kerberos, but if that doesn't work, it'll fall back and use the older NTLM protocol. 

Kerberos is not configured at server side Hence I do expect to downgrade it to NTLM. But it doesn't.

Is any configuration missing?

Please help.

Thanks

Sonia

 

 

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: SL webservices - Issue while invoking the LoginWindow service

    Sonia - Did you ever resolve this?  I'm having the same exact issue and it's driving me nuts.

    Thanks,

    Anthony

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans