Hi.
I'm trying to access to:
url="https://webservices.IZSLER.it/wsAnagrafeIZSLER/gestioneUO.php?wsdl"
to have the wsdl but it requires an authentication.
cl = Client(url)
suds.transport.TransportError: HTTP Error 401: Authorization Required
I tried too:
cl = Client(url, username='us',password='pwd')
wiyhout success.
Could someone tell me how to access to this authenticated url to
download the wsdl like lynx do?
lynx -source -auth=us:pwd
https://webservices.IZSLER.it/wsAnagrafeIZSLER/gestioneUO.php?wsdl
If you provide some sort of a username and password someone could
possibly test this. Also, you did not provide the exact code you tried
or say what exactly went wrong when you 'tried without success'.
I tried just now and running:
url =
"https://webservices.IZSLER.it/wsAnagrafeIZSLERphp?wsdl"
suds.client.Client(url)
raises an expected exception:
suds.transport.TransportError: HTTP Error 401: Authorization Required
while running:
url =
"https://webservices.IZSLER.it/wsAnagrafeIZSLERphp?wsdl"
suds.client.Client(url, username="us", password="pwd")
raises an expected exception:
suds.transport.TransportError: HTTP Error 401: basic auth failed
since presumably user name "us" and password "pwd" are not
correct.
Try to connect to the same URL using urllib. If you can do that -
then suds should be able to connect to it as well (since it uses urllib
under the hood).
Hope this helps.
Best regards,
Jurko Gospodnetić