{"id":406,"date":"2023-11-20T14:13:29","date_gmt":"2023-11-20T06:13:29","guid":{"rendered":"https:\/\/live-d365fo.pantheonsite.io\/?p=406"},"modified":"2023-11-30T10:31:19","modified_gmt":"2023-11-30T02:31:19","slug":"using-webservice-to-connect-with-dynamics-ax","status":"publish","type":"post","link":"https:\/\/dev-d365fo.pantheonsite.io\/using-webservice-to-connect-with-dynamics-ax\/","title":{"rendered":"DynamicsAX\u4e0e\u7b2c\u4e09\u65b9\u7cfb\u7edf\uff08Using-webservice-to-connect-with-Dynamics-AX\uff09"},"content":{"rendered":"\n
\u5728”Csharp”\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528”Systemconnector”\u63d0\u4f9b\u7684\u63a5\u53e3\u4ece\u800c\u5b9e\u73b0\u6267\u884cAX\u5185\u90e8\u7a0b\u5e8f\u7684\u529f\u80fd\u3002<\/p>\n\n\n\n
\u5982\uff1a \u5b9e\u9645\u4e0a “axServiceProvider” \u662f\u901a\u8fc7\u5185\u7f6e\u51fd\u6570 “CallStaticClassMethod” \u6765\u5b9e\u73b0\u8c03\u7528AX\u5185\u90e8\u7a0b\u5e8f\u3002<\/p>\n\n\n\n \u5c06\u7b2c\u4e09\u65b9\u5916\u90e8\u7a0b\u5e8f\u7ec4\u7ec7\u7684XML\u6570\u636e\u4e3b\u52a8\u4f20\u9012\u7ed9AX\uff0cAX\u5185\u90e8\u53ea\u9700\u8981\u89e3\u6790\u8be5XML\u6570\u636e\u5373\u53ef\u6267\u884c\u76f8\u5e94\u7684\u4e1a\u52a1\u903b\u8f91\u64cd\u4f5c\u3002<\/p>\n\n\n\n \u5728 axServiceProvider \u4e2d\u6211\u4eec\u53ef\u4ee5\u8bbe\u5b9aAX2009\u7684\u73af\u5883\u7aef\u53e3\uff0c\u7528\u6237\uff0c\u5bc6\u7801\uff0c\u516c\u53f8\u7b49\u4fe1\u606f\uff0c\u540c\u6837\u53ef\u4ee5\u6784\u5efa\u66f4\u591a\u7684\u65b9\u6cd5\u6765\u8c03\u7528Ax\u4e0d\u540c\u7684\u529f\u80fd\u3002<\/p>\n\n\n\n \u4e0b\u6587\u662f\u901a\u8fc7”Csharp”\u4ee3\u7801\u8c03\u7528\u63a5\u53e3\u7684\u6837\u4f8b\uff1a<\/p>\n\n\n\naxServiceProvider.handleAgileData(\"cig\", _XMLStr);<\/code><\/p>\n\n\n\n
string returnStr = (string)op.CallStaticClassMethod(\"AX Class\", \"Class Method\", _legal, _XMLStr);<\/code><\/p>\n\n\n\n
Consume SystemConnector in VS<\/h2>\n\n\n\n