ReceiveResponse Event
Fires when a response is received.
Syntax
[VB.NET] Public Event OnReceiveResponse As OnReceiveResponseHandler
[C#] public event OnReceiveResponseHandler OnReceiveResponse; public delegate void OnReceiveResponseHandler(object sender, QbwcserverReceiveResponseEventArgs e); class QbwcserverReceiveResponseEventArgs : EventArgs { string SessionTicket {get;} string Response {get;} string ErrorCode {get;} string ErrorMessage {get;} bool Success {get;} int PercentDone {get; set;} }
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 components 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.