Calling an external method that is a xml-rpc client in javascript
I need to call a xml-rpc subroutine from javascript. How is this done? In my daemon I have subroutines such as emailInfo, officeInfo, pwdInfo,... I call these subroutines in a client function called userInfo(username): def userInfo(userName): server = xmlrpclib.Server("http://tweety:8080/RPC2") email = server.da.emailInfo(userName) office = server.da.officeInfo(userName) pwd = server.da.pwdInfo(userName) acct = server.da.acctInfo(userName) dir = server.da.dirInfo(userName) info = {'email' : email, 'office': office, 'pwd' : pwd, 'acct' : acct, 'dir' : dir } return info How do I call userInfo in a javascript function? Thank You in Advance, Laura
Laura McCord wrote:
I need to call a xml-rpc subroutine from javascript. How is this done?
Epoz uses a XML-RPC from JavaScript to Zope to tidy up the (x)html. Maybe you can reuse some of the code and start also with a fixed vcXMLRPC.js (javascript-xmlrpc-library) which works fine with Mozilla as well. Took me some hours to track down this bug in vcXMLRPC.js and to fix it. Cheers, Maik
participants (2)
-
Laura McCord -
Maik Jablonski