def METHOD_NAME(body: str) -> tuple[str, set[str]]:
    """Read the WFS-T request body and extract the referenced type-names and request method."""
    xml = ElementTree.fromstring(body)
    wfs_request = normalize_tag(xml.tag)
    # get the type names
    typenames: set[str] = set()
    for child in xml:
        tag = normalize_tag(child.tag)
        if tag == "typename":
            typenames.add(child.text)
        elif tag in ("query", "lock", "update", "delete"):
            typenames.add(child.get("typeName"))
        elif tag == "insert":
            for insert_child in child:
                typenames.add(normalize_tag(insert_child.tag))
    # remove the namespace from the typenames
    typenames = {normalize_typename(t) for t in typenames}
    return (wfs_request, typenames)