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 AX (Archived)

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

(0) ShareShare
ReportReport
Posted on by 810

Hi,

While calling custom service from Ax 2012 R3 to Ax 2009 i'm getting this error. i have performed below steps to create and consume custom service.

I have created a custom aif service in Ax 2009 server. using the below link.

https://blogs.msdn.microsoft.com/aif/2008/12/16/creating-custom-dynamics-ax-services/

Then i have hosted AifWebService (C:\Program Files\Microsoft Dynamics AX\50\AifWebServices)folder in IIS in Ax 2009 Server. because of AifWebService components has not installed in Ax 2009 server. now i can access my created custom service using the wsdl URL.

now i have created .Net wrapper for consume the server in Ax 2012 R3. after i have added this Library to my Ax 2012 R3 server.

I'm able to get my service in Ax 2012 R3 server.

calling service through Ax 2012 R3 I'm getting this error. i have checked more links for this error but still not getting any solution.

Below is my Web.Config in Ax 2009 Server.

<system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="basicHttpBindingWindowsAuth">
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows" proxyCredentialType="None"/>
      <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
</system.serviceModel>


Belo is my App.Config file in Ax 2012 R3 Server.

<bindings>
	<basicHttpBinding>
		<binding name="BasicHttpBinding_IND_D3652AX09Service">
			<security mode="TransportCredentialOnly">
				<transport clientCredentialType="Windows" proxyCredentialType="None" />
				<message clientCredentialType="UserName" algorithmSuite="Default" />
			</security>
		</binding>
		<binding name="BasicHttpBinding_IIAX20092D365" />
	</basicHttpBinding>
</bindings>

i'm not sure which step i have missed.

can you please help me out this issue ?

*This post is locked for comments

I have the same question (0)
  • UmesH@ Profile Picture
    810 on at
    RE: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.

    Hi Boris Diroo,

    I have tried your steps before but no luck,

    even i have tried to changed windows authentication to "NTLM" then it's giving me below error.

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

    so i have tried below link step even i'm not getting proper solution.

    stackoverflow.com/.../the-http-request-is-unauthorized-with-client-authentication-scheme-negotiate

    i would like to check below link, Microsoft Developer has suggeted to change Registry subkey. is it good to change registry key value?

    blogs.msdn.microsoft.com/.../wcf-calling-wcf-service-hosted-in-iis-on-the-same-machine-as-client-throws-authentication-error

    Can anyone please help me out?

  • Suggested answer
    BorisD Profile Picture
    2,826 Moderator on at
    RE: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.

    Hello Jignesh Patel,

    Have you tried to set the Anonymous Authentication in IIS to use Application pool identity instead of a specific user?

    To do this go to the IIS server, Open up IIS Manager, Click on your site, click on Authentication Icon in the IIS area of Features View, Click on Anonymous Authentication, Click Edit, select Application pool identity.

    Additionally you can set the Pass-through authentication to a specific user. Use a service account that has local Administrator rights on the server.

    To do this in IIS Manager, click on Basic Settings in Actions, Click Connect As, and specify the service account you want to use.

    Hope this helps!

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans