Skip to main content

Notifications

Microsoft Dynamics SL (Archived)

SL webservices - Issue while invoking the LoginWindow service

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans