Python-zeep: When creating a Client - AttributeError: 'NoneType' object has no attribute 'startswith'

Created on 20 Jun 2016  路  2Comments  路  Source: mvantellingen/python-zeep

Using 0.9.0

Example code / WSDL:

from zeep import Client

client = Client('https://secure.contego.com/wsdl/v1/contegoRequesterV1.wsdl')

exception returned:

/home/user/dev/venv/local/lib/python2.7/site-packages/zeep/xsd/schema.pyc in _create_qname(self, name)
    156             return name
    157 
--> 158         if not name.startswith('{') and ':' in name and self._prefix_map:
    159             prefix, localname = name.split(':', 1)
    160             if prefix in self._prefix_map:
bug componenxsd

Most helpful comment

Should be fixed in master. If not then please let me know

All 2 comments

Should be fixed in master. If not then please let me know

Now creates a Client without raising an exception, it will be next week before I get back onto that integration - i'll let you know if I encounter any more.

There is a _giant_ and old/hairy wsdl looming from a credit referencing agency too!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

allan-simon picture allan-simon  路  4Comments

YAmikep picture YAmikep  路  3Comments

dhinchakdhoom picture dhinchakdhoom  路  4Comments

ghost picture ghost  路  6Comments

ameenaskar picture ameenaskar  路  4Comments