code: def mkheader(self, method, hdef, object):
          
          marshaller = self.marshaller()
          if isinstance(object, (list, tuple)):
              return [self.mkheader(method, hdef, item) for item in object]
          content = Content(tag=hdef[0], value=object, type=hdef[1])
          return marshaller.process(content)
docs: 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}