2 replies [Last post]
dpolant's picture
Joined: 03/08/2011
Juice: 4
Was this information Helpful?

We're building a module that sends orders back to quickbooks through the Quickbooks web connector utility, using a modified version of the soap server module that works in D7 and solves some function namespace issues. However I am having trouble getting QB to understand the response that my server is sending. The QB requests run the right functions, and I have verified that the web server is responding in what looks like proper SOAP. Quickbooks though cannot understand anything I send back. I used the output buffer to record what my server is sending:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<response_object SOAP-ENC:arrayType="xsd:string[2]" xsi:type="SOAP-ENC:Array">
<item xsi:type="xsd:string">Q3cLrAxKHqrkojy9_IYTRMK_3JTyyEO4RJ7bjF0_Xzs</item>
<item xsi:type="xsd:string">Test Company</item>

This is what my server is sending back to the QB authenticate call. It immediately triggers the infamous "Object reference not set to an instance of an object" error. QB also claims that it is receiving an empty string from clientVersion even though my function returns an okay (O:message) response.

If any one can take a look at my SOAP response and give me some advice on why QB isn't understanding it, I would be grateful.

TR's picture
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3284
Re: Integrating Quickbooks with SOAP server and services (D7)

Are you going to be posting the completed code on drupal.org for everyone to use?

bfsworks's picture
Joined: 05/04/2009
Juice: 14
Quickbooks Online API

Quickbooks Online now has API Documentation:


You can import your data from Quickbooks desktop into Quickbooks Online. This new SaaS API for Quickbooks should make it easy to develop an integrated module to work with Ubercart and Drupal.

Just a thought....