Subversion Repositories SmartDukaan

Rev

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

Rev 6112 Rev 6135
Line 9... Line 9...
9
 
9
 
10
username = base64.b64encode('saholic20')
10
username = base64.b64encode('saholic20')
11
password = base64.b64encode('ap2020sh')
11
password = base64.b64encode('ap2020sh')
12
account_url = 'http://125.19.68.55/McommWebServices/AccountApiMcomm?wsdl'
12
account_url = 'http://125.19.68.55/McommWebServices/AccountApiMcomm?wsdl'
13
recharge_url = 'http://125.19.68.55/McommWebServices/RechargeApiMcomm?wsdl'
13
recharge_url = 'http://125.19.68.55/McommWebServices/RechargeApiMcomm?wsdl'
-
 
14
try:
14
aclient = Client(account_url, timeout=30)
15
    aclient = Client(account_url, timeout=30)
15
raclient = Client(recharge_url, timeout=30)
16
    raclient = Client(recharge_url, timeout=30)
16
 
17
except:
-
 
18
    print 'ERROR : SpiceHarbour APIs are not working'
17
 
19
 
18
 
20
 
19
def rechargeDevice(transactionId, rechargeType, strProviderCode, deviceNumber, amount):
21
def rechargeDevice(transactionId, rechargeType, strProviderCode, deviceNumber, amount):
20
    spString = raclient.service.getRecharge(username, password, '919650889334', 'SOAP', '115.249.47.66', transactionId, rechargeType, strProviderCode, deviceNumber, amount, 'DEBIT', '', '')
22
    spString = raclient.service.getRecharge(username, password, '919650889334', 'SOAP', '115.249.47.66', transactionId, rechargeType, strProviderCode, deviceNumber, amount, 'DEBIT', '', '')
21
    print spString
23
    print spString