MConnect · Catalog Semantic (mock)
Schimb de date guvernamental — mimează semantic.gov.md · servicii SOAP/REST cu date fake coerente
Catalog › Interpelări › GetRecusals

GetRecusals Interpelări

GetRecusals · rev. 1.0.1 · categorii: Justiție și Securitate Publică

Interpelarea ”GetRecusals” are drept scop extragerea listei de recuzări în baza numărului electronic sau al identificatorului unic al dosarului

SOAP · GetRecusals(CaseNumber: string, StartDate: DateTime, EndDate: DateTime) : Recusals

Date de intrare — Request

CâmpTipOblig.ExempluDescriere
CaseNumberstringDaAB908784Numărul electronic sau identificatorul unic al dosarului
StartDateDateTimeDa2019-01-21T10:30:00ZÎnceputul perioadei
EndDateDateTimeDa2026-09-25T10:30:00ZSfârșitul perioadei

Date de ieșire — Response

CâmpTipOblig.ExempluDescriere
RecusalsobjectDate privind lista de recuzări
· Recusalsarray<object>DaLista de recuzări
·· Attachmentsarray<object>DaLista atașamentelor
··· AuthorstringDaEșantionAutorul
··· EssencestringDaConform registruluiEsența
··· FileLengthintegerDa76Lungimea/mărimea fișierului
··· IdstringDaNotă internăIdentificatorul atașamentului (format Guid)
··· NamestringDaSRL "Exemplu Grup"Denumirea atașamentului
··· SubjectstringDaNotă internăSubiect
·· IdstringDaNotă internăIdentificatorul unic
·· NumberstringDaAB841377Numărul electronic
·· ReasonstringDaInformație de probăMotivul
·· RecusalFromstringDaInformație de probăDe la
·· RecusalTypeobjectDaTipul hotărârii. Conține valori din clasificatorul RecusalRequestType
··· IdintegerDaNotă internăIdentificatorul unic
··· NamestringDaSRL "Exemplu Grup"Denumirea

Exemple de apel SOAP

Apel reușit
Cerere validă cu RequestHeaders complete → date sample.

Cerere

curl -X POST https://mconnect.evisoft.com/ConsumerService.svc \
  -H 'Content-Type: text/xml; charset=utf-8' \
  -H 'SOAPAction: http://mconnect.gov.md/consumer/GetRecusals' \
  --data '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetRecusals xmlns="http://mconnect.gov.md/consumer">
      <Request>
        <CaseNumber>AB908784</CaseNumber>
        <StartDate>2019-01-21T10:30:00Z</StartDate>
        <EndDate>2026-09-25T10:30:00Z</EndDate>
      </Request>
      <RequestHeaders>
        <CallingUser>2000000000001</CallingUser>
        <CallingEntity>1002600024777</CallingEntity>
        <CallBasis>Legea 133/2011 privind protecția datelor</CallBasis>
        <CallReason>Prestare serviciu public</CallReason>
      </RequestHeaders>
    </GetRecusals>
  </soap:Body>
</soap:Envelope>'

Răspuns

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetRecusalsResponse xmlns="http://mconnect.gov.md/consumer">
      <Response>
        <Recusals>
          <Recusals>
            <Attachments>
              <Author>Eșantion</Author>
              <Essence>Date de test</Essence>
              <FileLength>52</FileLength>
              <Id>Informație de probă</Id>
              <Name>SRL "Exemplu Grup"</Name>
              <Subject>Notă internă</Subject>
            </Attachments>
            <Id>Informație de probă</Id>
            <Number>AB470091</Number>
            <Reason>Valoare exemplu</Reason>
            <RecusalFrom>Notă internă</RecusalFrom>
            <RecusalType>
              <Id>65</Id>
              <Name>SRL "Exemplu Grup"</Name>
            </RecusalType>
          </Recusals>
        </Recusals>
      </Response>
    </GetRecusalsResponse>
  </soap:Body>
</soap:Envelope>
Eroare: lipsesc RequestHeaders
Fără CallingUser/CallingEntity → fault (headerele MConnect sunt obligatorii).

Cerere

curl -X POST https://mconnect.evisoft.com/ConsumerService.svc \
  -H 'Content-Type: text/xml; charset=utf-8' \
  -H 'SOAPAction: http://mconnect.gov.md/consumer/GetRecusals' \
  --data '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetRecusals xmlns="http://mconnect.gov.md/consumer">
      <Request>
        <CaseNumber>AB297723</CaseNumber>
        <StartDate>2019-10-12T10:30:00Z</StartDate>
        <EndDate>2027-05-05T10:30:00Z</EndDate>
      </Request>
    </GetRecusals>
  </soap:Body>
</soap:Envelope>'

Răspuns (fault)

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Client</faultcode>
      <faultstring>Missing RequestHeaders: CallingUser and CallingEntity are required by MConnect.</faultstring>
      <detail>
        <MConnectFault xmlns="http://mconnect.gov.md/consumer">
          <Code>Client</Code>
          <Message>Missing RequestHeaders: CallingUser and CallingEntity are required by MConnect.</Message>
        </MConnectFault>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>

WSDL: /ConsumerService.svc?singleWsdl · REST: /rest/GetRecusals