"Gerald W. Lester" <Gerald...@KnG-Consulting.net> writes:
> On 2/9/12 5:01 PM, anj patnaik wrote:
>> Hello all,
>>
>> I am using http package to send soap xml requests [...]
>> Now, I have a scenario where the web server sends me a one-way
>> notification xml message. Does tcl http package have a way for me to
>> receive data asynchronously? ...
>
> No.
Hm. How does "the web server send a notification message"? Surely it's
acting as a client here?
Note that http isgeared towards building a client. It has all the
machinery to work asynchronously (and does a fine job at that), and it
has the necessary machinery to construct and parse HTTP (if you squint a
bit, client and server messages (i.e. "requests" and "responses") are
more or less the same, except the first line).
So it wouldn't be hard to implement a minimal HTTP server re-using
http's "infrastructure".
Before embarking in that I'd recommend looking into the HTTP servers
implemented in Tcl (of which there are some with much tradition). Off
the top of my cache:
Tclhttpd <
http://wiki.tcl.tk/2085>
AOLServer <
http://wiki.tcl.tk/2078>
NaviServer <
http://wiki.tcl.tk/2090>
As far as I understand, the first choice is a minimalist approach and
AOLServer and NaviServer are both incarnations of more or less the same
thing: full-fledged and with all bells and whistles. But I'll leave to
others (much more knowledgeable than me) to fill-in more details.
Hope that helps
-- tomás