This is a generic XML-RPC server that handles XML-remote-procedure-calls.
It is fully compatible with the Java XML-RPC package of
Hannes Wallnoefer (see http://www.xmlrpc.com/).
It handles XMLRPC-requests are of the form:
POST /RPC2 HTTP/1.0
Content-Type: text/xml
Content-Length: 100
Math.add
41
Fault Codes:
0 - 9 Reserved for generic exceptions and internal errors.
FaultString may contain a printed representation of the exception.
0 Can be used for anything. Fallback code.
1 Type error.
...
10 - 19 Errors related to the message as a whole. Examples:
* /PATH is not /RPC2, and no handler can be found for it.
(well, alternatively this could be treated as an HTTP 404)
* Missing Content-Length header.
* Parse error, e.g. message body not well-formed.
...
20 - 29 Errors related to the handler.
20 Reserved for future use.
21 Unknown handler. No such handler has been registered.
22 Handler permanently unreachable. A (remote) handler has been
registered, but its process is not running any more.
[Not used yet.]
23 Handler temporarily unreachable. A (remote) handler has been
registered, but an attempt to contact its site failed. This error
may go away next time.
[Not used yet.]
...
30 - 39 Errors related to the method name.
30 Reserved for future use.
40 - 49 Errors related to the params.
40 Generic params error. (Result of arity mismatch.)
41 Wrong number of params.
42 Not enough params given. More params were expected.
43 Too many params given. Less params were expected.
44 Type error. A param has an unexpected type.
...
100 - inf User defined faults.
Functor
XmlRpcServer ("/home/afranke/import/mathweb/xmlrpc/src/XmlRpcServer.oz")
Import
- Error(exceptionToMessage messageToVirtualString registerFormatter)
- Property(put)
- URL(make toVirtualString)
- Browser
- System
- HttpHandler(class:BaseHTTPHandler) at "x-ozlib://mathweb/httpd/HttpHandler.ozf"
- XmlParser at "x-ozlib://mathweb/xmlparser/XmlParser.ozf"
- PModule at "x-ozlib://mathweb/xmlrpc/xmlrpc.parser.ozf"
- SModule at "x-ozlib://mathweb/xmlrpc/xmlrpc.sem.ozf"
- XmlrpcWriter(class:Xmlrpc) at "x-ozlib://mathweb/xmlrpc/xmlrpc.printer.ozf"
Export
Define
End