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

GetPersonCases Interpelări

GetPersonCases · rev. 1.0.1 · categorii: Documente, Justiție și Securitate Publică

Interpelarea ”GetPersonCases” are drept scop extragerea listei dosarelor în baza numărului de identificare al participantului

SOAP · GetPersonCases(IDNx: string) : PersonCases

Date de intrare — Request

CâmpTipOblig.ExempluDescriere
IDNxstringDa2000000000001Numărul de identificare (IDNP sau IDNO) al participantului

Date de ieșire — Response

CâmpTipOblig.ExempluDescriere
PersonCasesobjectDate privind dosarele participantului
· PersonCasesarray<object>DaLista dosarelor participantului
·· AmountCurrencyCodestringDaC716Valuta
·· CaseAmountnumberDa98.03Prejudiciu
·· CaseCategorystringDaDate de testCategoria
·· CaseDecisionstringDaConform registruluiNumărul deciziei/hotărârii
·· CaseNumberstringDaAB908784Numărul electronic
·· CaseRegistrationDateDateTimeDa2015-02-26T10:30:00ZData depunerii
·· CaseStatusintegerDa0Statutul. Conține valori din clasificatorul CaseStatus
·· CaseTitlestringDaDate de testDenumirea
·· CaseTypeintegerDa1Tipul: 1 – Civil; 2 – Penal; 3 – Contravenţional
·· CourtstringDaNotă internăIdentificatorul unic al instanței de judecată
·· DecisionDateDateTimeDa2022-05-20T10:30:00ZData deciziei
·· EnforcementDocumentIssuedbooleanDatrueExistă document de executare: true – da; false – nu
·· ExaminationTypestringDaNotă internăTipul examinării. Conține valori din clasificatorul ExaminationType
·· Filesarray<object>DaLista fișierelor însoțitoare
··· FileNamestringDaNotă internăDenumirea fișierului
··· FileURLstringDaConform registruluiAdresa URL către fișier
··· IdstringDaNotă internăIdentificatorul fișierului
··· Md5stringDaDate de testHash-ul MD5 al fișierului
·· JudgestringDaConform registruluiNumele și prenumele judecătorului raportor
·· ParticipantRolestringDaInformație de probăTipul participantului

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/GetPersonCases' \
  --data '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetPersonCases xmlns="http://mconnect.gov.md/consumer">
      <Request>
        <IDNx>2000000000001</IDNx>
      </Request>
      <RequestHeaders>
        <CallingUser>2000000000001</CallingUser>
        <CallingEntity>1002600024777</CallingEntity>
        <CallBasis>Legea 133/2011 privind protecția datelor</CallBasis>
        <CallReason>Prestare serviciu public</CallReason>
      </RequestHeaders>
    </GetPersonCases>
  </soap:Body>
</soap:Envelope>'

Răspuns

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetPersonCasesResponse xmlns="http://mconnect.gov.md/consumer">
      <Response>
        <PersonCases>
          <PersonCases>
            <AmountCurrencyCode>C716</AmountCurrencyCode>
            <CaseAmount>98.03</CaseAmount>
            <CaseCategory>Date de test</CaseCategory>
            <CaseDecision>Conform registrului</CaseDecision>
            <CaseNumber>AB908784</CaseNumber>
            <CaseRegistrationDate>2015-02-26T10:30:00Z</CaseRegistrationDate>
            <CaseStatus>0</CaseStatus>
            <CaseTitle>Date de test</CaseTitle>
            <CaseType>1</CaseType>
            <Court>Notă internă</Court>
            <DecisionDate>2022-05-20T10:30:00Z</DecisionDate>
            <EnforcementDocumentIssued>true</EnforcementDocumentIssued>
            <ExaminationType>Notă internă</ExaminationType>
            <Files>
              <FileName>Notă internă</FileName>
              <FileURL>Conform registrului</FileURL>
              <Id>Notă internă</Id>
              <Md5>Date de test</Md5>
            </Files>
            <Judge>Conform registrului</Judge>
            <ParticipantRole>Informație de probă</ParticipantRole>
          </PersonCases>
        </PersonCases>
      </Response>
    </GetPersonCasesResponse>
  </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/GetPersonCases' \
  --data '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetPersonCases xmlns="http://mconnect.gov.md/consumer">
      <Request>
        <IDNx>2000000000001</IDNx>
      </Request>
    </GetPersonCases>
  </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>
Eroare: subiect inexistent (IDNP …0000)
IDNP cu sufix …0000 → fault NotFound.

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/GetPersonCases' \
  --data '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetPersonCases xmlns="http://mconnect.gov.md/consumer">
      <Request>
        <IDNx>2000000000000</IDNx>
      </Request>
      <RequestHeaders>
        <CallingUser>2000000000001</CallingUser>
        <CallingEntity>1002600024777</CallingEntity>
        <CallBasis>Legea 133/2011 privind protecția datelor</CallBasis>
        <CallReason>Prestare serviciu public</CallReason>
      </RequestHeaders>
    </GetPersonCases>
  </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>No data found for the requested subject '2000000000000'.</faultstring>
      <detail>
        <MConnectFault xmlns="http://mconnect.gov.md/consumer">
          <Code>NotFound</Code>
          <Message>No data found for the requested subject '2000000000000'.</Message>
        </MConnectFault>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>
Eroare: eroare server (IDNP …0009)
IDNP cu sufix …0009 → fault ServerError.

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/GetPersonCases' \
  --data '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetPersonCases xmlns="http://mconnect.gov.md/consumer">
      <Request>
        <IDNx>2000000000009</IDNx>
      </Request>
      <RequestHeaders>
        <CallingUser>2000000000001</CallingUser>
        <CallingEntity>1002600024777</CallingEntity>
        <CallBasis>Legea 133/2011 privind protecția datelor</CallBasis>
        <CallReason>Prestare serviciu public</CallReason>
      </RequestHeaders>
    </GetPersonCases>
  </soap:Body>
</soap:Envelope>'

Răspuns (fault)

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>Simulated server error.</faultstring>
      <detail>
        <MConnectFault xmlns="http://mconnect.gov.md/consumer">
          <Code>ServerError</Code>
          <Message>Simulated server error.</Message>
        </MConnectFault>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>

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