XML-RPC- XML-RPC- XML-RPC Server
|
XML-RPC ServerThe server side is easier than the client. Debugging is probably best done with the kind of thing I have in the Debugging Client page. The whole server component is wrapped in error handlers, so the client should get back a valid fault structure for any failure. The whole server page consists of:
<!--#include file="path/to/xmlrpc.asp" -->
<%
' add legal functions to call
addServerFunction "helloWorld", "helloWorld"
addServerFunction "superHello", "superHello"
rpcserver
function helloWorld(strName)
helloWorld = ("Hello, " & strName & ".")
end function
function superHello(strName, dateValue)
superHello = "Hello, " & strName & ". It's " & dateValue
end function
'You can add as many functions as you like.
%>
|
E-mail: dtod@vt.edu