最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

在Dynamics Ax 2012中调用 Json 服务 / Json Service Call in Dynamics Ax 2012.

网络文摘 alirazazaidi 142浏览 0评论
Recently I got chance to call restful Json based service in Dynamics Ax 2012. I used a C# class library and then add to AOT.  AX 2012 Json based service successfully called both client side and server side. Only tricky part was to make Json string or payload. I used to make Json string something similar. Both works in C# as well as X++  
  payload += “{\”ApproversEmpCode\”:\””+ employeeCode +”\”,”; payload += “\”message\”:\””+table.Message +” “+ strReplace(Message,”\'”,”`”)+”\”,”; payload +=  “\”requestType\”:\”” +tableId2Name(TableId) +”\”,”; payload += “\”transactionId\”:\””+int642str(RecId)+”\”}”;  
  Happy Daxing.
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址