Skip to content Skip to sidebar Skip to footer

Python Suds Error "'nonetype' Object Has No Attribute 'promoteprefixes'"

I have an ASP.NET webservice running on a Windows 7 box. I have two Linux boxes (Ubuntu 12.04) that I'm trying to hit the webservice from, using Python 2.7.3 and Suds 0.4. The sc

Solution 1:

I added lines to output additional logging information, and found that the problem had nothing to do with the Python error being thrown, but was instead due to the web service rejecting my connection. Here are the lines I added to the script posted in the question:

import logging
logging.basicConfig(level=logging.INFO)
logging.getLogger('suds.client').setLevel(logging.DEBUG)

With these lines added, my script then produced the following output (partial):

<body><divid="header"><h1>Server Error</h1></div><divid="content"><divclass="content-container"><fieldset><h2>403 - Forbidden: Access is denied.</h2><h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3></fieldset></div></div></body>

From here I shifted my focus from the clients to the server, and was able to quickly identify the problem (which has nothing to do with my original question!).

Post a Comment for "Python Suds Error "'nonetype' Object Has No Attribute 'promoteprefixes'""