Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

How to build Asynchronous Web Services in PB.NET

$
0
0

Hi,

I have a webservice built in powerbuilder 12.5 .net deployed to IIS 7.

The XML message passed to the service ends up in a complex nested structure in PB, and the processing works fine.

 

My challenge now is that the message is growing a lot, which also ends up with long processing time.

 

Therefore I would like my "main" service to reply right away, that the message was received, and then do the processing afterwards.

 

I have tried several things like creating different NVO's ( including shared), built another web service without return code to handle the processing, but it seems that PB either kills all threads, if you post anything, or is waiting until the processing is done, even if I invoke a processing service from the main service, the main service does not return until processing is done.

 

The only solution as I see it, must be to save the message received in a queue, and have a separate process emptying the queue.

Is there a way to get the original XML message received by the service, or do I have to run through the complete nested structure, and build some kind of xml-message manually?

 

Any good ideas are welcome.

 

Thanks


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>