modulo.org logo modulo.org
[ home about me music cv background involvements code community hosting metal log contact webmail ]

Thought Log
   from the mind of ben h kram

Fri, 27 Oct 2006

PoCo::Client::SOAP?

While there is a very useful PoCo::Server::SOAP, there isn't a PoCo::Client::SOAP module on CPAN. Reading the guts of SOAP::Lite and SOAP::Transport::HTTP::Client, it becomes pretty clear why. The send_receive() call needs to be broken in half to work with POE's state model. And SOAP::Transport expects that call to return!

Essentially, I need to start in the POE context, run some code I don't have control over, have it run some code I do have control over, which jumps back to the POE context. Then, at some other point in the POE code (when the HTTP response comes back from, say, PoCo::Client::HTTP), I return to the place I left off in a SOAP::Transport with the newly returned HTTP::Response object, and the call returns.

Yeek! But it may be possible with signals, and in particular with POE's kinda fake signals. It would be nice to have this class without totally rewriting SOAP::Lite.


  Posted at 08:40:50 | # | 0 Comments    


July
SunMonTueWedThuFriSat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

RSS

All text and images ©2003-2008 Ben H Kram
http://www.modulo.org