... Using XML-RPC with Perl . ... Frontier::RPC2 doesn't provide built-in support for CGI-based servers. ... Process a CGI call. sub process_ cgi _call ($) { my ($methods) = @_; # Get our CGI request information. my $method = $ENV{' REQUEST _METHOD'}; my $type = $ENV{'CONTENT_TYPE'}; my $ length = $ENV{'CONTENT_ LENGTH '}; # Perform some sanity checks. http_error (405, Method Not Allowed ) unless $method eq POST ; http_error (400, Bad Request ) unless $type eq text/xml ; http_error (411,...
XML-RPC HOWTO . Prev . Chapter 9. Applications with Built-in XML-RPC Support . Next . KDE 2.0 includes Kurt Ganroth's kxmlrpc daemon , which allows you to script KDE applications using XML-RPC. Here's a short sample application in Python. It shows you how to connect to kxmlrpc, manipulate your KDE address book, and query the KDE trader. If you have any other articles or example code, please see Chapter 10 . We'd like to have more information on scripting KDE. ...
. XML-RPC HOWTO . Prev . Next . Table of Contents . A Java Client . A Stand-Alone Java Server . Hannes WallnЖfer has provided an excellent implementation of XML-RPC for Java. To install it, download the distribution, unzip it, and add the *.jar files to your CLASSPATH . On a Unix system, you can do this by typing: $ unzip xmlrpc-java.zip $ cd xmlrpc-java/lib $ CLASSPATH=`pwd`/openxml-1.2.jar:`pwd`/xmlrpc.jar:$CLASSPATH . Prev . Home . Next . A CGI-Based C Server . A Java Client
XML-RPC HOWTO . ... Using XML-RPC with Java . ... Save the following program in a file named JavaServer.java . import java.util.Hashtable; import helma.xmlrpc.*; public class JavaServer { public JavaServer () { // Our handler is a regular Java object. ... WebServer server = new WebServer(8080); server.addHandler("sample", new JavaServer()); } catch (Exception exception) { System.err.println("JavaServer: " + exception.toString()); } } } . ... A Java Client . ... Using XML-RPC with PHP ...
XML-RPC HOWTO . ... Using XML-RPC with Java . ... XmlRpcClient server = new XmlRpcClient(server_url); // Build our parameter list. Vector params = new Vector(); params.addElement(new Integer(5)); params.addElement(new Integer(3)); // Call the server, and get our result. Hashtable result = (Hashtable) server.execute("sample.sumAndDifference", params); int sum = ((Integer) result.get("sum")).intValue(); int difference = ((Integer) result.get("difference")).intValue(); // Print out our result. ...
XML-RPC HOWTO . ... The History of XML-RPC . ... Here's a short XML-RPC client written in Perl. We use Ken MacLeod's Frontier::Client module.) use Frontier::Client; $server = Frontier::Client->new(url => 'http://betty.userland.com/RPC2'); $name = $server->call('examples.getStateName', 41); print "$name\n"; . ... This time, we use Fredrik Lundh's xmlrpclib .) >>> import xmlrpclib >>> server = xmlrpclib.Server("http://betty.userland.com/RPC2") >>> server.examples.getStateName(41) 'South Dakota' . ...
XML-RPC HOWTO . Prev . ... What is XML-RPC? Next . XML-RPC was inspired by two earlier protocols. The first is an anonymous RPC protocol designed by Dave Winer and announced in an old DaveNet essay . ... The other, more important inspiration was an early draft of the SOAP protocol. A longer history of XML-RPC has been generously provided by Dave Winer. This also explains the relationship between XML-RPC and SOAP. ...
. XML-RPC HOWTO . Prev . Chapter 2. XML-RPC vs. Other Protocols . Next . DCOM is Microsoft's answer to CORBA. It's great if you're already using COM components, and you don't need to talk to non-Microsoft systems. Otherwise, it won't help you very much. Prev . Home . Next . XML-RPC vs. CORBA . Up . XML-RPC vs. SOAP
XML-RPC HOWTO . Prev . ... XML-RPC vs. Other Protocols . Next . CORBA is a popular protocol for writing distributed, object-oriented applications. It's typically used in multi-tier enterprise applications. ... CORBA is well-supported by many vendors and several free software projects. CORBA works well with Java and C++, and is available for many other languages. ... It's better-suited to enterprise and desktop applications than it is to distributed web applications. ...
. XML-RPC HOWTO . Prev . Next . Table of Contents . XML-RPC vs. CORBA . XML-RPC vs. DCOM . XML-RPC vs. SOAP . XML-RPC is not the only way to make remote procedure calls. Other popular protocols include CORBA, DCOM and SOAP. Each of these protocols has advantages and disadvantages. The opinions in the section are obviously biased; please take them with a grain of salt. Prev . Home . Next . Supported Data Types . XML-RPC vs. CORBA
... Save the following code in a file called getSumAndDifference2.cc : #include <iostream.h> #include <XmlRpcCpp.h> #define NAME "XML-RPC getSumAndDifference C++ Client" #define VERSION "0.1" #define SERVER_URL "http://xmlrpc-c.sourceforge.net/api/sample.php" static void get_sum_and_difference () { // Build our parameter array. ... XmlRpcClient server (SERVER_URL); XmlRpcValue result = server.call("sample.sumAndDifference", param_array); // Extract the sum and difference from our struct. ... A C Client ...
. XML-RPC HOWTO . Prev . Next . Table of Contents . A C Client . A C++ Client . A CGI-Based C Server . To get a copy of XML-RPC for C/C++, see the xmlrpc-c website . You can either download everything in RPM format, or you can build it from source. Prev . Home . Next . A Python Client . A C Client
XML-RPC HOWTO . ... Using XML-RPC with C and C++ . ... Save the following code in a file called getSumAndDifference.c : # include stdio.h # include xmlrpc.h # include xmlrpc_ client .h # define NAME XML-RPC getSumAndDifference C Client # define VERSION 0.1 # define SERVER_URL http://xmlrpc-c.sourceforge.net/api/sample.php void die_if_fault_occurred (xmlrpc_ env * env ) { /* Check our error-handling environment for an ... A C++ Client ...
XML-RPC HOWTO . ... Using XML-RPC with C and C++ . ... To compile it, you can type: $ CGI_CFLAGS=`xmlrpc-c-config cgi-server --cflags` $ CGI_LIBS=`xmlrpc-c-config cgi-server --libs` $ gcc $CGI_CFLAGS -o sumAndDifference.cgi sumAndDifference.c $CGI_LIBS . Once this is done, copy sumAndDifference.cgi into your webserver's cgi-bin directory. ... Using XML-RPC with Java ...
. XML-RPC HOWTO . Prev . Next . Table of Contents . Zope . KDE 2.0 . Several popular Linux applications include support for XML-RPC. These have already been described elsewhere, so we mostly provide pointers to articles. Prev . Home . Next . A PHP Server . Zope
. XML-RPC HOWTO . Prev . Next . To demonstrate XML-RPC, we implement the following API in as many languages as possible. struct sample.sumAndDifference ( int x , int y ) . This function takes two integers as arguments, and returns an XML-RPC <struct> containg two elements: . sum . The sum of the two integers. difference . The difference between the two integers. It's not very useful, but it makes a nice example. :-) . Prev . Home . Next . XML-RPC vs. SOAP . Using XML-RPC with Perl
... This is the Linux Assembly HOWTO. This document describes how to program in assembly language using FREE programming tools, focusing on development for or from the Linux Operating System, mostly on IA32 (i386) platform. ... Keywords : assembly, assembler, asm, inline asm, macroprocessor, preprocessor, 32-bit, IA32, i386, x86, gas, as86, nasm, OS, kernel, system, libc, system call, interrupt, small, fast, embedded, hardware, port . ... 3.1 GCC Inline Assembly . ... 6.3 Producing object code . ...
... 7.3 Repartitioning your DOS/Windows drives . ... 10.1 Terms of Use . ... To use Linux, however, you'll need to repartition the drive, so that you have one partition for MS-DOS, and one (or more) for Linux. ... For example, to create Linux partitions on the first SCSI drive in your system, you will use (or your installation program might generate from a menu choice) the command: . ... Here, we have a single MS-DOS partition using 61693 blocks on the drive, and the rest of the drive is free for Linux....
v3.7, May 2000 . This document contains an index to the Linux HOWTOs as well as other information about the HOWTO project. ... 3.2 mini-HOWTOs . ... Linux HOWTOs are documents which describe in detail a certain aspect of configuring or using Linux. ... Updated: February 1998 . ... Alpha-HOWTO , Brief Introduction to Alpha Systems and Processors . ... Updated: December 1999 . ... HOWTO-INDEX , The Linux HOWTO Index . ... Multiboot-with-LILO , Win95 + WinNT + Linux multiboot using LILO mini-HOWTO . ...
. v1.85, May 29, 2000 . This document describes how to enable the Linux IP Masquerade feature on a given Linux host. IP Masq is a form of Network Address Translation or NAT that allows internally connected computers that do not have one or more registered Internet IP addresses to have the ability to communicate to the Internet via your Linux box's single Internet IP address. 1.1 Introduction to IP Masquerading or IP MASQ for short . 1.2 Foreword, Feedback & Credits . 1.3 Copyright & Disclaimer . 2.1 What is