Announcements
Dear Community ,
I have deployed the Webservice using basicHttpBinding in AIF Inbound Port and it is deployed in IIS as shown below figure
The Service is deployed with IDENTITY of ERPUser as can be seen in the above image and Windows Authentication is enabled on it.
I can consume the application using .Net Application by passing credentials of ErpUser and it get effected on each table in ax Purchase and Sales
When I am trying to access using ErpTest user ( same role in AX like ErpUser ) in my .Net Application . The different operations are performed under the credentials of ErpUser only .
My Requirement is I want to consume the service using ErpTest User .
I want to have erptest user to be registered on AX Tables whenever any changes happened in AX using .Net Client Application by passing ErpTest Credentials
Kindly shed some light on it.
Thanks In Advance.
Hi Abdul,
Please update if this issue was resolved.
Abdul,
I changed the Application Pool user to the AOS account and it still works fine.
Please try that option anyway and check if it works for you.
Please share the App.config settings for the .NET application as well.
Hi Bhattacharya,
Application Pool User is different than bussiness connector user in AX 2012
I will make the application Pool Identity User with User configured in Bussiness Connector and will reply you back
Thanks for responding
Abdul,
Is the user configured for the application pool the same as your business connector proxy user? I have the same settings as you do on my Dev box and it works without any issues
Please share the App.config settings for your .NET application as well.
Hello Bhattacharyya,
The Below Settings for WebService SGNInventQuarantineServiceHttpPort and the same settings are available for Default Website :
the below picture shows the application pool where ErpUser is defined at Identity column and by default the service is running on behalf of this user ( this user is get registered on AX Tables )
............................................................................................................................................................................................................................................
For Below Code , I am able to process the operations but the operations are performed behalf of ErpUser ( The Modified field in AX Table is ErpUser )
client.ChannelFactory.Credentials.UserName.UserName = @"sgn\ErpTest";
client.ChannelFactory.Credentials.UserName.Password = @"Axa6";
.......................................................................................................................................................................................................
For Below Code , I am able to process the operations but the operations are performed behalf of ErpUser ( The Modified field in AX Table is ErpUser )
client.ClientCredentials.UserName.UserName = @"sgn\ErpTest";
client.ClientCredentials.UserName.Password = @"Axa6";
.................................................................................................................................................................................
For Below Code, I am getting this error "{"Failed to logon to Microsoft Dynamics AX."}"
client.ClientCredentials.Windows.ClientCredential.UserName = @"sgn\ErpTest";
client.ClientCredentials.Windows.ClientCredential.Password = @"Axa6";
I want to have ErpTest User should be effected on AX Tables .
I request to community to kindly suggest me for the above problem
Thanks In Advance.
Hi Abdul,
Could you please share the .net application code you are using to connect and also a screenshot of the AIF website authentication settings?
André Arnaud de Cal...
294,206
Super User 2025 Season 1
Martin Dráb
232,968
Most Valuable Professional
nmaenpaa
101,158
Moderator