<div>Hello,</div>
<div> </div>
<div>I have a server that requires basic HTTP authentication to download the WSDL file. I tried setting the transport to HTTPAuthenticated, but it looks like the Client doesn't apply the options.transport when opening the url.</div>
<div> </div>
<div>Here's the snippet I'm referring to from client.py:</div>
<div> </div>
<div> def __init__(self, url, **kwargs):</div>
<div> """</div>
<div> @param url: The URL for the WSDL.</div>
<div> @type url: str</div>
<div> @param kwargs: keyword arguments.</div>
<div> @see: L{Options}</div>
<div> """</div>
<div> options = Options()</div>
<div> options.transport = HttpAuthenticated()</div>
<div> self.options = options</div>
<div> options.cache = FileCache(days=1)</div>
<div> self.set_options(**kwargs)</div>
<div> self.wsdl = Definitions(url, options) <-------------- shouldn't this be self.options?</div>
<div> </div>
<div> </div>
<div>I tried making this change, but also ran into the fact that the HttpAuthenticated class does not override the open method using a provided username and password. The basic HttpTransport open method is called instead.</div>
<div> </div>
<div>Regards,</div>
<div> </div>
<div>Ryan</div>
<div> </div>