#NEWLINE# def fromsoap( el ) : #NEWLINE# #INDENT# if ( el . get ( nil_qn ) == 'true' ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# t = el . get ( type_qn ) #NEWLINE# if ( t == 'xs:string' ) : #NEWLINE# #INDENT# return wsme . types . text ( ( el . text if el . text else '' ) ) #NEWLINE# #UNINDENT# if ( t in soap_types ) : #NEWLINE# #INDENT# return soap_types [ t ] ( el . text ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( t and t . endswith ( '_Array' ) ) : #NEWLINE# #INDENT# return [ fromsoap ( i ) for i in el ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# d = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for child in el : #NEWLINE# #INDENT# name = child . tag #NEWLINE# assert name . startswith ( ( '{%s}' % typenamespace ) ) , name #NEWLINE# name = name [ ( len ( typenamespace ) + 2 ) : ] #NEWLINE# d [ name ] = fromsoap ( child ) #NEWLINE# #UNINDENT# return d