Announcements
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
6.AX Service
7.AX ServiceGroup
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156