$xml = simplexml_load_string($r,null, 0, 'soap', true);
$xml->registerXPATHNamespace('head', 'http://probando.com/GLOBAL/EMP/HeaderResponse');
$xml->registerXPATHNamespace('con2', 'http://probando.com/CLI/EMP/consultarPerfilCliente');
$certificado=json_encode($xml->children('soap',true)->Body->children('con2',true)->PerfilCliente->children('con2',true));
$respuesta['response'] = json_decode($certificado,TRUE);