hi list,
 
I am running SUDS 0.3.5 with python 2.6 on Windows, and sometimes got following errors when creating Client:
 
  File "ylbcrawler.py", line 69, in process_page
    crawler = wscrawler.WSCrawler(WS_URL, AGENT, logger)
  File "D:\work\code\IndexGen\scratch1\chaowan\Lab\marmot\wscrawler.py", line 14, in __init__
    self.ws_client = Client(self.ws_url)
  File "build\bdist.win32\egg\suds\client.py", line 106, in __init__
  File "build\bdist.win32\egg\suds\wsdl.py", line 171, in __init__
  File "build\bdist.win32\egg\suds\sax\parser.py", line 123, in parse
  File "C:\Python26\lib\xml\sax\__init__.py", line 33, in parse
    parser.parse(source)
  File "C:\Python26\lib\xml\sax\expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "C:\Python26\lib\xml\sax\xmlreader.py", line 125, in parse
    self.close()
  File "C:\Python26\lib\xml\sax\expatreader.py", line 217, in close
    self.feed("", isFinal = 1)
  File "C:\Python26\lib\xml\sax\expatreader.py", line 211, in feed
    self._err_handler.fatalError(exc)
  File "C:\Python26\lib\xml\sax\handler.py", line 38, in fatalError
    raise exception
xml.sax._exceptions.SAXParseException: /tmp/suds\suds-831200760.http:1:0: no element found
Then WSCrawler is used in another application, where its new instances will be created many times.
This exception often arises after some successful creations.
It seems error when parsing by the tmp file's content.
 
The Client is created as this:
 
class WSCrawler(object):
    def __init__(self, ws_url, agent, logger):
        self.ws_url = ws_url
        self.agent  = agent
        self.retry = 0
        self.MAX_RETRY = 5
        self.ws_client = Client(self.ws_url)
        self.logger = logger
 
self.ws_url is a web service address published by C# app, which is like "http://xxx.xxx.xx.xxx/Service1.asmx?wsdl".
 
Thanks,
Chao