setCompetence('my_competence'); $sender->setContraintePlu('contraint_plu'); $sender->setDossierInstructionIdentifier('PC12R0001'); $sender->setConsultationIdentifier('32'); $sender->setDecision('une decision'); $ret = $sender->enqueueMessage($method); if ($ret != 0) { // erreur if ($ret == -2) { // bad data print 'BAD DATA'; } else { print 'KO'; } } ?>