Subversion Repositories SmartDukaan

Rev

Rev 6219 | Rev 6235 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6219 Rev 6227
Line 16... Line 16...
16
 
16
 
17
 
17
 
18
def getAccountClient():
18
def getAccountClient():
19
    global aclient
19
    global aclient
20
    if aclient is None:
20
    if aclient is None:
21
        aclient = Client(account_url, timeout=30)
21
        aclient = Client(account_url, timeout=70)
22
    return aclient
22
    return aclient
23
 
23
 
24
def getRechargeClient():
24
def getRechargeClient():
25
    global raclient
25
    global raclient
26
    if raclient is None:
26
    if raclient is None:
27
        raclient = Client(recharge_url, timeout=30)    
27
        raclient = Client(recharge_url, timeout=70)    
28
    return raclient
28
    return raclient
29
 
29
 
30
def rechargeDevice(transactionId, rechargeType, strProviderCode, deviceNumber, amount, plan):
30
def rechargeDevice(transactionId, rechargeType, strProviderCode, deviceNumber, amount, plan):
31
    spString = getRechargeClient().service.getRecharge(username, password, '919650889334', 'SOAP', '115.249.47.66', transactionId, rechargeType, strProviderCode, deviceNumber, amount, 'DEBIT', '', plan, '')
31
    spString = getRechargeClient().service.getRecharge(username, password, '919650889334', 'SOAP', '115.249.47.66', transactionId, rechargeType, strProviderCode, deviceNumber, amount, 'DEBIT', '', plan, '')
32
    print spString
32
    print spString