Hi all.
Not new to PB but new to multithreading. I have a process that using Chilkat, sends an xml string to a query service, and then processes the response file.
I now need to give the user the ability to cancel the call. All of the processing takes place in a nvo.
Upon receiving the response file I then have to error check, decrypt, and process before I can load the datastore.
I am struggling with how and where to make calls. Any suggestions or an example of something like this would be greatly appreciated.
I've read the articles by J Fauss, they did not help.
PB2021 / Windows11 / Chilkat 9.5.0.86
Thank you
The goal would be to stop the call before it happens. That's the only way I can see to 'cancel' the call.
I don't see a way of cancelling the Chilkat call no.
Nothing GUI, there are some calls to 'gnv_app' for auditing.
We are using Chilkat as an API to post a soap call to a query service, so REST API.
The NVO does perform some GUI, but after the datastore is loaded. Processing the response file involves decryption and parsing to load the datastore.
The main User object has a 'cancel button', So after the user selects the 'search' button they would have a limited time to hit cancel. Search issues the call to the nvo to create the SOAP and initiate the post xml.
To point 6 no. There is no way for the user to select 'cancel'. All I'm hoping to do really is set a variable that can be checked prior to issuing the post call.
I was directed to investigate multi threading as a solution.