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

GetDecisions Interpelări

GetDecisions · rev. 1.0.0 · categorii: Justiție și Securitate Publică

Interpelarea ”GetDecisions” are drept scop extragerea listei deciziilor sau hotărârilor în baza numărului electronic sau al identificatorului unic al dosarului

SOAP · GetDecisions(CaseNumber: string, StartDate: DateTime, EndDate: DateTime) : Decisions

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
DecisionsobjectLista deciziilor/hotărârilor
· Decisionsarray<object>DaLista deciziilor/hotărârilor
·· AttachmentsobjectDaLista 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
·· DateEfectDateTimeDa2024-03-06T10:30:00ZData emiterii hotărârii
·· DecisionTypeobjectDaTipul hotărârii. Conține valori din clasificatorul CaseDecisionTypes
··· IdintegerDaNotă internăIdentificatorul unic
··· NamestringDaSRL "Exemplu Grup"Denumirea
·· IdstringDaNotă internăIdentificatorul unic al hotarârii/deciziei
·· IsPublishablebooleanDatruePoate fi publicat: true – da; false – nu
·· IsPublishedbooleanDatrueEste publicat: true – da; false – nu
·· NumberstringDaAB841377Număr electronic
·· ResultstringDaFără observațiiRezultatul
·· SessionIdstringDaConform registruluiIdentificatorul unic al sedinței de judecată
·· SessionStartDateDateTimeDa2018-09-08T10:30:00ZData ședinței de judecată

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/GetDecisions' \
  --data '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetDecisions 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>
    </GetDecisions>
  </soap:Body>
</soap:Envelope>'

Răspuns

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetDecisionsResponse xmlns="http://mconnect.gov.md/consumer">
      <Response>
        <Decisions>
          <Decisions>
            <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>
            <DateEfect>2022-05-10T10:30:00Z</DateEfect>
            <DecisionType>
              <Id>65</Id>
              <Name>SRL "Exemplu Grup"</Name>
            </DecisionType>
            <Id>Informație de probă</Id>
            <IsPublishable>true</IsPublishable>
            <IsPublished>true</IsPublished>
            <Number>AB470091</Number>
            <Result>Eșantion</Result>
            <SessionId>Conform registrului</SessionId>
            <SessionStartDate>2019-07-11T10:30:00Z</SessionStartDate>
          </Decisions>
        </Decisions>
      </Response>
    </GetDecisionsResponse>
  </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/GetDecisions' \
  --data '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetDecisions xmlns="http://mconnect.gov.md/consumer">
      <Request>
        <CaseNumber>AB312635</CaseNumber>
        <StartDate>2018-04-07T10:30:00Z</StartDate>
        <EndDate>2027-01-05T10:30:00Z</EndDate>
      </Request>
    </GetDecisions>
  </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/GetDecisions