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

GetDecision Interpelări

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

Interpelarea ”GetDecision” are drept scop extragerea datelor despre decizie sau hotărâre în baza numărului electronic sau al identificatorului unic

SOAP · GetDecision(DecisionNumber: string) : Decision

Date de intrare — Request

CâmpTipOblig.ExempluDescriere
DecisionNumberstringDaAB351798Numărul electronic sau identificatorul unic al deciziei/hotărârii

Date de ieșire — Response

CâmpTipOblig.ExempluDescriere
DecisionobjectDate despre decizie/hotărâre
· 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
· 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/GetDecision' \
  --data '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetDecision xmlns="http://mconnect.gov.md/consumer">
      <Request>
        <DecisionNumber>AB351798</DecisionNumber>
      </Request>
      <RequestHeaders>
        <CallingUser>2000000000001</CallingUser>
        <CallingEntity>1002600024777</CallingEntity>
        <CallBasis>Legea 133/2011 privind protecția datelor</CallBasis>
        <CallReason>Prestare serviciu public</CallReason>
      </RequestHeaders>
    </GetDecision>
  </soap:Body>
</soap:Envelope>'

Răspuns

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetDecisionResponse xmlns="http://mconnect.gov.md/consumer">
      <Response>
        <Decision>
          <Attachments>
            <Author>Fără observații</Author>
            <Essence>Notă internă</Essence>
            <FileLength>34</FileLength>
            <Id>Date de test</Id>
            <Name>SRL "Exemplu Grup"</Name>
            <Subject>Informație de probă</Subject>
          </Attachments>
          <DateEfect>2022-09-26T10:30:00Z</DateEfect>
          <DecisionType>
            <Id>12</Id>
            <Name>SRL "Exemplu Grup"</Name>
          </DecisionType>
          <Id>Date de test</Id>
          <IsPublishable>true</IsPublishable>
          <IsPublished>true</IsPublished>
          <Number>AB194075</Number>
          <Result>Eșantion</Result>
          <SessionId>Conform registrului</SessionId>
          <SessionStartDate>2017-07-01T10:30:00Z</SessionStartDate>
        </Decision>
      </Response>
    </GetDecisionResponse>
  </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/GetDecision' \
  --data '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetDecision xmlns="http://mconnect.gov.md/consumer">
      <Request>
        <DecisionNumber>AB091912</DecisionNumber>
      </Request>
    </GetDecision>
  </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/GetDecision