title: python suds error parsing SOAP response
body: <p>I am using a script to get information from a billing system (omitting the IPs):</p>
  
  <pre><code>from suds.client import Client
  
  from netaddr import *
  import logging
  
  logging.basicConfig(filename='provisionSV.log',format='%(asctime)s %(levelname)s  (message)s',level=logging.INFO)
  logging.getLogger('suds.client').setLevel(logging.DEBUG)
  logging.getLogger('suds.transport').setLevel(logging.DEBUG)
  
  url = 'http://X.X.X.X:X/services/X?wsdl'
  client = Client(url)
  resultGet = client.service.getCustomerAllowancesRequestType_Search('myself', 100000000000000, 309999900000001)
  </code></pre>
  
  <p>In the logs I can see that the request is fine, I get the response:</p>
  
  <pre><code>HEADERS: {'Soapaction': b'"urn:getCustomerAllowancesRequestType_Search"', 'Content-Type': 'text/xml; charset=utf-8', 'SOAPAction': b'"urn:getCustomerAllowancesRequestType_Search"', 'Content-type': 'text/xml; charset=utf-8'}
  MESSAGE:
  b'&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;SOAP-ENV:Envelope xmlns:SOAP-   ENV="http://schemas.xmlsoap.org/soap/envelope/"      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://tresoap.intecbilling.com/2.0/SEP" xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2="GX"&gt;&lt;SOAP-ENV:Header/&gt; &lt;ns0:Body&gt;&lt;ns1:getCustomerAllowancesRequestType_SearchRequest&gt;  &lt;ns2:REQUESTOR&gt;myself&lt;/ns2:REQUESTOR&gt;&lt;ns2:ON_BEHALF_OF&gt;100000000000000&lt;/ns2:ON_BEHALF_OF&gt;  &lt;ns2:EXTERNAL_CUSTOMER_ID&gt;309999900000001&lt;/ns2:EXTERNAL_CUSTOMER_ID&gt;  &lt;/ns1:getCustomerAllowancesRequestType_SearchRequest&gt;&lt;/ns0:Body&gt;&lt;/SOAP-ENV:Envelope&gt;'
  2014-12-04 11:26:32,985 DEBUG received:
  CODE: 200
  HEADERS: Date: Thu, 04 Dec 2014 11:40:00 GMT
  Content-Type: multipart/related;    boundary=MIMEBoundaryurn_uuid_CFD62554D8E1A6B4381417693216561; type="text/xml"; start=" &lt;0.urn:uuid:CFD62554D8E1A6B4381417693216562@apache.org&gt;"
  Connection: close
  Server: Jetty(6.1.26)
  
  
  MESSAGE:
  b'--MIMEBoundaryurn_uuid_CFD62554D8E1A6B4381417693216561\r\nContent-Type: text/xml;  charset=utf-8\r\nContent-Transfer-Encoding: 8bit\r\nContent-ID:  &lt;0.urn:uuid:CFD62554D8E1A6B4381417693216562@apache.org&gt;\r\n\r\n&lt;?xml version=\'1.0\'  encoding=\'utf-8\'?&gt;&lt;soapenv:Envelope  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;soapenv:Body&gt; &lt;getCustomerAllowancesRequestType_SearchResponse  xmlns="http://tresoap.intecbilling.com/2.0/X" xmlns:tns="GX"&gt;&lt;tns:RESULT&gt; &lt;tns:MESSAGE_CODE&gt;0&lt;/tns:MESSAGE_CODE&gt;&lt;tns:MESSAGE_TEXT&gt;No End User Package for the End- User with External_Customer_Id \'309999900000001\'.&lt;/tns:MESSAGE_TEXT&gt;&lt;/tns:RESULT&gt; &lt;/getCustomerAllowancesRequestType_SearchResponse&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;\r\n-- MIMEBoundaryurn_uuid_CFD62554D8E1A6B4381417693216561--'
  2014-12-04 11:26:32,986 DEBUG HTTP succeeded:
  b'--MIMEBoundaryurn_uuid_CFD62554D8E1A6B4381417693216561\r\nContent-Type: text/xml;  charset=utf-8\r\nContent-Transfer-Encoding: 8bit\r\nContent-ID:  &lt;0.urn:uuid:CFD62554D8E1A6B4381417693216562@apache.org&gt;\r\n\r\n&lt;?xml version=\'1.0\'  encoding=\'utf-8\'?&gt;&lt;soapenv:Envelope  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;soapenv:Body&gt; &lt;getCustomerAllowancesRequestType_SearchResponse  xmlns="http://tresoap.intecbilling.com/2.0/SEP" xmlns:tns="GX"&gt;&lt;tns:RESULT&gt; &lt;tns:MESSAGE_CODE&gt;0&lt;/tns:MESSAGE_CODE&gt;&lt;tns:MESSAGE_TEXT&gt;No End User Package for the End- User with External_Customer_Id \'309999900000001\'.&lt;/tns:MESSAGE_TEXT&gt;&lt;/tns:RESULT&gt; &lt;/getCustomerAllowancesRequestType_SearchResponse&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;\r\n-- MIMEBoundaryurn_uuid_CFD62554D8E1A6B4381417693216561--'
  2014-12-04 11:26:32,986 ERROR &lt;suds.sax.document.Document object at 0x2b6e3d8ae550&gt;
  </code></pre>
  
  <p>But I get an sax parsing exception in the application:</p>
  
  <pre><code>Traceback (most recent call last):
  File "/usr/local/lib/python3.4/xml/sax/expatreader.py", line 207, in feed
     self._parser.Parse(data, isFinal)
  xml.parsers.expat.ExpatError: syntax error: line 1, column 0
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/root/fciannel/python-project/autheudsessions/venv/lib/python3.4/site-packages/suds/client.py", line 521, in __call__
  return client.invoke(args, kwargs)
  File "/root/fciannel/python-project/autheudsessions/venv/lib/python3.4/site-packages/suds/client.py", line 581, in invoke
  result = self.send(soapenv)
  File "/root/fciannel/python-project/autheudsessions/venv/lib/python3.4/site-packages/suds/client.py", line 619, in send
  description=tostr(e), original_soapenv=original_soapenv)
  File "/root/fciannel/python-project/autheudsessions/venv/lib/python3.4/site-packages/suds/client.py", line 661, in process_reply
  replyroot = _parse(reply)
  File "/root/fciannel/python-project/autheudsessions/venv/lib/python3.4/site-packages/suds/client.py", line 832, in _parse
  return Parser().parse(string=string)
  File "/root/fciannel/python-project/autheudsessions/venv/lib/python3.4/site-packages/suds/sax/parser.py", line 133, in parse
  sax.parse(source)
  File "/usr/local/lib/python3.4/xml/sax/expatreader.py", line 107, in parse
  xmlreader.IncrementalParser.parse(self, source)
  File "/usr/local/lib/python3.4/xml/sax/xmlreader.py", line 123, in parse
  self.feed(buffer)
  File "/usr/local/lib/python3.4/xml/sax/expatreader.py", line 211, in feed
  self._err_handler.fatalError(exc)
  File "/usr/local/lib/python3.4/xml/sax/handler.py", line 38, in fatalError
  raise exception xml.sax._exceptions.SAXParseException: 
  &lt;unknown&gt;:1:0: syntax error
  </code></pre>
  
  <p>What's wrong with the answer I get?</p>