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 :
Dynamics 365 Community / Forums / Microsoft Dynamics AX (Archived) / Class ‘xxx’ method UAX...
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 ‘xxx’ method UAX Access to the ‘AppWebService’ 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[DataConst.COMPANY];

// Domain

serviceClient.ClientCredentials.Windows.ClientCredential.Domain = HttpContext.Current.Request.Headers[DataConst.DOMAIN];

// UserName

serviceClient.ClientCredentials.Windows.ClientCredential.UserName = HttpContext.Current.Request.Headers[DataConst.USER];

// Password

serviceClient.ClientCredentials.Windows.ClientCredential.Password = HttpContext.Current.Request.Headers[DataConst.PASSWORD];

// AX method

itemNum = serviceClient.getItemCode(context, brand, item, vendCategory, maker, itemSequence);

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans