Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Class ‘getItemCode’ method UAX Access to the ‘AppWebService19101A001’ has been refused.

Posted on by 75
  • The questions are as follows:

    I have two accounts, builduser and api101, with the same ad administrator and role.

    When I restart ax service: builduser can call API normally, but api101 reports the following error:


    [Class ‘getItemCode’ method UAX Access to the ‘AppWebService19101A001’ has been refused.]

    When a user starts the project: api101 can also call the API normally


    Project situation

    1. Publish AX ServiceGroup

    2. C# project reference refers to WSDL

    3. Publish the C# project to IIS.

    4. When the C# project calls the AX method, the following information is passed for authentication

    // 会社
    context.Company = HttpContext.Current.Request.Headers[DataConst2.COMPANY];
    // ドメイン
    serviceClient.ClientCredentials.Windows.ClientCredential.Domain = HttpContext.Current.Request.Headers[DataConst2.DOMAIN];

    // ユーザー名
    serviceClient.ClientCredentials.Windows.ClientCredential.UserName = HttpContext.Current.Request.Headers[DataConst.USER];
    // パスワード
    serviceClient.ClientCredentials.Windows.ClientCredential.Password = HttpContext.Current.Request.Headers[DataConst.PASSWORD];

    5.AX Class

    0640.pastedimage1651031990888v4.png

    6.AX Service

    3817.pastedimage1651031869707v1.png

    7.AX ServiceGroup

    7522.pastedimage1651031936290v3.png

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,336 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,025 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans