Re: WebServicesForTcl



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 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
I recommend looking athttp://members.cox.net/~gerald.lester/WebServicesForTcl.html

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



Relevant Pages

  • Re: BASIC authentication Issues with IE - Part II - Solved but WHY?
    ... We have complete control of the Request and Response ... it is up to the browser to send the credentials. ... ASP runs internally on the server. ...
    (microsoft.public.inetserver.iis.security)
  • Re: client gets always every first time for every page a 401
    ... only the first request get 401. ... Why does my Browser in case 5 not submit the Basic Authorization String ... credentials as used in 3, because they have the same root. ... Explorer has established a connection with the server by using Basic or NTLM ...
    (microsoft.public.inetserver.iis.security)
  • Re: How to write something to a html textfield and send it?
    ... > No need for controlling any particular browser. ... I'm not familiar with HTTP user ... and building the request in your program. ... The server doesn't know anything about a textfield; ...
    (comp.programming)
  • Re: client gets always every first time for every page a 401
    ... When the browser makes a request, ... If the server does not accept Anonymous or if the Anonymous ... then the browser must support this method to communicate with the ...
    (microsoft.public.inetserver.iis.security)
  • RE: DNS response Issue
    ... The browser depends on OS settings for name resolution. ... TCP/IP settings on the NIC point to the server for DNS ... >> 2 computers connected to the Switch (One a server another a client), ... >> client is removed from the LAN so any request from the client has to go ...
    (microsoft.public.win2000.dns)