从 ASP.NET Web 应用程序查询 Quickbook
我正在尝试使我用 ASP.NET MVC2 编写的 Web 应用程序能够按需向 Quickbooks 发送和接收数据,而无需延迟/中间数据库/同步操作。 (请将此作为一个假设;我知道使用 Web 连接器并每 X 个时间单位同步是一个更好的主意,但这超出了该问题的讨论框架)
似乎唯一的方法这样做的方法是编写一个常规应用程序(它显然根本无法通过服务工作),然后让 Web 应用程序与该应用程序通信并通过该应用程序发送和接收数据。
所以我的问题是设置与 Web 应用程序通信的中间应用程序的理想方法是什么?
我应该编写常规控制台应用程序并从标准输出获取数据吗?或者有更好的方法来实现相同的目标吗?
I'm trying to enable a web application I've written in ASP.NET MVC2 to be able to send and receive data to and from Quickbooks on-demand, without a delay/intermediate database/sync operation. (Please take this as an assumption; I understand that it would be a better idea to use the Web Connector and sync every X units of time, but that is outside of the framework of discussion for this question)
It seems that the only way to do this is to write a regular application (it apparently will not work at all from a service), and then have the webapp communicate with that application and send and recieve data through that application.
So my question is what is the ideal way of setting up an intermediate application that will communicate with the web app?
Should I write a regular console application and get data from standard output? Or are there better ways of accomplishing the same goal?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
QuickBooks 通过 COM 接口公开其 API,但其使用方式存在一些限制。充当中继的中间应用程序是一个合适的解决方案。
我建议构建或使用一个通过 HTTP 侦听并代理对 QuickBooks 的请求和响应的应用程序。事实上,我们在我们的产品中使用了完全相同的方法 - RSSBus QuickBooks ADO.NET 提供程序。以下是我们在产品中所做的更多详细信息:http://rssbus。 com/kb/help/RQR1-A/pg_qbconnector.rst
QuickBooks exposes it's API through a COM interface and there are some limitations in how that can be used. An intermediate application that acts as an relay is an appropriate solution.
I would recommend building or using an application that listens over HTTP and proxies requests and responses to QuickBooks. In fact we use exactly the same approach in our product - RSSBus QuickBooks ADO.NET provider. Here are more details of what we do it in our product: http://rssbus.com/kb/help/RQR1-A/pg_qbconnector.rst