[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ftpapi] Asynchronous XML Request



One way of doing it could be to have two data queues – one for request and one for replies.

 

Then you have one ( or more jobs ) listening to the request data queue and send the request to whatever
target and wait for the results to be returned. When it is returned the result is sent to the result data queue.

This means this program handles the communication with the target.

 

The other program or programs send the request to the request data queue continues processing and at some point

checks if any data are returned in the data queue for replies.

If you are using the job information from the job where this job is running as a key then you can distinguish between

the different jobs sending requests when waiting for the reply having the matching key.

 

Take a look in the documentation for QSNDDTAQ, QRCVDTAQ and CRTDTAQ.

I actually made something similar with data queues 25 years ago.

 

Regards

Peder

 

Fra: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx <ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx> På vegne af Randy Susanto
Sendt: 4. februar 2020 15:46
Til: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Emne: [Ftpapi] Asynchronous XML Request

 

Hi All,

 

Is it possible to implement Asynchronous Request XML with Scott's HTTPAPI?

What I mean with "Asynchronous" is sending request and receiving the reply with different job/session.

So, the sending request session not need to wait the reply, and can process other requests. 

Other session will specifically handle that reply.

 

Thanks and Regards,

Randy



This email and any files transmitted with it may be confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender.

-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi