Catalog › Interpelări › GetDecisions
GetDecisions Interpelări
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âmp | Tip | Oblig. | Exemplu | Descriere |
|---|---|---|---|---|
| CaseNumber | string | Da | AB908784 | Numărul electronic sau identificatorul unic al dosarului |
| StartDate | DateTime | Da | 2019-01-21T10:30:00Z | Începutul perioadei |
| EndDate | DateTime | Da | 2026-09-25T10:30:00Z | Sfârșitul perioadei |
Date de ieșire — Response
| Câmp | Tip | Oblig. | Exemplu | Descriere |
|---|---|---|---|---|
| Decisions | object | — | Lista deciziilor/hotărârilor | |
| · Decisions | array<object> | Da | Lista deciziilor/hotărârilor | |
| ·· Attachments | 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/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>