Got heaps of exceptions when trying to invoke Dynamics AX 2012 Service from VS.Net
Below, is a snapshot from System Administration > Periodic > Services and Application Integration Framework > Exceptions
a. Field 'Language' must be filled in
b. Field 'Currency' must be filled in
c. Item Number 1205 does not exist
d. Creation has been cancelled
After some investigation, found that it was required to pass callcontext object explicitly after setting company and language from VS.Net as shown below:
Update: Figured out that we need not pass explicitly company and language information through code via callcontext, if the logged on user belongs to the company "ceu". In my case, the logged in user was pointing to "dat" so changed it to "ceu" in User Options form and it works fine without callcontext.