Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
using http package to receive one-way soap/xml message
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
anj patnaik  
View profile  
 More options Feb 9, 6:01 pm
Newsgroups: comp.lang.tcl
From: anj patnaik <patn...@gmail.com>
Date: Thu, 9 Feb 2012 15:01:55 -0800 (PST)
Local: Thurs, Feb 9 2012 6:01 pm
Subject: using http package to receive one-way soap/xml message
Hello all,

I am using http package to send soap xml requests and receive xml
responses. This is synchronous and works well. I am using http package
on the client side and the web service is running remotely and is
implemented in a different programming language.

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? If so, can you point me to any examples?

For request/response, my client does this:

# Send request

set token [ ::http::geturl $Proxy \
-type "text/xml" \
-query $Form -timeout $TMOUT ]

# get response in xml
http::data $token

Thanks a lot!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gerald W. Lester  
View profile  
 More options Feb 9, 7:32 pm
Newsgroups: comp.lang.tcl
From: "Gerald W. Lester" <Gerald.Les...@KnG-Consulting.net>
Date: Thu, 09 Feb 2012 18:32:38 -0600
Local: Thurs, Feb 9 2012 7:32 pm
Subject: Re: using http package to receive one-way soap/xml message
On 2/9/12 5:01 PM, anj patnaik wrote:

> Hello all,

> I am using http package to send soap xml requests and receive xml
> responses. This is synchronous and works well. I am using http package
> on the client side and the web service is running remotely and is
> implemented in a different programming language.

> 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.

--
+------------------------------------------------------------------------+
| Gerald W. Lester, President, KNG Consulting LLC                        |
| Email: Gerald.Les...@kng-consulting.net                                |
+------------------------------------------------------------------------+


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tomas  
View profile  
 More options Feb 12, 5:18 am
Newsgroups: comp.lang.tcl
From: tomas <to...@axelspringer.de>
Date: Sun, 12 Feb 2012 11:18:03 +0100
Local: Sun, Feb 12 2012 5:18 am
Subject: Re: using http package to receive one-way soap/xml message
"Gerald W. Lester" <Gerald.Les...@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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gerald W. Lester  
View profile  
 More options Feb 13, 11:23 am
Newsgroups: comp.lang.tcl
From: "Gerald W. Lester" <Gerald.Les...@KnG-Consulting.net>
Date: Mon, 13 Feb 2012 10:23:03 -0600
Local: Mon, Feb 13 2012 11:23 am
Subject: Re: using http package to receive one-way soap/xml message
On 2/12/12 4:18 AM, tomas wrote:

Tomas, on a side communication I pointed him at TclWs' Embedded and gave him
some guidance -- but the work to be done will require understanding and
diving into some of the lower levels.

--
+------------------------------------------------------------------------+
| Gerald W. Lester, President, KNG Consulting LLC                        |
| Email: Gerald.Les...@kng-consulting.net                                |
+------------------------------------------------------------------------+


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
anj patnaik  
View profile  
 More options Feb 13, 1:14 pm
Newsgroups: comp.lang.tcl
From: anj patnaik <patn...@gmail.com>
Date: Mon, 13 Feb 2012 10:14:42 -0800 (PST)
Local: Mon, Feb 13 2012 1:14 pm
Subject: Re: using http package to receive one-way soap/xml message
Thanks for the ideas! I have never used the httpd server that is tcl
based, but I have a tiny bit of experience with sockets.

is the httpd server a better solution than having a socket server that
just reads off the data ?

Unfortunately, the server is down so I am not able to get data. But I
was wondering if XML POST over HTTP is strings that can be read off
socket...

All I need is the ability to receive XML data over HTTP at the URL and
then parse the XML and display it as an array or list. So, I am not
sure if httpd is overkill.

Thanks.

On Feb 12, 5:18 am, tomas <to...@axelspringer.de> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tomas  
View profile  
 More options Feb 13, 4:10 pm
Newsgroups: comp.lang.tcl
From: tomas <to...@axelspringer.de>
Date: Mon, 13 Feb 2012 22:10:37 +0100
Local: Mon, Feb 13 2012 4:10 pm
Subject: Re: using http package to receive one-way soap/xml message
"Gerald W. Lester" <Gerald.Les...@KnG-Consulting.net> writes:

> Tomas, on a side communication I pointed him at TclWs' Embedded and
> gave him some guidance -- but the work to be done will require
> understanding and diving into some of the lower levels.

Thanks. I did't know about TclW -- care to share a link? (my google-fu
(rather my ixquick-fu, but nevermind ;-) doesn't "cut" it

Regards
-- tomás


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tomas  
View profile  
 More options Feb 13, 4:22 pm
Newsgroups: comp.lang.tcl
From: tomas <to...@axelspringer.de>
Date: Mon, 13 Feb 2012 22:22:54 +0100
Local: Mon, Feb 13 2012 4:22 pm
Subject: Re: using http package to receive one-way soap/xml message

anj patnaik <patn...@gmail.com> writes:
> Thanks for the ideas! I have never used the httpd server that is tcl
> based, but I have a tiny bit of experience with sockets.

> is the httpd server a better solution than having a socket server that
> just reads off the data ?

You'd have to do the http dance yourself. That'd mean sending the right
headers to keep aour client from sending gzipped and/or chunked stuff,
maybe forcing the client to do HTTP 1.0 (or coping with 1.1
complexities). Not exactly rocket science, but a bit tedious and
debugging-prone.

Definitely doable.

> Unfortunately, the server is down so I am not able to get data. But I
> was wondering if XML POST over HTTP is strings that can be read off
> socket...

The xml "layer" is comparatively simple. SOAP likes to send things in
the headers as well, so beware.

> All I need is the ability to receive XML data over HTTP at the URL and
> then parse the XML and display it as an array or list. So, I am not
> sure if httpd is overkill.

See above. If you want to get the HTTP layer done for you, go for a
HTTP server. Otherwise you might "steal" inspiration/code there or from
http.

Regards
-- tomás


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gerald W. Lester  
View profile  
 More options Feb 13, 7:07 pm
Newsgroups: comp.lang.tcl
From: "Gerald W. Lester" <Gerald.Les...@KnG-Consulting.net>
Date: Mon, 13 Feb 2012 18:07:15 -0600
Local: Mon, Feb 13 2012 7:07 pm
Subject: Re: using http package to receive one-way soap/xml message
On 2/13/12 3:10 PM, tomas wrote:

> "Gerald W. Lester"<Gerald.Les...@KnG-Consulting.net>  writes:

>> Tomas, on a side communication I pointed him at TclWs' Embedded and
>> gave him some guidance -- but the work to be done will require
>> understanding and diving into some of the lower levels.

> Thanks. I did't know about TclW -- care to share a link?

http://core.tcl.tk/tclws

--
+------------------------------------------------------------------------+
| Gerald W. Lester, President, KNG Consulting LLC                        |
| Email: Gerald.Les...@kng-consulting.net                                |
+------------------------------------------------------------------------+


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tomas  
View profile  
 More options Feb 16, 1:09 pm
Newsgroups: comp.lang.tcl
From: tomas <to...@axelspringer.de>
Date: Thu, 16 Feb 2012 19:09:20 +0100
Local: Thurs, Feb 16 2012 1:09 pm
Subject: Re: using http package to receive one-way soap/xml message
Thanks!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »