JSONRPC support in TclSOAP?

Posted by tcldev on 2009-05-19 07:13

Am I missing something or is JSONRPC not included with TclSOAP? When I try to load the package it cannot find it. I've even tried copy and pasting the example code from the documentation to make sure I was not typing it incorrectly.

andreas.kupries
ActiveState Staff
Tue, 2009-05-19 09:01

Hello Tcldev.

Are you using ActiveTcl ?
If yes, which version of ActiveTcl ?

If you are using ActiveTcl 8.5 you will have to use teacup to install
the jsonrpc package, and other related packages, tclsoap is the core soap package, but not bundle of everything you have.

% teacup list rpc
entity name version platform
------- ------- ------- --------
package JSONRPC 0.1 tcl
package rpcvar 1.2 tcl
package XMLRPC 1.0 tcl
package XMLRPC 1.0.1 tcl
------- ------- ------- --------
4 entities found

% teacup list soap
entity name version platform
------- ----------------- ------------------------- --------
package SOAP 1.6.7 tcl
package SOAP 1.6.7.1 tcl
package SOAP 1.6.8.1 tcl
package SOAP::CGI 1.0 tcl
package SOAP::CGI 1.0.1 tcl
package SOAP::Domain 1.4 tcl
package SOAP::Domain 1.4.1 tcl
package SOAP::ftp 1.0 tcl
package SOAP::http 1.0 tcl
package SOAP::https 1.0 tcl
package SOAP::Service 0.4 tcl
package SOAP::Service 0.5 tcl
package SOAP::smtp 1.0 tcl
package SOAP::Utils 1.0.1 tcl
package SOAP::Utils 1.1 tcl
package SOAP::xpath 0.2 tcl
package soapinterop::B 1.0 tcl
package soapinterop::base 1.0 tcl
package soapinterop::C 1.0 tcl
package tclsoap 0.0.0.2008.07.09.23.15.40 source
package tclsoap 0.0.0.2008.07.10.23.09.54 source
package tclsoap 0.0.0.2008.07.15.23.12.19 source
package tclsoap 0.0.0.2008.10.20.18.16.16 source
------- ----------------- ------------------------- --------
23 entities found

tcldev | Tue, 2009-05-19 09:12

Thanks! I got it installed. Tip: JSONRPC is all caps! It would have saved me some time!