简体   繁体   English

sage 100 ERP的sData REST API

[英]sData REST APIs for sage 100 ERP

I have a business partner account. 我有一个商业伙伴帐户。 And, I have setup sage SData and Sage ERP 100 on window server machine. 而且,我在窗口服务器计算机上设置了Sage SData和Sage ERP 100。 I can access some resources in the browser like: 我可以在浏览器中访问一些资源,例如:

https://sage.lvh.me/SData/MasApp/MasContract/ABX/AR_Customer

It returns a huge file of XML. 它返回一个巨大的XML文件。 My problem is that, I need to integrate Sage ERP with my Rails application. 我的问题是,我需要将Sage ERP与我的Rails应用程序集成。 Which will fetch products from Sage ERP and also make order for those products from rails application? 哪个可以从Sage ERP获取产品,还可以从Rails应用程序订购这些产品?

So, I need a complete sample API request which accepts some parameters (like page, perpage, type of request GET or POST) in request and return parseable XML/JSON response. 因此,我需要一个完整的示例API请求,该请求在请求中接受一些参数(如页面,页面,请求GET或POST的类型)并返回可解析的XML / JSON响应。

Any help in this regard will be appreciated. 在这方面的任何帮助将不胜感激。

I'm not familiar with SData. 我对SData不熟悉。 But I did find a link that will help: https://sagecity.na.sage.com/support_communities/sage100_erp/f/sage-100-business-object-interface/72926/sdata-install-training 但是我确实找到了一个可以帮助您的链接: https : //sagecity.na.sage.com/support_communities/sage100_erp/f/sage-100-business-object-interface/72926/sdata-install-training

From the read, it doesn't really look mature. 从阅读的内容来看,它看起来并不真正成熟。

I use the SOTAMAS90 ODBC DSN to read Sage 100 data, and the Business Objects Interface (BOI) to write objects back to Sage 100. For reading data, you just read like with any ODBC data source, providing the Connection string "DSN=SOTAMAS90; UID=; PWD=; Company = ABC" 我使用SOTAMAS90 ODBC DSN读取Sage 100数据,并使用业务对象接口(BOI)将对象写回到Sage100。对于读取数据,您就像读取任何ODBC数据源一样,提供连接字符串“ DSN = SOTAMAS90 ; UID =; PWD =;公司= ABC”

For writing back to Sage you would typically use the BOI, which is a COM object that gets installed with Sage. 要写回Sage,通常需要使用BOI,BOI是随Sage一起安装的COM对象。 There is a ton of sample code on the BOI forum, which is here: https://sagecity.na.sage.com/support_communities/sage100_erp/f/sage-100-business-object-interface . BOI论坛上有大量示例代码,位于此处: https : //sagecity.na.sage.com/support_communities/sage100_erp/f/sage-100-business-object-interface

Good luck. 祝好运。 Let us know if you need more help. 让我们知道您是否需要更多帮助。

Aaron 亚伦

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM