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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Receiving error “The HTTP request is unauthorized with client authentication scheme 'Negotiate'.” when attempting to use LoginForms Web Service.

(0) ShareShare
ReportReport
Posted on by 5

I have just recently installed Microsoft Dynamics SL and the out-of-box SL web services that come with the package. I have set up the web application to the prereq specs (as far as I can see) and can successfully hit/consume the WSDL for the service use. This is all internal, so I have generated a self-signed cert in order to enable required SSL.

I have called into the LoginForms.svc to attempt and retrieve back a session Guid. Just to see if I could connect from my machine to the Dynamics server.

I have received multiple errors but the one I am stuck on is:

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

Here is my App.config system.serviceModel section:

<system.serviceModel>
<bindings>
  <basicHttpBinding>
    <binding name="CustomBinding_LoginFormsService">
      <security mode="Transport">
        <transport clientCredentialType="Windows" />
      </security>
    </binding>
  </basicHttpBinding>
  <customBinding>
    <binding name="basicHttpsBinding">
      <transactionFlow />
      <textMessageEncoding messageVersion="Soap11" />
      <httpsTransport authenticationScheme="Negotiate" />
    </binding>
  </customBinding>
</bindings>
<client>
  <endpoint address="https://servername/SLWebServices/Microsoft/Microsoft.Dynamics.SL.WebServices.Session.LoginForms.svc"
    binding="customBinding" bindingConfiguration="basicHttpsBinding"
    contract="SLLoginFormsWebService.LoginFormsService" name="CustomBinding_LoginFormsService" />
</client>
</system.serviceModel>

I cannot seem to figure out the issue. I did notice it throws the following exception just before but can't see anything wrong with access:

"The remote server returned an error: (401) Unauthorized."  I have also read that this may be an issue with users not having specific rights to the web service methods?

Any help or guidance would be greatly appreciated! Thank you!

Ryan

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    I am having this EXACT same issue currently.  I'm trying to create a custom web app and have done and experienced almost to the letter what you described, does anyone have any input on this?  I am banging my head against a wall on this one... the Web Apps installed on the same server work great, I am trying to connect from my development machine and every time I try to run a function against the SERVICE, i.e. client.LoginWindows (...,...) I get this error.  I tried doing the Login first to get the GUID too but it doesn't seem to matter, even when trying to get the GUID I get this error.

    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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans