@@ -17,9 +17,9 @@ \section{\module{xmlrpclib} --- XML-RPC client access}
1717handles all the details of translating between conformable Python
1818objects and XML on the wire.
1919
20- \begin {classdesc }{Server }{uri\optional {, transport\optional {,
21- encoding\optional {, verbose}}}}
22- A \class {Server } instance is a server proxy that manages communication
20+ \begin {classdesc }{ServerProxy }{uri\optional {, transport\optional {,
21+ encoding\optional {, verbose}}}}
22+ A \class {ServerProxy } instance is an object that manages communication
2323with a remote XML-RPC server. The required first argument is a URI
2424(Uniform Resource Indicator), and will normally be the URL of the
2525server. The optional second argument is a transport factory instance;
@@ -34,7 +34,7 @@ \section{\module{xmlrpclib} --- XML-RPC client access}
3434the remote server for the methods it supports (service discovery) and
3535fetch other server-associated metadata.
3636
37- \class {Server } instance methods take Python basic types and objects as
37+ \class {ServerProxy } instance methods take Python basic types and objects as
3838arguments and return Python basic types and classes. Types that are
3939conformable (e.g. that can be marshalled through XML), include the
4040following (and except where noted, they are unmarshalled as the same
@@ -69,6 +69,9 @@ \section{\module{xmlrpclib} --- XML-RPC client access}
6969arbitrary strings via XML-RPC, use the \class {Binary} wrapper class
7070described below.
7171
72+ \class {Server} is retained as an alias for \class {ServerProxy} for backwards
73+ compatibility. New code should use \class {ServerProxy}.
74+
7275\end {classdesc }
7376
7477
@@ -83,9 +86,9 @@ \section{\module{xmlrpclib} --- XML-RPC client access}
8386\end {seealso }
8487
8588
86- \subsection {Server Objects \label {server -objects } }
89+ \subsection {ServerProxy Objects \label {serverproxy -objects } }
8790
88- A \class {Server } instance proxy object has a method corresponding to
91+ A \class {ServerProxy } instance has a method corresponding to
8992each remote procedure call accepted by the XML-RPC server. Calling
9093the method performs an RPC, dispatched by both name and argument
9194signature (e.g. the same method name can be overloaded with multiple
@@ -244,8 +247,8 @@ \subsection{Example of Client Usage \label{xmlrpc-client-example}}
244247\begin {verbatim }
245248# simple test program (from the XML-RPC specification)
246249
247- # server = Server ("http://localhost:8000") # local server
248- server = Server ("http://betty.userland.com")
250+ # server = ServerProxy ("http://localhost:8000") # local server
251+ server = ServerProxy ("http://betty.userland.com")
249252
250253print server
251254
0 commit comments