Explain how you would implement REST endpoints using annotations and media types, and how you would implement SOAP using WSDL and XSD.
Implement a validator for simplified REST and SOAP service definitions. Return True only when REST annotations, HTTP methods, routes, media types, SOAP operations, and XSD type references are valid.
Function signature: validate_service_contract(rest_endpoints, soap_operations, xsd_types) REST endpoints and SOAP operations are lists of dictionaries, and xsd_types is a set-like list of type names.
def validate_service_contract(rest_endpoints, soap_operations, xsd_types):