简体   繁体   English

rails web app,quickbooks和mysql

[英]A rails web app, quickbooks, and mysql

I've gotta use the inventory from quickbooks in my rails web app...it would be nice if I could get quickbooks to use mysql, as that way I could just use mysql between the app and quickbooks, which would make things easy. 我必须在我的rails web应用程序中使用quickbooks中的库存...如果我可以使用quickbook来使用mysql会很好,因为我可以在app和quickbooks之间使用mysql,这会让事情变得简单。

Does anyone know how to get quickbooks to use mysql? 有谁知道如何让quickbooks使用mysql? Or will I be forced to have my app communicate directly with quickbooks, which I wanna avoid :P 或者我将被迫让我的应用程序直接与quickbooks通信,我想避免:P

There are a few ways of integrating with QuickBooks, but if it's a web application, your best bet is to use the QuickBooks Web Connector, or to use a commercial package for SQL access. 有几种方法可以与QuickBooks集成,但如果它是一个Web应用程序,最好的办法是使用QuickBooks Web连接器, 使用商业软件包进行SQL访问。

The Web Connector is the only Intuit-supported solution to integrating with QuickBooks from a web application. Web Connector是唯一支持从Web应用程序与QuickBooks集成的Intuit支持的解决方案。 Basically, you build a SOAP server / Web Service which speaks a specific set of methods. 基本上,您构建一个SOAP服务器/ Web服务,它说出一组特定的方法。 The Web Connector then is installed on the machine running QuickBooks, and polls your web service asking "Hey, got anything for me to do?" 然后Web服务器安装在运行QuickBooks的计算机上,并轮询您的Web服务,询问“嘿,我有什么需要做的吗?” Your web service can then respond with qbXML requests (examples of qbXML here: QuickBooks qbXML Examples ) which tell the Web Connector "Add this customer: ..." or "Send me invoices which match: ..." or etc. etc. etc. The Web Connector then relays those requests to QuickBooks, QuickBooks processes them, and the response is relayed back to your web service. 然后,您的Web服务可以使用qbXML请求(此处为qbXML的示例QuickBooks qbXML示例 )进行响应,该请求告诉Web连接器“添加此客户:...”或“向我发送匹配的发票:......”等。然后,Web连接器将这些请求中继到QuickBooks,QuickBooks处理它们,并将响应中继回您的Web服务。 Your web service might then process the response somehow, and then send the next request over to the Web Connector. 然后,您的Web服务可能以某种方式处理响应,然后将下一个请求发送到Web连接器。 This can continue in a loop for as long as you like, continuing to send requests to QuickBooks and receiving the responses. 这可以在循环中继续,只要您愿意,继续向QuickBooks发送请求并接收响应。

You might also look into AccessBooks and QODBC. 您也可以查看AccessBooks和QODBC。 Both are commercial wrappers around the QuickBooks qbXML SDK which allow direct SQL access to QuickBooks. 两者都是围绕QuickBooks qbXML SDK的商业包装器,它允许直接SQL访问QuickBooks。

Here is some additional information on my QuickBooks Integration Wiki about how to integrate applications with QuickBooks . 以下是有关如何将应用程序与QuickBooks集成的 QuickBooks Integration Wiki的一些其他信息。

You might also want to search around on Google. 您可能还想在Google上搜索。 I know there were some QuickBooks Rails packages/gems out there somewhere, but last I looked it did not support the QuickBooks Web Connector. 我知道某处有一些QuickBooks Rails软件包/宝石,但最后我看起来它支持QuickBooks Web连接器。 Instead, the Rails application had to be installed on the same machine as QuickBooks, and it communicated via COM. 相反,Rails应用程序必须与QuickBooks安装在同一台机器上,并通过COM进行通信。

Pretty sure you will have to interface with Quickbooks directly. 很确定您必须直接与Quickbooks连接。 The other problem is going to be that because Quickbooks is a client-side application you will need to have an app on the client that pushes the data to the server. 另一个问题是因为Quickbooks是一个客户端应用程序,您需要在客户端上安装一个将数据推送到服务器的应用程序。 It's definitely doable. 这绝对可行。

Alternatively, you could just use the export functions of Quickbooks to periodically export the inventory as CSV. 或者,您可以使用Quickbooks的导出功能定期将库存导出为CSV。

http://behindlogic.com provides a Rubygem (for sale) that will deal with all of the pains of QBXML for you, and an HTTP Connector for QuickBooks that allows you to send/receive messages with QuickBooks through HTTP, which opens the door for connecting from another computer. http://behindlogic.com提供了一个Rubygem(待售),它将为您处理QBXML的所有痛苦,以及一个允许您通过HTTP使用QuickBooks发送/接收消息的QuickBooks的HTTP连接器,这将打开大门用于从另一台计算机连接。 The gem has an adapter built to use the Connector as well, so you can very quickly get up and running with QuickBooks on Windows and your Rails app on Linux or on your development Mac. gem还有一个适用于连接器的适配器,因此您可以非常快速地启动并运行Windows上的QuickBooks以及Linux或开发Mac上的Rails应用程序。


EDIT: Unfortunately, the maintainer of Behind Logic and the gem mentioned above has passed away . 编辑:不幸的是,Behind Logic的维护者和上面提到的宝石已经过世了 I hate bringing this up, however it took me a while to figure out why the GitHub repo was inactive and the site had gone down. 我讨厌提起这件事,但我花了一段时间才弄清楚为什么GitHub仓库处于非活动状态并且网站已经关闭。

We have been using the Web connector for a while now, and let me tell you its been pretty smooth so far. 我们一直在使用Web连接器一段时间了,让我告诉你到目前为止它已经相当顺利了。 Though the Intuit Quickbooks SDK doesn't let you do wt exactly QB UI would let you. 虽然Intuit Quickbooks SDK不会让你做到完全QB UI会让你。 Problems occur especially when you want to enter group items to QB using the SDK. 如果要使用SDK将组项输入QB,则会出现问题。 Use a webservice and let it build requests and process responses and push the required data to your database which can simply be anything from a SQL server to MySql/Oracle etc etc. Using this approach good amount of error handling can also be done. 使用Web服务,让它构建请求和处理响应,并将所需的数据推送到您的数据库,这可以是从SQL服务器到MySql / Oracle等的任何东西。使用这种方法也可以进行大量的错误处理

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

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