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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

(The server has rejected the client credentials) AX 2012 AIF and Visual Studio Net 2010

(1) ShareShare
ReportReport
Posted on by 95

I am testing AX 2012 AIF and I have a problem in AIF Service. I refer 80416_AX2012_ENUS_AIF to make AIF Service and Client.

While I tested Client to access to WDSL, I got an error message "The server has rejected the client credentials". I am looking for some solutions however there are not many information about this. If someone knows about this or can give me a good solution, please answer it for me.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Tommy Skaue Profile Picture
    Microsoft Employee on at

    Are you using anonymous authentication?

    If so, try to use Windows Authentication to test if it works. Make sure the consuming part is running on a thread that runs in the context of an authenticated and valid AX user.

  • Adrien.Lee Profile Picture
    95 on at

    Thank for your answer. as you suggested, I checked my account on my computer and I got to know that I was not on domain account. so I added some script  into C# client source and I got the result.

    /*

    GreetingsClient.ClientCredentials.Windows.ClientCredential.Domain = "XXXXXX";

    GreetingsClient.ClientCredentials.Windows.ClientCredential.UserName = "XXXXX";

    GreetingsClient.ClientCredentials.Windows.ClientCredential.Password = "XXXXX";

    */

  • Community Member Profile Picture
    on at

    I tried the same thing but I am getting exception as "Failed to logon to AX server".

    Is there any server side settings to enable web service to be accessed from outside the domain.

    technet.microsoft.com/.../gg731848.aspx

    Here I found something stating the settings.

    Am I on right path?

    Please help me...

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Basit Profile Picture

Basit 1

#1
GL-01081504-0 Profile Picture

GL-01081504-0 1

#1
Roya Profile Picture

Roya 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans