Solution:
The page examplesite.com/xmlrpc.php must return the following message:
XML-RPC server accepts POST requests only.
Instead it returned a 404 “Not Found” error for this page.
The page /xmlrpc.php returned a 404 error because WordPress was not installed in the root directory. Moving the installation fixed everything, returning the correct message:
XML-RPC server accepts POST requests only.