Hi I'm trying to connect to a WebService with python. I have the Php documentation , but i couldn't convert to python.
I have tried suds package like below
from suds.client import Client
url = "http://newwebservice.esaj.ir/api/topup"
here is the Php documentation:
$client = new nusoap_client('http://newwebservice.esaj.ir/api/topup', 'wsdl');
$res = $client->call('getTopup',['username','pass','phone number','price','product','order_id','type','profile_id','ext_id']) ;
print_r($res) ;
How can i convert the php code to python? specifically how can i call "getTopup" in python?
when i try the following code:
print(client.service.getTopup())
result is:
AttributeError: 'NoneType' object has no attribute 'promotePrefixes'
Thanks