Web Services Examples
package require SOAP
connect a web service and return an handle wsTemp.
set wsTemp ::SOAP::create C2F \\
-uri "http://www.soaplite.com/Temperatures" \\
-proxy "http://services.soaplite.com/temper.cgi" \\
-params { "temp" "float"} \\
-name c2f
input C degree, return F degree from [-40, +40)
for {set i -40} {$i < 40} {incr i} {
puts "C:$i = F:[$wsTemp $i]"
}
SOAP Server
|