def mkheader(self, method, hdef, object):
marshaller = self.marshaller()<EOL>if isinstance(object, (list, tuple)):<EOL><INDENT>tags = []<EOL>for item in object:<EOL><INDENT>tags.append(self.mkheader(method, hdef, item))<EOL><DEDENT>return tags<EOL><DEDENT>content = Content(tag=hdef[<NUM_LIT:0>], value=object, type=hdef[<NUM_LIT:1>])<EOL>return marshaller.process(content)<EOL>
Builds a soapheader for the specified I{method} using the header
definition (hdef) and the specified value (object).
@param method: A method name.
@type method: str
@param hdef: A header definition.
@type hdef: tuple: (I{name}, L{xsd.sxbase.SchemaObject})
@param object: The header value.
@type object: any
@return: The parameter fragment.
@rtype: L{Element}