Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SOAP calls using EventMachine

Is there any way to make non-blocking SOAP requests within EventMachine?

I'm creating a ruby application which interacts with the google adwords api (which is SOAP based), using the adwords4r gem. The application uses EM to receive messages over a stomp connection, and then processes those messages by making SOAP calls to the adwords api. Obviously I need those calls to be non-blocking, since the processing will be within the reactor thread. One option would be to use EM.defer, but I'd rather not have the overhead of a bunch of threads in a threadpool.

like image 828
Pete Hodgson Avatar asked Jan 30 '26 03:01

Pete Hodgson


1 Answers

HandSoap can use EventMachine.

like image 100
troelskn Avatar answered Jan 31 '26 18:01

troelskn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!