Wednesday, June 7, 2017

QuickBooks Web Connector with Java

The QuickBooks Web Connector is a great alternative to integration with QuickBooks , because with QBWC is not necessary to use the COM + components that limit the choice of technology to be used in the integration.
The source code of the guide is available on GitHub:

Advantages of QuickBooks Web Connector

  • Communication with your server is performed through Web services, so it is not necessary to tether your application with COM + components (windows).
  • Web services can be developed in any language and on any platform, as long as it supports Web services.
  • QBWC can be configured to invoke your server from time to time, so it is not necessary for the user to do a manual intervention, having to open an application, click on synchronize etc. Simply configure QBWC to invoke Web services in the desired time interval.
  • It is easier to create generic applications (SaaS), because each QBWC request, in addition to user and password, it sends application identification, so a Web services can serve several clients.


To develop integration with Java, I'm using:
  • Eclipse
  • QuickBooks Enterprise Edition 10.0
  • QuickBooks Web Connector

First step - Creating the QWC file

The QWC file is the configuration file for your Web services in QBWC.
<?xml version="1.0"?>
  <AppDescription>A short description for WCWebService1</AppDescription>

Second step - wsimport QBWebConnectorSvc.wsdl

To build a Web services from the WSDL will use the wsimport , which will generate the JAX-WS compatible Web Services.
The WSDL for Web Services is available at url
To start I created a Basic Java project with Eclipse "File -> New -> Java Project -> JavaQuickBooksWebConnector".
cd /Users/pablo/workspace/JavaQuickBooksWebConnector/src/

wsimport qbwebconnectorsvc.wsdl -s . -p
  • -s to specify the directory where you will be generating the source code
  • -p to specify the package

No comments:

Post a Comment