def _getWSAddressTypeCodes(self, **kw):
typecodes = []<EOL>try:<EOL><INDENT>for nsuri,elements in list(kw.items()):<EOL><INDENT>for el in elements:<EOL><INDENT>typecode = GED(nsuri, el)<EOL>if typecode is None:<EOL><INDENT>raise WSActionException('<STR_LIT>' %nsuri)<EOL><DEDENT>typecodes.append(typecode)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>except EvaluateException as ex:<EOL><INDENT>raise EvaluateException('<STR_LIT>' %self.wsAddressURI)<EOL><DEDENT>return typecodes<EOL>
kw -- namespaceURI keys with sequence of element names.