How to set up an XML-RPC server (newbie) 
Author Message
 How to set up an XML-RPC server (newbie)

Hi.

I'm totally new to xml-rpc, and relatively new to python.

I just want to set up xml-rpc, to play around with in the
first place.

I guess I would have to set up an xml-rpc server first, but
I can't find out how to do it in python. However I found a
step-by-step manual using Zope. Do I need to install that,
or what?

Anyways, I'm using Mandrake 7.2 linux, python 1.5.2-13,
python-xmlrpc-1.0-8

I really could use some hints to get going.

Thanks,
--

System Architect                  Web:   http://www.*-*-*.com/
Fast Search & Transfer ASA        Phone: +47 21 60 11 90
Gr?nnegata 80, Pb 571             Fax:   +47 77 69 66 89
NO-9261 Troms?, NORWAY            Mob:   +47 98 06 61 38

Try FAST Search: http://www.*-*-*.com/



Fri, 27 Jun 2003 20:18:19 GMT  
 How to set up an XML-RPC server (newbie)


Quote:
>Hi.

>I'm totally new to xml-rpc, and relatively new to python.

>I just want to set up xml-rpc, to play around with in the
>first place.

>I guess I would have to set up an xml-rpc server first, but
>I can't find out how to do it in python. However I found a
>step-by-step manual using Zope. Do I need to install that,
>or what?

>Anyways, I'm using Mandrake 7.2 linux, python 1.5.2-13,
>python-xmlrpc-1.0-8

>I really could use some hints to get going.

>Thanks,

for simplicity you should try F Lundh/Pythonware's

http://www.pythonware.com/downloads/xmlrpc-0.9.8-990621.zip

pure python and very small. You'll need python of course.
--
Robin Becker



Fri, 27 Jun 2003 21:19:37 GMT  
 How to set up an XML-RPC server (newbie)

Quote:
> for simplicity you should try F Lundh/Pythonware's
> http://www.pythonware.com/downloads/xmlrpc-0.9.8-990621.zip

Thank you for the quick answer.

But still I wonder...

The zip-package contains three .py-files. I've been trying to
run them in different orders, but I get a series of error
messages anyways. (And yes, I've outcommented the betty-server
line, and uncommented the localhost-server line.)

Here is an example.
First, I run xmlrpcserver.py, then xmlrpclib.py:
This yields :

import: Unable to grab the mouse.
import: Unable to read X window image ().
import: Missing an image file name.
import: Unable to grab the mouse.
import: Unable to read X window image ().
import: Missing an image file name.
import: Unable to grab the mouse.
import: Unable to read X window image ().
import: Missing an image file name.
import: Unable to grab the mouse.
import: Unable to read X window image ().
import: Missing an image file name.
import: Unable to grab the mouse.
import: Unable to read X window image ().
import: Missing an image file name.
./xmlrpc_handler.py: class: command not found
./xmlrpc_handler.py: line 16: syntax error near unexpected token `(s'
./xmlrpc_handler.py: line 16: ` def match (self, request):'

Am I stupid?
--

System Architect                  Web:   http://www.fast.no
Fast Search & Transfer ASA        Phone: +47 21 60 11 90
Gr?nnegata 80, Pb 571             Fax:   +47 77 69 66 89
NO-9261 Troms?, NORWAY            Mob:   +47 98 06 61 38

Try FAST Search: http://www.alltheweb.com



Fri, 27 Jun 2003 21:39:37 GMT  
 How to set up an XML-RPC server (newbie)


Quote:
>> for simplicity you should try F Lundh/Pythonware's
>> http://www.pythonware.com/downloads/xmlrpc-0.9.8-990621.zip

>Thank you for the quick answer.

>But still I wonder...

>The zip-package contains three .py-files. I've been trying to
>run them in different orders, but I get a series of error
>messages anyways. (And yes, I've outcommented the betty-server
>line, and uncommented the localhost-server line.)

>Here is an example.
>First, I run xmlrpcserver.py, then xmlrpclib.py:
>This yields :

...
well I did the same on my win32 Python 2.0 machine. It works fine for
me. Is it possible you aren't running python with the script? The
scripts don't seem to have #!/usr/local/bin/python or other magic at the
front.

In the server / xmlrpclib windows I got
C:\Tmp\xxx>python xmlrpcserver.py
CALL examples.getStateName (41,)
jessikat - - [08/Jan/2001 14:05:48] "POST /RPC2 HTTP/1.0" 200 -

C:\Tmp\xxx>python xmlrpclib.py
<Server proxy for localhost:8000/RPC2>
41

C:\Tmp\xxx>

--
Robin Becker



Fri, 27 Jun 2003 22:11:59 GMT  
 How to set up an XML-RPC server (newbie)

Quote:

> Is it possible you aren't running python with the script?

Yes!!!
Thanks a lot, now I have something to work with!
(Still surprised about the error messages, though...:)
--

System Architect                  Web:   http://www.fast.no
Fast Search & Transfer ASA        Phone: +47 21 60 11 90
Gr?nnegata 80, Pb 571             Fax:   +47 77 69 66 89
NO-9261 Troms?, NORWAY            Mob:   +47 98 06 61 38

Try FAST Search: http://www.alltheweb.com



Fri, 27 Jun 2003 22:13:49 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. xml-rpc server in python returning python lists...

2. XML-RPC Server

3. XML-RPC Server in Python

4. XML-RPC Server/Client Help Request

5. Python XML-RPC server as CGI

6. xmlrpc via proxy in XML-RPC HOWTO

7. Newbie: inserting an XML-file in an XML-file

8. XML-RPC Goodie

9. AppleEvents for XML-RPC & SOAP

10. XML-RPC

11. R: IBM appoggia XML-RPC

12. XML-RPC library available

 

 
Powered by phpBB® Forum Software