Hi,

I was checking xmlrpc usage[1] at web2py. I have an application names "test". I 
created xmlrpctest.py under it and added the below lines:

from gluon.tools import Service
service = Service(globals())

@service.xmlrpc
def add(a,b): return a+b

@service.xmlrpc
def sub(a,b): return a-b

def call(): return service()

Then while apache with mod_wsgi is running i decided to test the service.

>From ipython

[1] import xmlrpclib
[2] server=xmlrpclib.ServerProxy('http://localhost/app/xmlrpctest/call/xmlrpc')
[3]    print str(server.add(3,4)+server.sub(3,4))

But i didn't see any result. No error messages also. What am i doing wrong? 
Maybe the url i am calling is wrong.

-- 
Oguz Yarimtepe <oguzyarimt...@gmail.com>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to