Closed pmoon7 closed 7 years ago
@pmoon7
Have you looked into the buildRequest():
In authenticating you will see there is a call for buildRequest()
function which returns the array of requests.
after web connector login success, the next request from web connector will be sendRequestXML()
and in that function, if you see the req
, it's getting the first request and again return the values to the QuickBooks.
Please see the document to understand the Web Connector Document.
I did try to read the doc. I was able to trace:
@pmoon7 okay.
I guess you are not able to login with the web connector successfully. can you post here the logs from web connector and your javascript qbwc file.
Can you also verify that you are passing the correct username and password matching with the quickbooks web connector?
qbws.QBWebConnectorSvc.QBWebConnectorSvcSoap.authenticate =
function (args) {
var authReturn = [];
announceMethod('authenticate', args);
authReturn[0] = uuid.v1();
serviceLog(' Password locally stored = ' + password);
// Put the username and password static over here and try again
// also verify that you are provide the correct .qwc file for web connector.
// .qwc file http://wiki.consolibyte.com/wiki/doku.php/quickbooks_web_connector#example_qwc_file example
if (args.strUserName.trim() ==="QB_USERNAME" && args.strPassword.trim() === "QB_PASSWO") {
req = buildRequest();
if (req.length === 0) {
authReturn[1] = 'NONE';
} else {
// An empty string for authReturn[1] means asking QBWebConnector
// to connect to the company file that is currently opened in QB
authReturn[1] = companyFile;
}
} else {
authReturn[1] = 'nvu';
}
serviceLog(' Return values: ');
serviceLog(' string[] authReturn[0] = ' + authReturn[0]);
serviceLog(' string[] authReturn[1] = ' + authReturn[1]);
return {
authenticateResult: { 'string': [authReturn[0], authReturn[1]] }
};
};
John: Thanks for staying with me....here's the log
20170102.20:43:33 UTC : QBWebConnector.WebServiceManager.DoUpdateSelected() : updateWS() for application = 'QuickBooks Integrator' has STARTED
20170102.20:43:33 UTC : QBWebConnector.RegistryManager.getUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock = FALSE
20170102.20:43:33 UTC : QBWebConnector.RegistryManager.setUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock has been set to True
20170102.20:43:33 UTC : QBWebConnector.RegistryManager.setUpdateLock() : Update session locked
20170102.20:43:33 UTC : QBWebConnector.SOAPWebService.instantiateWebService() : Initiated connection to the following application.
20170102.20:43:33 UTC : QBWebConnector.SOAPWebService.instantiateWebService() : AppName: QuickBooks Integrator
20170102.20:43:33 UTC : QBWebConnector.SOAPWebService.instantiateWebService() : AppUniqueName (if available): QuickBooks Integrator
20170102.20:43:33 UTC : QBWebConnector.SOAPWebService.instantiateWebService() : AppURL: http://localhost:8000/wsdl
20170102.20:43:33 UTC : QBWebConnector.SOAPWebService.do_serverVersion() : Calling serverVersion().
20170102.20:43:33 UTC : QBWebConnector.SOAPWebService.do_serverVersion() : Received from serverVersion() following parameter:
John: This is the log from qbws file:
server starting localhost
info: Handling POST on /wsdl
received: <?xml version="1.0" encoding="utf-8"?>
@pmoon7 as per your QuickBooks Log I'm seeing the error Object reference not set to an instance of an object.
and from this link I understand that you are not passing the server version to the QuickBooks Web Connector in serverVersion() so just add in the return of the server version is 0.2.1
and for client its fine if you pass the blank.
been playing with qbws....I was able to authenticate but I'm stumped as to how to send and received xml to/from webconnector. Can you give me a clue? Thanks