Neatware Header
Home   Products   Solutions   Partners   Store   Company   

Web Services Examples

  • SOAP Client
  • This example demonstrates a Web Service that converts F degree to C degree.

    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


Google
  Web Neatware.com