Per cancellare un documento occorre tener presente l'indentificativo del documento ottenuto nel servizio di comunicazione metadati: es. 2.16.840.1.113883.2.9.2.190.4.4^142010

Con questo identificativo (OID del documento nel repository FSE Sicilia) occorre effettuare una chiamata del servizio Recupero Riferimenti (vedere progetto SoapUI del kit):

Stesso endpoint della ricerca: https://fseservicetest.sanita.finanze.it/FseInsServicesWeb/services/fseRicercaDocumenti

esempio:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ric="http://ricercadocumentirichiesta.xsd.fse.ini.finanze.it" xmlns:tip="http://tipodatiricercadocumenti.xsd.fse.ini.finanze.it">
   <soapenv:Header/>
   <soapenv:Body>
      <ric:RicercaDocumentiRichiesta>
         <ric:IdentificativoUtente>PROVAX00X00X000Y</ric:IdentificativoUtente>
         <ric:pinCode>LsQiYtf7FcpMYVKvf+51V6t1BSUk+E/dGOB2vmwNl0DhirZ8QzvTI2Ay04p6+t+eH+DjzkJpXrlEEZvKRz6wKVNOt7uYSQUYKBIFcbcEQJnqT7zTgtz7jV3BK+QaEphfKRsOP1Iejv+vKvJ/3te2xNMHPkNYZIAjxEQHftw9Swk=</ric:pinCode>
         <ric:IdentificativoOrganizzazione>190</ric:IdentificativoOrganizzazione>
         <ric:StrutturaUtente>206123456</ric:StrutturaUtente>
         <ric:RuoloUtente>DRS</ric:RuoloUtente>
         <ric:ContestoOperativo>UPDATE</ric:ContestoOperativo>
         <ric:IdentificativoAssistito>TSTTTN71A01H501B</ric:IdentificativoAssistito>
         <ric:PresaInCarico>true</ric:PresaInCarico>
         <ric:IdentificativoDocumento>2.16.840.1.113883.2.9.2.190.4.4^142010</ric:IdentificativoDocumento>
         <ric:OpzioniRisposta>ObjectRef</ric:OpzioniRisposta>
      </ric:RicercaDocumentiRichiesta>
   </soapenv:Body>
</soapenv:Envelope>

Il sistema risponde con il riferimento del Registry di FSE:

Esempio:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <a:RicercaDocumentiRicevuta xmlns="http://tipodatiricercadocumenti.xsd.fse.ini.finanze.it" xmlns:b="http://ricercadocumentirichiesta.xsd.fse.ini.finanze.it" xmlns:a="http://ricercadocumentiricevuta.xsd.fse.ini.finanze.it">
         <a:Esito>0000</a:Esito>
         <a:Metadato>
            <VersioneOggettoDocumento>1</VersioneOggettoDocumento>
            <IdentificativoUnivocoDocumento>urn:uuid:e572a23b-38e8-4cea-8ce0-3bbbbace1e76</IdentificativoUnivocoDocumento>
         </a:Metadato>
         <a:ElencoErrori>
            <Errore>
               <codEsito>0000</codEsito>
               <esito>Operazione eseguita correttamente</esito>
               <tipoErrore>Success</tipoErrore>
               <fonte>FSE-INS-BE</fonte>
            </Errore>
         </a:ElencoErrori>
      </a:RicercaDocumentiRicevuta>
   </soapenv:Body>
</soapenv:Envelope>

L'oggetto <IdentificativoUnivocoDocumento>urn:uuid:e572a23b-38e8-4cea-8ce0-3bbbbace1e76</IdentificativoUnivocoDocumento> deve essere utilizzato in input per la cancellazione:


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:can="http://cancellazionemetadatirichiesta.xsd.fse.ini.finanze.it" xmlns:tip="http://tipodaticancellazionemetadati.xsd.fse.ini.finanze.it">
   <soapenv:Header/>
   <soapenv:Body>
      <can:CancellazioneMetadatiRichiesta>
         <can:IdentificativoUtente>PROVAX00X00X000Y</can:IdentificativoUtente>
         <can:pinCode>LsQiYtf7FcpMYVKvf+51V6t1BSUk+E/dGOB2vmwNl0DhirZ8QzvTI2Ay04p6+t+eH+DjzkJpXrlEEZvKRz6wKVNOt7uYSQUYKBIFcbcEQJnqT7zTgtz7jV3BK+QaEphfKRsOP1Iejv+vKvJ/3te2xNMHPkNYZIAjxEQHftw9Swk=</can:pinCode>
         <can:IdentificativoOrganizzazione>190</can:IdentificativoOrganizzazione>
         <can:StrutturaUtente>206123456</can:StrutturaUtente>
         <can:RuoloUtente>DRS</can:RuoloUtente>
         <can:ContestoOperativo>SYSADMIN</can:ContestoOperativo>
         <can:IdentificativoAssistito>TSTTTN71A01H501B</can:IdentificativoAssistito>
         <can:TipoAttivita>DELETE</can:TipoAttivita>
         <can:IdentificativoDocumento>urn:uuid:e572a23b-38e8-4cea-8ce0-3bbbbace1e76</can:IdentificativoDocumento>
      </can:CancellazioneMetadatiRichiesta>
   </soapenv:Body>
</soapenv:Envelope>

La cancellazione può essere effettuata solo dalla stessa struttura che ha generato il documento.

