#38 Namespaces of complextypes and non standard simple types

open
nobody
None
5
2007-06-12
2007-06-12
Geert Audenaert
No

Hi we discovered a problem with the use of the ZSI and our wsdl. Namespaces were not correctly handeled. Our wsdl is added in attachement.

Therefore we created a small patch in the TC.py:

def get_name(self, name, objid):
'''
Paramters:
name -- element tag
objid -- ID type, unique id
'''
if type(name) is tuple:
return name

ns = self.nspname
# Dirty hack start
if ns is None and isinstance(self, ComplexType):
ns = self.schema
if ns is None and isinstance(self, String):
ns = self.type[0]
# Dirty hack stop
n = name or self.pname or ('E' + objid)
return ns,n

The patch resides between "dirty hack start" and stop.

The actual instance of the wsdl is hosted on tomcat with the xfire webservices stack.

Discussion

  • problem wsdl

     
    Attachments