kartagis / pysimplesoap

Automatically exported from code.google.com/p/pysimplesoap
0 stars 0 forks source link

TypeError: argument of type 'NoneType' is not iterable #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Trying this (using pysimplesoap 1.02b):

>>> from pysimplesoap.client import SoapClient
>>> client = 
SoapClient(wsdl="http://greg.froh.ca/fun/random_bushism/soap/index.php?wsdl", 
trace=False)

I got the following error message:

--------------------------------------------------------------------------
/tmp/pysimplesoap/client.py in __init__(self, location, action, namespace, 
cert, trace, exceptions, proxy, ns, soap_ns, wsdl)
     65             self.__soap_ns = soap_ns
     66 
---> 67         self.services = wsdl and self.wsdl(wsdl) # parse wsdl url
     68         self.service_port = None                 # service port for late binding
     69 

/tmp/pysimplesoap/client.py in wsdl(self, url, debug)
    350             element = {}
    351             if part:
--> 352                 element_name = get_local_name(part['element'])
    353                 element = {element_name: elements.get(element_name)}
    354             messages[message['name']] = element

/tmp/pysimplesoap/client.py in <lambda>(s)
    231         xsi_uri="http://www.w3.org/2001/XMLSchema-instance"
    232 
--> 233         get_local_name = lambda s: str((':' in s) and s.split(':')[1] 
or s)
    234 
    235         REVERSE_TYPE_MAP = dict([(v,k) for k,v in TYPE_MAP.items()])

TypeError: argument of type 'NoneType' is not iterable
--------------------------------------------------------------------------

Original issue reported on code.google.com by nitral...@gmail.com on 14 Nov 2010 at 1:20

GoogleCodeExporter commented 8 years ago
Can you try latest version from the hg repository?

http://code.google.com/p/pysimplesoap/source/checkout

I think it should be fixed there, and 1.0b is a old release, many improvements 
has been done so far.

Original comment by reingart@gmail.com on 16 Nov 2010 at 4:26

GoogleCodeExporter commented 8 years ago
Cannot be reproduced, surely it is already fixed.

Original comment by reingart@gmail.com on 3 May 2011 at 12:33