QuickBooks Integrator 2020 C++ Edition

Questions / Feedback?

ReceiveResponse Event

Fires when a response is received.

Syntax

ANSI (Cross Platform)
virtual int FireReceiveResponse(QBWCServerReceiveResponseEventParams *e);
typedef struct {
const char *SessionTicket;
const char *Response;
const char *ErrorCode;
const char *ErrorMessage;
int Success;
int PercentDone; int reserved; } QBWCServerReceiveResponseEventParams; Unicode (Windows) virtual INT FireReceiveResponse(QBWCServerReceiveResponseEventParams *e);
typedef struct {
LPCWSTR SessionTicket;
LPCWSTR Response;
LPCWSTR ErrorCode;
LPCWSTR ErrorMessage;
BOOL Success;
INT PercentDone; INT reserved; } QBWCServerReceiveResponseEventParams;
- (void)onReceiveResponse:(NSString*)sessionTicket :(NSString*)response :(NSString*)errorCode :(NSString*)errorMessage :(BOOL)success :(int*)percentDone;
#define EID_QBWCSERVER_RECEIVERESPONSE 10

virtual INT INQB_CALL FireReceiveResponse(LPSTR &lpszSessionTicket, LPSTR &lpszResponse, LPSTR &lpszErrorCode, LPSTR &lpszErrorMessage, BOOL &bSuccess, INT &iPercentDone);

Remarks

This event fires after SendRequest to provide the response of the request. The parameters are as follows:

SessionTicket identifies the session.

Response holds the qbXML response. This may be passed to the QBResponseAggregate property or InputQBXML method of other classs in this toolkit to parse the response. In the case of an error this parameter will be empty. This value is read-only.

ErrorCode holds the error code (HResult) returned by QuickBooks. This value is read-only.

ErrorMessage holds the error message returned by QuickBooks. This value is read-only.

Success indicates whether the request was processed successfully by QuickBooks. If this value is False check HResult and Message for details. This value is read-only.

PercentDone indicates the current progress to QuickBooks Web Connector. A value of 100 means there are no more requests to be processed for this session.

A positive value less than 100 indicates there is still more work to do in this session and QuickBooks Web Connector will make another call and SendRequest will fire again. There is no limit to the number of requests in a session, so you may continue to set this value to a positive number less than 100 to continue the session.

A negative value indicates and error and will cause GetLastError to fire.

The default value is 100, which indicates there is no more work to do for this session.

Copyright (c) 2021 /n software inc. - All rights reserved.
QuickBooks Integrator 2020 C++ Edition - Version 20.0 [Build 7941]