Re: WebServicesForTcl
- From: "Gerald W. Lester" <Gerald.Lester@xxxxxxx>
- Date: Thu, 30 Aug 2007 08:42:14 -0500
zacky.azoulay@xxxxxxx wrote:
On Aug 30, 3:04 pm, Mike Labedz <BMWM3...@xxxxxxxxx> wrote:On Wed, 29 Aug 2007 09:54:13 -0700, zacky.azou...@xxxxxxx wrote:Hi,I recommend looking athttp://members.cox.net/~gerald.lester/WebServicesForTcl.html
I try WebServicesForTcl and tclhttpd3.5.1 from cmd I succeed to get
the result.
With the browser I can see the services using the /service/index.tml.
Is there an example how to get Web Services result from the browser
and html or tml file?
Thank Zacky
This is an amazingly simple implementation as long as your
organization isn't so back arsewards as to use TCL 8.3
There is good examples as well.
At least I get to use the serverside for my app...just wish I had
Client Side as well.
Mike
Hi,
I already see those example, I success to run the service from tml but
it is tricky (in run on the server).
In httpdthread.tcl I add the lines:
package require WS::Client
package require WS::Utils
In the end I add
::WS::Client::GetAndParseWsdl http://localhost:2080/service/wsEchoExample/wsdl
Add the file time1.tml to htdocs\service
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<hr>
<title>Test Http_Refresh</title>
<meta http-equiv="refresh" content="3">
</head>
<body>
<h1>This page uses Service [::WS::Client::DoRawCall wsEchoExample
ComplexEcho [list TestString ""]]</h1>
<p> Refresh 3 seconds.</p>
<hr>
</body>
</html>
It work but with 2 http request and the process run on the server
side.
Is there any option to run this request from the browser and the
process will run on the client side?
Web Services are intended for a program to talk to another program, not interface directly to a browser.
That being said, you have the following options:
1) Have a TML page (or pages) that directly call the underling procedures (after all they are in the same web server).
2) Use the Tcl Plugin on your browser and code up something that does and displays the request.
3) Same as #2, but code it in Java or JavaScript
--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
.
- References:
- WebServicesForTcl
- From: zacky . azoulay
- Re: WebServicesForTcl
- From: Mike Labedz
- Re: WebServicesForTcl
- From: zacky . azoulay
- WebServicesForTcl
- Prev by Date: Re: Web Scraping Login Required
- Next by Date: Re: Passing arguments on Windows (XP)
- Previous by thread: Re: WebServicesForTcl
- Next by thread: wicked pisser intro to tcl, wish I found earlier
- Index(es):
Relevant Pages
|