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 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
    Moderator 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

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

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans