Hi all,
I'm new to suds, I was using ZSI for a long time, but now I'm appreciating the power and simplicity of suds. I need to access a service with basic authentication and I wrote the following code:
from suds.client import Client url='http://sispc.consorziometis.it/Ax2PFOra/services/Ax2PFOra?wsdl' client = Client(url, username='2000', password='782871608150c25b5912dd2d86154123') print client.service.cercaDittaByCodiceMetis(codiceDittaMetis='123')
when I tried it:
python metis.py
No handlers could be found for logger "suds.client" Traceback (most recent call last): File "metis.py", line 18, in <module> print client.service.cercaDittaByCodiceMetis(codiceDittaMetis='123') File "build/bdist.linux-x86_64/egg/suds/client.py", line 542, in __call__ File "build/bdist.linux-x86_64/egg/suds/client.py", line 602, in invoke File "build/bdist.linux-x86_64/egg/suds/client.py", line 649, in send File "build/bdist.linux-x86_64/egg/suds/client.py", line 702, in failed File "build/bdist.linux-x86_64/egg/suds/bindings/binding.py", line 265, in get_fault
suds.WebFault: Server raised fault: 'Exception occurred while trying to invoke service method cercaDittaByCodiceMetis'
could someone please give me some help?
thanks
j