code: def bodypart_types(self, method, input=True):
          
          if input:
              parts = method.soap.input.body.parts
          else:
              parts = method.soap.output.body.parts
          return [self.__part_type(p, input) for p in parts]
docs: Get a list of I{parameter definitions} (pdefs) defined for the
          specified method.
  
          An input I{pdef} is a (I{name}, L{xsd.sxbase.SchemaObject}) tuple,
          while an output I{pdef} is a L{xsd.sxbase.SchemaObject}.
  
          @param method: A service method.
          @type method: I{service.Method}
          @param input: Defines input/output message.
          @type input: boolean
          @return:  A list of parameter definitions
          @rtype: [I{pdef},...]