Hi, i made a node.js application which communicates with AX through AIF(http service hosted on iis). The application is clocking in and out workers, and also starts and stops jobs. I am using the buildt-in jmgshopfloorservice for this.
My problem is, when i try to send a 'clock-out' request to the server, i get in response 'Value was either too large or too small for an Int32', and this message isn't telling me much about the problem. Is it the request that is too large/small or is it the response?
This is the XMLbody i am sending:
The request-headers looks like this:
'Content-Type': 'text/xml; charset=utf-8',
'Authorization': 'Basic ' + new Buffer('domain\\user:pass').toString('base64'),
'SOAPAction': 'schemas.microsoft.com/.../clockOut'
In AIF history in AX i can see that jmgShopFloorService.clockout got called, and the AIF exception log shows nothing.
I do not know if this error comes from AX or IIS. I would appreciated some help on this.
EDIT: I did some more testing and found out that this error appears when i have started a job and then tries to clock out, so it is an AX error as of my understanding. Either way this error still does not make any sense.
*This post is locked for comments
I have the same question (0)