示例#1
0
def test():
    from xmlrpclib import ServerProxy
    from google.appengine.api import urlfetch
    URL = "https://*****:*****@troverman-conexus.appspot.com/conexus/default/call/xmlrpc"
    urlfetch.set_default_fetch_deadline(60)
    service = ServerProxy(URL, verbose=True)
    test = service.test_add(1, 2)
    return test
示例#2
0
def test_deliveryfor():

    from gluon.contrib.simplejsonrpc import ServerProxy
    from google.appengine.api import urlfetch
    URL = "https://troverman-deliveryfor.appspot.com/deliveryfor/default/call/jsonrpc"
    urlfetch.set_default_fetch_deadline(60)
    service = ServerProxy(URL, verbose=True)
    test = service.test_add(50, 2)
    #test=''
    return test
示例#3
0
def inlrn_login():
    import base64
    from xmlrpclib import ServerProxy
    from google.appengine.api import urlfetch
    URL = "https://troverman-inlrn.appspot.com/inlrn/default/call/xmlrpc"
    urlfetch.set_default_fetch_deadline(60)
    #result = urlfetch.fetch(URL, headers={"Authorization": "Basic %s" % base64.b64encode("troverman:trev77922")})

    service = ServerProxy(URL, verbose=True)
    test = service.test_add(50, 2)


    return test