Help with suds: HTTP Error 401

plainsane plainsane at gmail.com
Fri Jun 18 16:12:59 EDT 2010


On Jun 11, 8:27 am, Eric von Horst <z80vsvi... at hotmail.com> wrote:
> Hi,
>
> I am trying to do a very simple thing with SUDS but I think I am
> missing the obvious (first time I use suds)
>
> I have small program that tries to open a wsdl. When I execute the
> program I am getting 'suds.transport.TransportError: HTTP Error 401:
> Unauthorized' Seems obvious but I specify username and pwd in the
> code.
> when use IE to go the wsdl, I get a pop-up asking me for the username
> and pwd, I enter them, and the wsdl is displayed.
>
> This is my code:
> "
> from suds import WebFault
> from suds.client import Client
> from suds.transport.http import HttpAuthenticated
>
> t = HttpAuthenticated(username='admin', password='admin')
>
> client = Client('http://xxxx.xxx.xx.x:8080/axis2/services/UcmdbService?
> wsdl', transport=t)
> "
> I seems straightforward :(
>
> Any help much appreciated.
>
> Erik

im having the same issue as well.



More information about the Python-list mailing list