Skip to Content
Programming Web Services with XML-RPC
book

Programming Web Services with XML-RPC

by Simon St. Laurent, Dave Winer, Joe Johnston, Edd Wilder-James
June 2001
Intermediate to advanced
234 pages
6h 32m
English
O'Reilly Media, Inc.
Content preview from Programming Web Services with XML-RPC

Chapter 7. Bridging XML-RPC and COM: XML-RPC in ASP

XML-RPC is about breaking down the barriers of language and platform. With it, you are free to use your preferred operating system with your preferred programming language to get at the computer resources you need. If you’re a Unix hacker, you may be frustrated by Microsoft Windows programs that don’t provide adequate support for remote usage. If you’re a Windows coder, you might want a standard way to get at the resources on a Unix machine. The answer to both of these problems is XML-RPC, a protocol well-suited to creating platform-independent gateways to server resources. Designing those gateways to and from Microsoft Windows is the subject of this chapter.

This chapter demonstrates how to build XML-RPC listeners and clients using the ASP library written in VBScript. To get a flavor of the typical cross-language use of XML-RPC, Perl clients and servers are also shown briefly. If you don’t understand Perl, please have a look at Chapter 4, which talks more about using Perl’s Frontier::RPC library.

Using XML-RPC with ASP

For the impatient, Example 7-1 shows the contents of a file called rpc_sum.asp. It is a brief example of an ASP XML-RPC listener that merely returns the sum of the two integers passed to it.

Example 7-1. An ASP XML-RPC listener used to add two integers
<!--#include virtual="/jjohn/xmlrpc.asp" -->
<%
rpcserver

Function add_em( a, b )
  add_em = a + b
End Function
%>

Example 7-2 shows an ASP client, stored in the file ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Web Services Essentials

Web Services Essentials

Ethan Cerami
Programming Web Services with SOAP

Programming Web Services with SOAP

James Snell, Doug Tidwell, Pavel Kulchenko
RESTful Java Web Services - Third Edition

RESTful Java Web Services - Third Edition

Balachandar Bogunuva Mohanram
Securing NFS in AIX An Introduction to NFS v4 in AIX 5L Version 5.3

Securing NFS in AIX An Introduction to NFS v4 in AIX 5L Version 5.3

Chris Almond, Lutz Denefleh, Sridhar Murthy, Aniket Patel, John Trindle

Publisher Resources

ISBN: 0596001193Errata Page