Hello,
I am trying to create employees in AX using HcmServices. When I create a simple .NET application and add a service reference to http://localhost:8101/DynamicsAx/Services/HCMServices, the proxy code is generated but it appears to contain two definitions of a class called CallContext. When I try to build the solution, I get these errors:
Error 1
The type 'ConsoleApplication1.MyHcmServices.CallContext' already contains a definition for 'Company'
Error 2
The type 'ConsoleApplication1.MyHcmServices.CallContext' already contains a definition for 'Language'
Error 3
The type 'ConsoleApplication1.MyHcmServices.CallContext' already contains a definition for 'LogonAsUser'
Error 4
The type 'ConsoleApplication1.MyHcmServices.CallContext' already contains a definition for 'MessageId'
Error 5
The type 'ConsoleApplication1.MyHcmServices.CallContext' already contains a definition for 'PartitionKey'
Error 6
The type 'ConsoleApplication1.MyHcmServices.CallContext' already contains a definition for 'PropertyBag'
Error 7
The type 'ConsoleApplication1.MyHcmServices.CallContext' already contains a definition for 'PropertyChanged'
Error 8
Type 'ConsoleApplication1.MyHcmServices.CallContext' already defines a member called 'RaisePropertyChanged' with the same parameter types
I can comment or delete the definition of one of these CallContext classes in the Reference.cs file that is generated and my solution will successfully compile. Has anyone run into this problem?