(M)  s i s t e m a   o p e r a c i o n a l   m a g n u x   l i n u x ~/ · documentação · suporte · sobre

 

13. Using XML-RPC with Proprietary Languages

Implementations of XML-RPC are available for the following proprietary programming languages and environments.

13.1. Using XML-RPC with K

(This section of the XML-RPC HOWTO was generously provided by Christian Langreiter.)

K is a language used in finance and database development. To install XML-RPC for K, download it from the Kx website. Uncompress and copy the files into the directory in which you keep your .k programs.

Here's a short client:

\l kxr
server:("localhost";"/cgi-bin/sumAndDifference.cgi");
.kxr.c[server;"sumAndDifference";2 3]

And here's a server:

\l kxrsc
.kxr.sm: ,("sumAndDifference";{.((`sum;+/x);(`difference;-/x))})

More examples are included in the distribution.