thank your replay
my test
>>> s = xmlrpclib.ServerProxy('http://www.xscripter.com:5000/rpc')
>>> print(s)
<ServerProxy for www.xscripter.com:5000/rpc>
>>> s.system.listMethods()
Traceback (most recent call last):
File "<pyshell#101>", line 1, in <module>
s.system.listMethods()
File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib/python2.6/xmlrpclib.py", line 1243, in request
headers
ProtocolError: <ProtocolError for www.xscripter.com:5000/rpc: 404 Not
Found>
On Nov 26, 1:47 pm, "Dalius Dobravolskas"
<[EMAIL PROTECTED]> wrote:
> On Wed, Nov 26, 2008 at 3:38 PM, crown.hg <[EMAIL PROTECTED]> wrote:
>
> > thank's reply
>
> >>>> s = xmlrpclib.ServerProxy('http://www.xscripter.com:5000/rpc/userstatus')
> >>>> s.s.userstatus()
> > 'basic string'
>
> > url = 'http://www.xscripter.com:5000/rpc/userstatus'
> > thi's ok,
> > why?
>
> I can't say if it is OK without looking at the code. But it looks like
> it is not. I guess it should be:
>
> s = xmlrpclib.ServerProxy('http://www.xscripter.com:5000/rpc')
> s.userstatus()
>
> But that's only guess.
>
> --
> Daliushttp://blog.sandbox.lt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---