Summary

Tcl offers support for a wide range of standards for remote method invocations. We can use it for accessing APIs available from other applications or services. We can also export our own functionality.

We can interact with other applications using XML-RPC, which is widely used by websites as it is easier to implement and lightweight. All that is needed is to know the methods and arguments they take; we can then easily access methods from other applications. Our application can also benefit from SOAP. Similar to XML-RPC we can invoke commands over SOAP. In this case we only need to know the URL of the WSDL file, which is a definition of the web service, the methods it offers and all data types related to it.

Despite the advantages of easy ...

Get Tcl 8.5 Network Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.