Catalog › Interpelări › GetDecision
GetDecision Interpelări
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âmp | Tip | Oblig. | Exemplu | Descriere |
|---|---|---|---|---|
| DecisionNumber | string | Da | AB351798 | Numărul electronic sau identificatorul unic al deciziei/hotărârii |
Date de ieșire — Response
| Câmp | Tip | Oblig. | Exemplu | Descriere |
|---|---|---|---|---|
| Decision | object | — | Date despre decizie/hotărâre | |
| · Attachments | array<object> | Da | Lista atașamentelor | |
| ·· Author | string | Da | Eșantion | Autorul |
| ·· Essence | string | Da | Conform registrului | Esența |
| ·· FileLength | integer | Da | 76 | Lungimea/mărimea fișierului |
| ·· Id | string | Da | Notă internă | Identificatorul atașamentului (format Guid) |
| ·· Name | string | Da | SRL "Exemplu Grup" | Denumirea atașamentului |
| ·· Subject | string | Da | Notă internă | Subiect |
| · DateEfect | DateTime | Da | 2024-03-06T10:30:00Z | Data emiterii hotărârii |
| · DecisionType | object | Da | Tipul hotărârii. Conține valori din clasificatorul CaseDecisionTypes | |
| ·· Id | integer | Da | Notă internă | Identificatorul unic |
| ·· Name | string | Da | SRL "Exemplu Grup" | Denumirea |
| · Id | string | Da | Notă internă | Identificatorul unic al hotarârii/deciziei |
| · IsPublishable | boolean | Da | true | Poate fi publicat: true – da; false – nu |
| · IsPublished | boolean | Da | true | Este publicat: true – da; false – nu |
| · Number | string | Da | AB841377 | Număr electronic |
| · Result | string | Da | Fără observații | Rezultatul |
| · SessionId | string | Da | Conform registrului | Identificatorul unic al sedinței de judecată |
| · SessionStartDate | DateTime | Da | 2018-09-08T10:30:00Z | Data ș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>