Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

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

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

  • UmesH@ Profile Picture
    UmesH@ 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
    BorisD 2,826 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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans