Chilkat Online Tools

SQL Server / EDS API / Dokuments "Alkoholisko dzērienu akcīzes nodokļa deklarācija".

Back to Collection Items

-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
    DECLARE @hr int
    -- Important: Do not use nvarchar(max).  See the warning about using nvarchar(max).
    DECLARE @sTmp0 nvarchar(4000)
    -- This example assumes the Chilkat API to have been previously unlocked.
    -- See Global Unlock Sample for sample code.

    DECLARE @http int
    -- Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT
    IF @hr <> 0
    BEGIN
        PRINT 'Failed to create ActiveX component'
        RETURN
    END

    DECLARE @success int

    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Accept', 'application/json'

    DECLARE @sbResponseBody int
    -- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbResponseBody OUT

    EXEC sp_OAMethod @http, 'QuickGetSb', @success OUT, 'https://eds.vid.gov.lv/api/doc/anav3/:id', @sbResponseBody
    IF @success = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @sbResponseBody
        RETURN
      END

    DECLARE @jResp int
    -- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jResp OUT

    EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
    EXEC sp_OASetProperty @jResp, 'EmitCompact', 0


    PRINT 'Response Body:'
    EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
    PRINT @sTmp0

    DECLARE @respStatusCode int
    EXEC sp_OAGetProperty @http, 'LastStatus', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @http, 'LastHeader', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END

    -- Sample JSON response:
    -- (Sample code for parsing the JSON response is shown below)

    -- {
    --   "Epasts": "sit consectetur proiden",
    --   "Talrunis": "exercitatio",
    --   "Gads": 41525966,
    --   "Menesis": 1,
    --   "Datums": "2000-01-31T00:00:00",
    --   "Statuss": "irure Excepteur cillum est",
    --   "R09": "esse irure eiusmod dolore",
    --   "R10": "et",
    --   "Sagatavotajs": "commodo sunt ad dolore ut",
    --   "SamTermins": "2000-01-31T00:00:00",
    --   "R11": {
    --     "K1": 39654307.9794763,
    --     "K2": 95206489.76173073,
    --     "K3": 69621562.03778541,
    --     "K4": -43473445.81098142,
    --     "K5": 3734292.3273079097,
    --     "K6": 22944168.154526472,
    --     "K7": 52977048.93355891,
    --     "K8": -40245628.25442129,
    --     "K9": -50505683.995016605,
    --     "K10": -41242641.96773098,
    --     "K11": -7595874.8109074235
    --   },
    --   "R12": {
    --     "K1": -51818471.414243296,
    --     "K2": -60649497.202963464,
    --     "K3": -3679732.075939238,
    --     "K4": -81767325.89610443,
    --     "K5": 6512977.492256939,
    --     "K6": 44516819.91345316,
    --     "K7": 86683756.16726193,
    --     "K8": -5085291.953524828,
    --     "K9": 42965992.07206637,
    --     "K10": 75565044.39499044,
    --     "K11": 88333519.18947959
    --   },
    --   "R13": {
    --     "K1": 85378319.58924028,
    --     "K2": 69049741.28540203,
    --     "K3": -85930423.57675488,
    --     "K4": 96557267.4267995,
    --     "K5": 35586091.18758938,
    --     "K6": 4415807.7766118795,
    --     "K7": 85872095.70702115,
    --     "K8": -34265144.59995822,
    --     "K9": 41175518.75610381,
    --     "K10": 41738542.70197573,
    --     "K11": -24045516.04998742
    --   },
    --   "R14": {
    --     "K1": -88527111.8945882,
    --     "K2": -36106576.919619694,
    --     "K3": -86993298.25289856,
    --     "K4": 2507310.8521988243,
    --     "K5": -70948918.3523953,
    --     "K6": 72921344.85359329,
    --     "K7": -46022763.14603264,
    --     "K8": 40703562.46330893,
    --     "K9": -95983475.19361585,
    --     "K10": 73478198.95637825,
    --     "K11": 68333497.69419277
    --   },
    --   "R15": {
    --     "K1": 49799217.73455027,
    --     "K2": -81973465.45824589,
    --     "K3": 26443730.69187163,
    --     "K4": 11561396.059545934,
    --     "K5": -35205927.15265187,
    --     "K6": -63246201.49032185,
    --     "K7": -86836814.91046071,
    --     "K8": 54004956.73262754,
    --     "K9": -39924968.9437799,
    --     "K10": -53986230.12526356,
    --     "K11": -71925242.13591085
    --   },
    --   "R16": {
    --     "K1": -52679977.89026087,
    --     "K2": -77236582.92503108,
    --     "K3": 51708017.62352905,
    --     "K4": 17554016.65212792,
    --     "K5": 31819451.05470319,
    --     "K6": 5946866.696746692,
    --     "K7": 53501704.237122715,
    --     "K8": -54811508.80492649,
    --     "K9": -55637865.57962156,
    --     "K10": -25186232.520846948,
    --     "K11": 37941603.2986792
    --   },
    --   "R17": {
    --     "K1": 85692483.17169079,
    --     "K2": -45357519.01086358,
    --     "K3": -1289375.4376874715,
    --     "K4": 97699645.20378852,
    --     "K5": -82297765.67567657,
    --     "K6": 18170007.240818366,
    --     "K7": -66480653.38381097,
    --     "K8": 31963728.153270006,
    --     "K9": 12415954.664070308,
    --     "K10": 24711130.61581485,
    --     "K11": 80466533.28773373
    --   },
    --   "R18": {
    --     "K1": 98281241.87529373,
    --     "K2": 57591909.24584225,
    --     "K3": -36557051.927430354,
    --     "K4": -65959092.90755051,
    --     "K5": -25176714.44804193,
    --     "K6": -71010973.62023205,
    --     "K7": 54650025.60613659,
    --     "K8": 79261452.45337185,
    --     "K9": -80114161.1437464,
    --     "K10": -71001338.85447599,
    --     "K11": -2501161.776873946
    --   },
    --   "R19": {
    --     "K1": -10055210.696588323,
    --     "K2": 60872558.24988711,
    --     "K3": -61925049.61258529,
    --     "K4": 27871624.263147384,
    --     "K5": 87297020.39378232,
    --     "K6": -21848897.73363255,
    --     "K7": 30405908.47939484,
    --     "K8": 79091344.99215776,
    --     "K9": -29582126.991014943,
    --     "K10": -3549288.3930006623,
    --     "K11": -86291271.18866836
    --   },
    --   "R20": {
    --     "K1": -46429293.03945129,
    --     "K2": 97361131.3384259,
    --     "K3": 5052296.768175468,
    --     "K4": 83498083.74292973,
    --     "K5": 67187.85843795538,
    --     "K6": 98529859.18834385,
    --     "K7": -91286470.54033361,
    --     "K8": -22017052.01711692,
    --     "K9": 43722533.055188596,
    --     "K10": 89495989.5657503,
    --     "K11": -67683636.5283108
    --   },
    --   "R21": {
    --     "K1": 97965687.44835654,
    --     "K2": -13080119.139022365,
    --     "K3": -64248865.534758836,
    --     "K4": -39218405.37977244,
    --     "K5": 42108585.0351865,
    --     "K6": 63488436.2716845,
    --     "K7": 26628119.43172972,
    --     "K8": 35341300.9166666,
    --     "K9": -8835523.193584204,
    --     "K10": -25413350.05131127,
    --     "K11": 82609455.16005117
    --   },
    --   "R22": {
    --     "K1": 98362843.47706878,
    --     "K2": -57001999.48947882,
    --     "K3": -53303999.43238091,
    --     "K4": 64053102.41426751,
    --     "K5": -46204049.95878182,
    --     "K6": 23920089.43234618,
    --     "K7": 67843658.7652064,
    --     "K8": 76063664.05061245,
    --     "K9": -49295436.248785675,
    --     "K10": -87431456.85206324,
    --     "K11": 38660874.90612745
    --   },
    --   "R24": {
    --     "K1": 38613053.291586876,
    --     "K2": -6393679.874609277,
    --     "K3": -67329283.8564341,
    --     "K4": 18023349.977757215,
    --     "K5": 77112121.31141755,
    --     "K6": -14659732.198149025,
    --     "K7": 93320025.85989559,
    --     "K8": 40621210.62665334,
    --     "K9": -59883657.39969938,
    --     "K10": 65776247.93971893,
    --     "K11": 91863478.54787269
    --   },
    --   "R25": {
    --     "K1": -53816529.85383356,
    --     "K2": -58056817.08157091,
    --     "K3": 598287.4282322973,
    --     "K4": -79898779.966212,
    --     "K5": 94668785.22133628,
    --     "K6": 62981267.966917485,
    --     "K7": 76858300.85728523,
    --     "K8": 70836591.66180766,
    --     "K9": -3313831.4919922203,
    --     "K10": -40499597.69367053,
    --     "K11": -19706371.445279464
    --   },
    --   "R26": {
    --     "K1": -12541161.497555375,
    --     "K2": 51057250.24075261,
    --     "K3": 16103676.302845657,
    --     "K4": 78376045.82477638,
    --     "K5": -6888716.070834771,
    --     "K6": -83785609.10945278,
    --     "K7": 57028380.863610536,
    --     "K8": -62322716.54864259,
    --     "K9": -76414180.86863378,
    --     "K10": -64547700.606662594,
    --     "K11": -31602627.68384397
    --   },
    --   "R27": {
    --     "K1": 96735931.65937439,
    --     "K2": -24868491.554228634,
    --     "K3": -17127790.038373813,
    --     "K4": 52400117.43919876,
    --     "K5": -96378581.34590557,
    --     "K6": 36162584.9898538,
    --     "K7": -33004774.320016846,
    --     "K8": 15441502.7158961,
    --     "K9": -26487729.17961386,
    --     "K10": -13711977.692142248,
    --     "K11": -67484139.79037759
    --   },
    --   "R28": {
    --     "K1": 19694221.016647533,
    --     "K2": -63240691.32161165,
    --     "K3": 76074916.31896642,
    --     "K4": 59027469.392128915,
    --     "K5": 29541325.482785523,
    --     "K6": -51079419.84838944,
    --     "K7": 85571750.36816517,
    --     "K8": -78535835.9653812,
    --     "K9": 1783468.0940441042,
    --     "K10": -80472961.08738093,
    --     "K11": 27657198.82747422
    --   },
    --   "R29": {
    --     "K1": -26461709.035757825,
    --     "K2": -93170454.29183465,
    --     "K3": -80103108.2655387,
    --     "K4": -34389401.46855116,
    --     "K5": -12926858.673646405,
    --     "K6": 20992692.14812383,
    --     "K7": -3501149.7462073267,
    --     "K8": 10157711.04871361,
    --     "K9": 62579198.51477575,
    --     "K10": -35638161.49865344,
    --     "K11": 93800943.99387842
    --   },
    --   "R30": {
    --     "K1": 41416012.88009289,
    --     "K2": 31349122.414954692,
    --     "K3": -51372727.92430338,
    --     "K4": 1340475.2782042474,
    --     "K5": 10886357.968213513,
    --     "K6": -79677417.62510201,
    --     "K7": 38428837.750784874,
    --     "K8": 15187164.38060683,
    --     "K9": -73884772.07190096,
    --     "K10": 41360368.7987465,
    --     "K11": 94106196.91157073
    --   },
    --   "R32": {
    --     "K1": -16207683.372665465,
    --     "K2": -8288134.354124039,
    --     "K3": -35730883.88498373,
    --     "K4": -5167797.610396534,
    --     "K5": 21761529.885333747,
    --     "K6": -30283190.84153916,
    --     "K7": -82342223.86810078,
    --     "K8": 44670904.63185039,
    --     "K9": -8978826.487487137,
    --     "K10": 74171165.79581293,
    --     "K11": 34228335.408802
    --   },
    --   "R33": {
    --     "K1": 24856374.583259284,
    --     "K2": 37110434.08636287,
    --     "K3": 69951513.43977764,
    --     "K4": -88593914.80340251,
    --     "K5": 25089492.933927238,
    --     "K6": -67752527.8529064,
    --     "K7": 1523257.4943851382,
    --     "K8": 11709955.694153205,
    --     "K9": 9869232.394000083,
    --     "K10": 83057146.68841356,
    --     "K11": -72530455.50253426
    --   },
    --   "R34": {
    --     "K1": 81819076.44745126,
    --     "K2": -93398324.30597585,
    --     "K3": 32770172.875583634,
    --     "K4": -10925128.140863687,
    --     "K5": -26971964.958718702,
    --     "K6": 44641324.11573753,
    --     "K7": 76978418.24389881,
    --     "K8": -27667452.7337009,
    --     "K9": 4201459.761636883,
    --     "K10": -36132006.69965004,
    --     "K11": -56026889.810518466
    --   },
    --   "R36": {
    --     "K1": -70551114.9679849,
    --     "K2": -48746814.688053906,
    --     "K3": -66930419.536378995,
    --     "K4": -12864315.78212808,
    --     "K5": -78049251.3509607,
    --     "K6": -52801459.5868405,
    --     "K7": 35056949.13558623,
    --     "K8": 94724470.29424581,
    --     "K9": -54259090.46380908,
    --     "K10": 54164272.897994846,
    --     "K11": 17347389.279971242
    --   },
    --   "R37": {
    --     "K1": 60616477.89978027,
    --     "K2": 60921455.5621365,
    --     "K3": 97984917.70165959,
    --     "K4": 30659900.694031656,
    --     "K5": -61290366.87423097,
    --     "K6": 70238381.20333114,
    --     "K7": -92883010.84694171,
    --     "K8": 15664587.736070022,
    --     "K9": 91489345.32286042,
    --     "K10": -69517505.83468787,
    --     "K11": 86169958.04588306
    --   },
    --   "R38": {
    --     "K1": 12655190.76549837,
    --     "K2": -97471284.8095395,
    --     "K3": 29051098.28418885,
    --     "K4": -56773842.61848504,
    --     "K5": 2755746.0532120764,
    --     "K6": -70423770.88355139,
    --     "K7": -4673772.050939366,
    --     "K8": 56557830.48760462,
    --     "K9": 77764332.06276444,
    --     "K10": -6352483.197574317,
    --     "K11": 74693144.34386697
    --   },
    --   "R39": {
    --     "K1": 31428751.82803859,
    --     "K2": -14604272.678600833,
    --     "K3": 17809876.176148936,
    --     "K4": 83743793.05690134,
    --     "K5": -491415.13068664074,
    --     "K6": -71260949.43784116,
    --     "K7": -32956109.65280655,
    --     "K8": -76901706.26390645,
    --     "K9": 52055159.02655336,
    --     "K10": -29257344.367688283,
    --     "K11": -42806429.82910146
    --   },
    --   "R40": {
    --     "K1": -85210557.18747456,
    --     "K2": 36760147.779381424,
    --     "K3": -83519304.3860357,
    --     "K4": -6562013.343732342,
    --     "K5": 51065220.703496724,
    --     "K6": -11942299.802671343,
    --     "K7": 32545079.068491846,
    --     "K8": 43416244.452961236,
    --     "K9": -37799668.02102268,
    --     "K10": 52814275.62232074,
    --     "K11": 1391988.0810652375
    --   },
    --   "R41": {
    --     "K1": 26791706.04249443,
    --     "K2": -22518616.05569859,
    --     "K3": -70613348.72540255,
    --     "K4": -90238441.11778012,
    --     "K5": 78411487.88779503,
    --     "K6": -28255055.234634608,
    --     "K7": -43688887.324217476,
    --     "K8": -24436213.330500677,
    --     "K9": -88499813.70245157,
    --     "K10": 85864471.83740336,
    --     "K11": -44438412.46404619
    --   },
    --   "Pielikumi": {
    --     "PielikumsRindai18": {
    --       "Fails": {
    --         "value": "<Error: Too many levels of nesting to fake this schema>"
    --       },
    --       "Komentars": {
    --         "value": "<Error: Too many levels of nesting to fake this schema>"
    --       }
    --     },
    --     "PielikumsRindai19": {
    --       "Fails": {
    --         "value": "<Error: Too many levels of nesting to fake this schema>"
    --       },
    --       "Komentars": {
    --         "value": "<Error: Too many levels of nesting to fake this schema>"
    --       }
    --     },
    --     "PielikumsRindai20": {
    --       "Fails": {
    --         "value": "<Error: Too many levels of nesting to fake this schema>"
    --       },
    --       "Komentars": {
    --         "value": "<Error: Too many levels of nesting to fake this schema>"
    --       }
    --     },
    --     "PielikumsRindai21": {
    --       "Fails": {
    --         "value": "<Error: Too many levels of nesting to fake this schema>"
    --       },
    --       "Komentars": {
    --         "value": "<Error: Too many levels of nesting to fake this schema>"
    --       }
    --     },
    --     "PielikumsRindai22": {
    --       "Fails": {
    --         "value": "<Error: Too many levels of nesting to fake this schema>"
    --       },
    --       "Komentars": {
    --         "value": "<Error: Too many levels of nesting to fake this schema>"
    --       }
    --     },
    --     "PielikumsRindai40": {
    --       "Fails": {
    --         "value": "<Error: Too many levels of nesting to fake this schema>"
    --       },
    --       "Komentars": {
    --         "value": "<Error: Too many levels of nesting to fake this schema>"
    --       }
    --     },
    --     "CitiDokumenti": [
    --       {
    --         "value": "<Error: Too many levels of nesting to fake this schema>"
    --       },
    --       {
    --         "value": "<Error: Too many levels of nesting to fake this schema>"
    --       }
    --     ]
    --   },
    --   "Id": 48659465,
    --   "UID": "eu voluptate laborum",
    --   "NmrKods": "",
    --   "Precizejums": true,
    --   "PrecizejamaisDokuments": -13962072,
    --   "PrecizejumaPamatojums": "nisi ea velit"
    -- }

    -- Sample code for parsing the JSON response...
    -- Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

    DECLARE @value nvarchar(4000)

    DECLARE @Epasts nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Epasts OUT, 'Epasts'
    DECLARE @Talrunis nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Talrunis OUT, 'Talrunis'
    DECLARE @Gads int
    EXEC sp_OAMethod @jResp, 'IntOf', @Gads OUT, 'Gads'
    DECLARE @Menesis int
    EXEC sp_OAMethod @jResp, 'IntOf', @Menesis OUT, 'Menesis'
    DECLARE @Datums nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Datums OUT, 'Datums'
    DECLARE @Statuss nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Statuss OUT, 'Statuss'
    DECLARE @R09 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R09 OUT, 'R09'
    DECLARE @R10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R10 OUT, 'R10'
    DECLARE @Sagatavotajs nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Sagatavotajs OUT, 'Sagatavotajs'
    DECLARE @SamTermins nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @SamTermins OUT, 'SamTermins'
    DECLARE @K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @K1 OUT, 'R11.K1'
    DECLARE @K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @K2 OUT, 'R11.K2'
    DECLARE @K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @K3 OUT, 'R11.K3'
    DECLARE @K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @K4 OUT, 'R11.K4'
    DECLARE @K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @K5 OUT, 'R11.K5'
    DECLARE @K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @K6 OUT, 'R11.K6'
    DECLARE @K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @K7 OUT, 'R11.K7'
    DECLARE @K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @K8 OUT, 'R11.K8'
    DECLARE @K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @K9 OUT, 'R11.K9'
    DECLARE @K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @K10 OUT, 'R11.K10'
    DECLARE @K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @K11 OUT, 'R11.K11'
    DECLARE @R12K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R12K1 OUT, 'R12.K1'
    DECLARE @R12K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R12K2 OUT, 'R12.K2'
    DECLARE @R12K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R12K3 OUT, 'R12.K3'
    DECLARE @R12K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R12K4 OUT, 'R12.K4'
    DECLARE @R12K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R12K5 OUT, 'R12.K5'
    DECLARE @R12K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R12K6 OUT, 'R12.K6'
    DECLARE @R12K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R12K7 OUT, 'R12.K7'
    DECLARE @R12K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R12K8 OUT, 'R12.K8'
    DECLARE @R12K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R12K9 OUT, 'R12.K9'
    DECLARE @R12K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R12K10 OUT, 'R12.K10'
    DECLARE @R12K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R12K11 OUT, 'R12.K11'
    DECLARE @R13K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R13K1 OUT, 'R13.K1'
    DECLARE @R13K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R13K2 OUT, 'R13.K2'
    DECLARE @R13K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R13K3 OUT, 'R13.K3'
    DECLARE @R13K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R13K4 OUT, 'R13.K4'
    DECLARE @R13K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R13K5 OUT, 'R13.K5'
    DECLARE @R13K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R13K6 OUT, 'R13.K6'
    DECLARE @R13K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R13K7 OUT, 'R13.K7'
    DECLARE @R13K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R13K8 OUT, 'R13.K8'
    DECLARE @R13K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R13K9 OUT, 'R13.K9'
    DECLARE @R13K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R13K10 OUT, 'R13.K10'
    DECLARE @R13K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R13K11 OUT, 'R13.K11'
    DECLARE @R14K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R14K1 OUT, 'R14.K1'
    DECLARE @R14K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R14K2 OUT, 'R14.K2'
    DECLARE @R14K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R14K3 OUT, 'R14.K3'
    DECLARE @R14K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R14K4 OUT, 'R14.K4'
    DECLARE @R14K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R14K5 OUT, 'R14.K5'
    DECLARE @R14K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R14K6 OUT, 'R14.K6'
    DECLARE @R14K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R14K7 OUT, 'R14.K7'
    DECLARE @R14K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R14K8 OUT, 'R14.K8'
    DECLARE @R14K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R14K9 OUT, 'R14.K9'
    DECLARE @R14K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R14K10 OUT, 'R14.K10'
    DECLARE @R14K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R14K11 OUT, 'R14.K11'
    DECLARE @R15K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R15K1 OUT, 'R15.K1'
    DECLARE @R15K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R15K2 OUT, 'R15.K2'
    DECLARE @R15K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R15K3 OUT, 'R15.K3'
    DECLARE @R15K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R15K4 OUT, 'R15.K4'
    DECLARE @R15K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R15K5 OUT, 'R15.K5'
    DECLARE @R15K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R15K6 OUT, 'R15.K6'
    DECLARE @R15K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R15K7 OUT, 'R15.K7'
    DECLARE @R15K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R15K8 OUT, 'R15.K8'
    DECLARE @R15K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R15K9 OUT, 'R15.K9'
    DECLARE @R15K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R15K10 OUT, 'R15.K10'
    DECLARE @R15K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R15K11 OUT, 'R15.K11'
    DECLARE @R16K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R16K1 OUT, 'R16.K1'
    DECLARE @R16K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R16K2 OUT, 'R16.K2'
    DECLARE @R16K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R16K3 OUT, 'R16.K3'
    DECLARE @R16K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R16K4 OUT, 'R16.K4'
    DECLARE @R16K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R16K5 OUT, 'R16.K5'
    DECLARE @R16K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R16K6 OUT, 'R16.K6'
    DECLARE @R16K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R16K7 OUT, 'R16.K7'
    DECLARE @R16K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R16K8 OUT, 'R16.K8'
    DECLARE @R16K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R16K9 OUT, 'R16.K9'
    DECLARE @R16K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R16K10 OUT, 'R16.K10'
    DECLARE @R16K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R16K11 OUT, 'R16.K11'
    DECLARE @R17K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R17K1 OUT, 'R17.K1'
    DECLARE @R17K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R17K2 OUT, 'R17.K2'
    DECLARE @R17K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R17K3 OUT, 'R17.K3'
    DECLARE @R17K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R17K4 OUT, 'R17.K4'
    DECLARE @R17K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R17K5 OUT, 'R17.K5'
    DECLARE @R17K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R17K6 OUT, 'R17.K6'
    DECLARE @R17K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R17K7 OUT, 'R17.K7'
    DECLARE @R17K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R17K8 OUT, 'R17.K8'
    DECLARE @R17K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R17K9 OUT, 'R17.K9'
    DECLARE @R17K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R17K10 OUT, 'R17.K10'
    DECLARE @R17K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R17K11 OUT, 'R17.K11'
    DECLARE @R18K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R18K1 OUT, 'R18.K1'
    DECLARE @R18K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R18K2 OUT, 'R18.K2'
    DECLARE @R18K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R18K3 OUT, 'R18.K3'
    DECLARE @R18K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R18K4 OUT, 'R18.K4'
    DECLARE @R18K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R18K5 OUT, 'R18.K5'
    DECLARE @R18K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R18K6 OUT, 'R18.K6'
    DECLARE @R18K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R18K7 OUT, 'R18.K7'
    DECLARE @R18K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R18K8 OUT, 'R18.K8'
    DECLARE @R18K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R18K9 OUT, 'R18.K9'
    DECLARE @R18K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R18K10 OUT, 'R18.K10'
    DECLARE @R18K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R18K11 OUT, 'R18.K11'
    DECLARE @R19K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R19K1 OUT, 'R19.K1'
    DECLARE @R19K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R19K2 OUT, 'R19.K2'
    DECLARE @R19K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R19K3 OUT, 'R19.K3'
    DECLARE @R19K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R19K4 OUT, 'R19.K4'
    DECLARE @R19K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R19K5 OUT, 'R19.K5'
    DECLARE @R19K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R19K6 OUT, 'R19.K6'
    DECLARE @R19K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R19K7 OUT, 'R19.K7'
    DECLARE @R19K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R19K8 OUT, 'R19.K8'
    DECLARE @R19K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R19K9 OUT, 'R19.K9'
    DECLARE @R19K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R19K10 OUT, 'R19.K10'
    DECLARE @R19K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R19K11 OUT, 'R19.K11'
    DECLARE @R20K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R20K1 OUT, 'R20.K1'
    DECLARE @R20K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R20K2 OUT, 'R20.K2'
    DECLARE @R20K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R20K3 OUT, 'R20.K3'
    DECLARE @R20K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R20K4 OUT, 'R20.K4'
    DECLARE @R20K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R20K5 OUT, 'R20.K5'
    DECLARE @R20K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R20K6 OUT, 'R20.K6'
    DECLARE @R20K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R20K7 OUT, 'R20.K7'
    DECLARE @R20K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R20K8 OUT, 'R20.K8'
    DECLARE @R20K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R20K9 OUT, 'R20.K9'
    DECLARE @R20K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R20K10 OUT, 'R20.K10'
    DECLARE @R20K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R20K11 OUT, 'R20.K11'
    DECLARE @R21K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R21K1 OUT, 'R21.K1'
    DECLARE @R21K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R21K2 OUT, 'R21.K2'
    DECLARE @R21K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R21K3 OUT, 'R21.K3'
    DECLARE @R21K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R21K4 OUT, 'R21.K4'
    DECLARE @R21K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R21K5 OUT, 'R21.K5'
    DECLARE @R21K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R21K6 OUT, 'R21.K6'
    DECLARE @R21K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R21K7 OUT, 'R21.K7'
    DECLARE @R21K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R21K8 OUT, 'R21.K8'
    DECLARE @R21K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R21K9 OUT, 'R21.K9'
    DECLARE @R21K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R21K10 OUT, 'R21.K10'
    DECLARE @R21K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R21K11 OUT, 'R21.K11'
    DECLARE @R22K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R22K1 OUT, 'R22.K1'
    DECLARE @R22K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R22K2 OUT, 'R22.K2'
    DECLARE @R22K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R22K3 OUT, 'R22.K3'
    DECLARE @R22K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R22K4 OUT, 'R22.K4'
    DECLARE @R22K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R22K5 OUT, 'R22.K5'
    DECLARE @R22K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R22K6 OUT, 'R22.K6'
    DECLARE @R22K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R22K7 OUT, 'R22.K7'
    DECLARE @R22K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R22K8 OUT, 'R22.K8'
    DECLARE @R22K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R22K9 OUT, 'R22.K9'
    DECLARE @R22K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R22K10 OUT, 'R22.K10'
    DECLARE @R22K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R22K11 OUT, 'R22.K11'
    DECLARE @R24K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R24K1 OUT, 'R24.K1'
    DECLARE @R24K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R24K2 OUT, 'R24.K2'
    DECLARE @R24K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R24K3 OUT, 'R24.K3'
    DECLARE @R24K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R24K4 OUT, 'R24.K4'
    DECLARE @R24K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R24K5 OUT, 'R24.K5'
    DECLARE @R24K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R24K6 OUT, 'R24.K6'
    DECLARE @R24K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R24K7 OUT, 'R24.K7'
    DECLARE @R24K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R24K8 OUT, 'R24.K8'
    DECLARE @R24K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R24K9 OUT, 'R24.K9'
    DECLARE @R24K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R24K10 OUT, 'R24.K10'
    DECLARE @R24K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R24K11 OUT, 'R24.K11'
    DECLARE @R25K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R25K1 OUT, 'R25.K1'
    DECLARE @R25K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R25K2 OUT, 'R25.K2'
    DECLARE @R25K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R25K3 OUT, 'R25.K3'
    DECLARE @R25K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R25K4 OUT, 'R25.K4'
    DECLARE @R25K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R25K5 OUT, 'R25.K5'
    DECLARE @R25K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R25K6 OUT, 'R25.K6'
    DECLARE @R25K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R25K7 OUT, 'R25.K7'
    DECLARE @R25K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R25K8 OUT, 'R25.K8'
    DECLARE @R25K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R25K9 OUT, 'R25.K9'
    DECLARE @R25K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R25K10 OUT, 'R25.K10'
    DECLARE @R25K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R25K11 OUT, 'R25.K11'
    DECLARE @R26K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R26K1 OUT, 'R26.K1'
    DECLARE @R26K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R26K2 OUT, 'R26.K2'
    DECLARE @R26K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R26K3 OUT, 'R26.K3'
    DECLARE @R26K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R26K4 OUT, 'R26.K4'
    DECLARE @R26K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R26K5 OUT, 'R26.K5'
    DECLARE @R26K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R26K6 OUT, 'R26.K6'
    DECLARE @R26K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R26K7 OUT, 'R26.K7'
    DECLARE @R26K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R26K8 OUT, 'R26.K8'
    DECLARE @R26K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R26K9 OUT, 'R26.K9'
    DECLARE @R26K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R26K10 OUT, 'R26.K10'
    DECLARE @R26K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R26K11 OUT, 'R26.K11'
    DECLARE @R27K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R27K1 OUT, 'R27.K1'
    DECLARE @R27K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R27K2 OUT, 'R27.K2'
    DECLARE @R27K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R27K3 OUT, 'R27.K3'
    DECLARE @R27K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R27K4 OUT, 'R27.K4'
    DECLARE @R27K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R27K5 OUT, 'R27.K5'
    DECLARE @R27K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R27K6 OUT, 'R27.K6'
    DECLARE @R27K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R27K7 OUT, 'R27.K7'
    DECLARE @R27K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R27K8 OUT, 'R27.K8'
    DECLARE @R27K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R27K9 OUT, 'R27.K9'
    DECLARE @R27K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R27K10 OUT, 'R27.K10'
    DECLARE @R27K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R27K11 OUT, 'R27.K11'
    DECLARE @R28K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R28K1 OUT, 'R28.K1'
    DECLARE @R28K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R28K2 OUT, 'R28.K2'
    DECLARE @R28K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R28K3 OUT, 'R28.K3'
    DECLARE @R28K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R28K4 OUT, 'R28.K4'
    DECLARE @R28K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R28K5 OUT, 'R28.K5'
    DECLARE @R28K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R28K6 OUT, 'R28.K6'
    DECLARE @R28K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R28K7 OUT, 'R28.K7'
    DECLARE @R28K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R28K8 OUT, 'R28.K8'
    DECLARE @R28K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R28K9 OUT, 'R28.K9'
    DECLARE @R28K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R28K10 OUT, 'R28.K10'
    DECLARE @R28K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R28K11 OUT, 'R28.K11'
    DECLARE @R29K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R29K1 OUT, 'R29.K1'
    DECLARE @R29K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R29K2 OUT, 'R29.K2'
    DECLARE @R29K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R29K3 OUT, 'R29.K3'
    DECLARE @R29K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R29K4 OUT, 'R29.K4'
    DECLARE @R29K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R29K5 OUT, 'R29.K5'
    DECLARE @R29K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R29K6 OUT, 'R29.K6'
    DECLARE @R29K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R29K7 OUT, 'R29.K7'
    DECLARE @R29K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R29K8 OUT, 'R29.K8'
    DECLARE @R29K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R29K9 OUT, 'R29.K9'
    DECLARE @R29K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R29K10 OUT, 'R29.K10'
    DECLARE @R29K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R29K11 OUT, 'R29.K11'
    DECLARE @R30K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R30K1 OUT, 'R30.K1'
    DECLARE @R30K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R30K2 OUT, 'R30.K2'
    DECLARE @R30K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R30K3 OUT, 'R30.K3'
    DECLARE @R30K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R30K4 OUT, 'R30.K4'
    DECLARE @R30K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R30K5 OUT, 'R30.K5'
    DECLARE @R30K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R30K6 OUT, 'R30.K6'
    DECLARE @R30K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R30K7 OUT, 'R30.K7'
    DECLARE @R30K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R30K8 OUT, 'R30.K8'
    DECLARE @R30K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R30K9 OUT, 'R30.K9'
    DECLARE @R30K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R30K10 OUT, 'R30.K10'
    DECLARE @R30K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R30K11 OUT, 'R30.K11'
    DECLARE @R32K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R32K1 OUT, 'R32.K1'
    DECLARE @R32K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R32K2 OUT, 'R32.K2'
    DECLARE @R32K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R32K3 OUT, 'R32.K3'
    DECLARE @R32K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R32K4 OUT, 'R32.K4'
    DECLARE @R32K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R32K5 OUT, 'R32.K5'
    DECLARE @R32K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R32K6 OUT, 'R32.K6'
    DECLARE @R32K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R32K7 OUT, 'R32.K7'
    DECLARE @R32K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R32K8 OUT, 'R32.K8'
    DECLARE @R32K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R32K9 OUT, 'R32.K9'
    DECLARE @R32K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R32K10 OUT, 'R32.K10'
    DECLARE @R32K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R32K11 OUT, 'R32.K11'
    DECLARE @R33K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R33K1 OUT, 'R33.K1'
    DECLARE @R33K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R33K2 OUT, 'R33.K2'
    DECLARE @R33K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R33K3 OUT, 'R33.K3'
    DECLARE @R33K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R33K4 OUT, 'R33.K4'
    DECLARE @R33K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R33K5 OUT, 'R33.K5'
    DECLARE @R33K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R33K6 OUT, 'R33.K6'
    DECLARE @R33K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R33K7 OUT, 'R33.K7'
    DECLARE @R33K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R33K8 OUT, 'R33.K8'
    DECLARE @R33K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R33K9 OUT, 'R33.K9'
    DECLARE @R33K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R33K10 OUT, 'R33.K10'
    DECLARE @R33K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R33K11 OUT, 'R33.K11'
    DECLARE @R34K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R34K1 OUT, 'R34.K1'
    DECLARE @R34K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R34K2 OUT, 'R34.K2'
    DECLARE @R34K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R34K3 OUT, 'R34.K3'
    DECLARE @R34K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R34K4 OUT, 'R34.K4'
    DECLARE @R34K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R34K5 OUT, 'R34.K5'
    DECLARE @R34K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R34K6 OUT, 'R34.K6'
    DECLARE @R34K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R34K7 OUT, 'R34.K7'
    DECLARE @R34K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R34K8 OUT, 'R34.K8'
    DECLARE @R34K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R34K9 OUT, 'R34.K9'
    DECLARE @R34K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R34K10 OUT, 'R34.K10'
    DECLARE @R34K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R34K11 OUT, 'R34.K11'
    DECLARE @R36K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R36K1 OUT, 'R36.K1'
    DECLARE @R36K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R36K2 OUT, 'R36.K2'
    DECLARE @R36K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R36K3 OUT, 'R36.K3'
    DECLARE @R36K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R36K4 OUT, 'R36.K4'
    DECLARE @R36K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R36K5 OUT, 'R36.K5'
    DECLARE @R36K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R36K6 OUT, 'R36.K6'
    DECLARE @R36K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R36K7 OUT, 'R36.K7'
    DECLARE @R36K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R36K8 OUT, 'R36.K8'
    DECLARE @R36K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R36K9 OUT, 'R36.K9'
    DECLARE @R36K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R36K10 OUT, 'R36.K10'
    DECLARE @R36K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R36K11 OUT, 'R36.K11'
    DECLARE @R37K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R37K1 OUT, 'R37.K1'
    DECLARE @R37K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R37K2 OUT, 'R37.K2'
    DECLARE @R37K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R37K3 OUT, 'R37.K3'
    DECLARE @R37K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R37K4 OUT, 'R37.K4'
    DECLARE @R37K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R37K5 OUT, 'R37.K5'
    DECLARE @R37K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R37K6 OUT, 'R37.K6'
    DECLARE @R37K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R37K7 OUT, 'R37.K7'
    DECLARE @R37K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R37K8 OUT, 'R37.K8'
    DECLARE @R37K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R37K9 OUT, 'R37.K9'
    DECLARE @R37K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R37K10 OUT, 'R37.K10'
    DECLARE @R37K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R37K11 OUT, 'R37.K11'
    DECLARE @R38K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R38K1 OUT, 'R38.K1'
    DECLARE @R38K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R38K2 OUT, 'R38.K2'
    DECLARE @R38K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R38K3 OUT, 'R38.K3'
    DECLARE @R38K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R38K4 OUT, 'R38.K4'
    DECLARE @R38K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R38K5 OUT, 'R38.K5'
    DECLARE @R38K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R38K6 OUT, 'R38.K6'
    DECLARE @R38K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R38K7 OUT, 'R38.K7'
    DECLARE @R38K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R38K8 OUT, 'R38.K8'
    DECLARE @R38K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R38K9 OUT, 'R38.K9'
    DECLARE @R38K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R38K10 OUT, 'R38.K10'
    DECLARE @R38K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R38K11 OUT, 'R38.K11'
    DECLARE @R39K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R39K1 OUT, 'R39.K1'
    DECLARE @R39K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R39K2 OUT, 'R39.K2'
    DECLARE @R39K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R39K3 OUT, 'R39.K3'
    DECLARE @R39K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R39K4 OUT, 'R39.K4'
    DECLARE @R39K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R39K5 OUT, 'R39.K5'
    DECLARE @R39K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R39K6 OUT, 'R39.K6'
    DECLARE @R39K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R39K7 OUT, 'R39.K7'
    DECLARE @R39K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R39K8 OUT, 'R39.K8'
    DECLARE @R39K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R39K9 OUT, 'R39.K9'
    DECLARE @R39K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R39K10 OUT, 'R39.K10'
    DECLARE @R39K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R39K11 OUT, 'R39.K11'
    DECLARE @R40K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R40K1 OUT, 'R40.K1'
    DECLARE @R40K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R40K2 OUT, 'R40.K2'
    DECLARE @R40K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R40K3 OUT, 'R40.K3'
    DECLARE @R40K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R40K4 OUT, 'R40.K4'
    DECLARE @R40K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R40K5 OUT, 'R40.K5'
    DECLARE @R40K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R40K6 OUT, 'R40.K6'
    DECLARE @R40K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R40K7 OUT, 'R40.K7'
    DECLARE @R40K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R40K8 OUT, 'R40.K8'
    DECLARE @R40K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R40K9 OUT, 'R40.K9'
    DECLARE @R40K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R40K10 OUT, 'R40.K10'
    DECLARE @R40K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R40K11 OUT, 'R40.K11'
    DECLARE @R41K1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R41K1 OUT, 'R41.K1'
    DECLARE @R41K2 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R41K2 OUT, 'R41.K2'
    DECLARE @R41K3 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R41K3 OUT, 'R41.K3'
    DECLARE @R41K4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R41K4 OUT, 'R41.K4'
    DECLARE @R41K5 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R41K5 OUT, 'R41.K5'
    DECLARE @R41K6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R41K6 OUT, 'R41.K6'
    DECLARE @R41K7 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R41K7 OUT, 'R41.K7'
    DECLARE @R41K8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R41K8 OUT, 'R41.K8'
    DECLARE @R41K9 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R41K9 OUT, 'R41.K9'
    DECLARE @R41K10 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R41K10 OUT, 'R41.K10'
    DECLARE @R41K11 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R41K11 OUT, 'R41.K11'
    DECLARE @Value nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Value OUT, 'Pielikumi.PielikumsRindai18.Fails.value'
    DECLARE @KomentarsValue nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @KomentarsValue OUT, 'Pielikumi.PielikumsRindai18.Komentars.value'
    DECLARE @FailsValue nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @FailsValue OUT, 'Pielikumi.PielikumsRindai19.Fails.value'
    EXEC sp_OAMethod @jResp, 'StringOf', @KomentarsValue OUT, 'Pielikumi.PielikumsRindai19.Komentars.value'
    EXEC sp_OAMethod @jResp, 'StringOf', @FailsValue OUT, 'Pielikumi.PielikumsRindai20.Fails.value'
    EXEC sp_OAMethod @jResp, 'StringOf', @KomentarsValue OUT, 'Pielikumi.PielikumsRindai20.Komentars.value'
    EXEC sp_OAMethod @jResp, 'StringOf', @FailsValue OUT, 'Pielikumi.PielikumsRindai21.Fails.value'
    EXEC sp_OAMethod @jResp, 'StringOf', @KomentarsValue OUT, 'Pielikumi.PielikumsRindai21.Komentars.value'
    EXEC sp_OAMethod @jResp, 'StringOf', @FailsValue OUT, 'Pielikumi.PielikumsRindai22.Fails.value'
    EXEC sp_OAMethod @jResp, 'StringOf', @KomentarsValue OUT, 'Pielikumi.PielikumsRindai22.Komentars.value'
    EXEC sp_OAMethod @jResp, 'StringOf', @FailsValue OUT, 'Pielikumi.PielikumsRindai40.Fails.value'
    EXEC sp_OAMethod @jResp, 'StringOf', @KomentarsValue OUT, 'Pielikumi.PielikumsRindai40.Komentars.value'
    DECLARE @Id int
    EXEC sp_OAMethod @jResp, 'IntOf', @Id OUT, 'Id'
    DECLARE @UID nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UID OUT, 'UID'
    DECLARE @NmrKods nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @NmrKods OUT, 'NmrKods'
    DECLARE @Precizejums int
    EXEC sp_OAMethod @jResp, 'BoolOf', @Precizejums OUT, 'Precizejums'
    DECLARE @PrecizejamaisDokuments int
    EXEC sp_OAMethod @jResp, 'IntOf', @PrecizejamaisDokuments OUT, 'PrecizejamaisDokuments'
    DECLARE @PrecizejumaPamatojums nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @PrecizejumaPamatojums OUT, 'PrecizejumaPamatojums'
    DECLARE @i int
    SELECT @i = 0
    DECLARE @count_i int
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Pielikumi.CitiDokumenti'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @value OUT, 'Pielikumi.CitiDokumenti[i].value'
        SELECT @i = @i + 1
      END

    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

Curl Command

curl -X GET
	-H "Accept: application/json"
https://eds.vid.gov.lv/api/doc/anav3/:id

Postman Collection Item JSON

{
  "name": "Dokuments \"Alkoholisko dzērienu akcīzes nodokļa deklarācija\".",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/doc/anav3/:id",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "doc",
        "anav3",
        ":id"
      ],
      "variable": [
        {
          "key": "id",
          "value": "25210683",
          "description": "(Required) Dokumenta id."
        }
      ]
    }
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/anav3/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "anav3",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "25210683",
              "description": "(Required) Dokumenta id."
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"Epasts\": \"sit consectetur proiden\",\n  \"Talrunis\": \"exercitatio\",\n  \"Gads\": 41525966,\n  \"Menesis\": 1,\n  \"Datums\": \"2000-01-31T00:00:00\",\n  \"Statuss\": \"irure Excepteur cillum est\",\n  \"R09\": \"esse irure eiusmod dolore\",\n  \"R10\": \"et\",\n  \"Sagatavotajs\": \"commodo sunt ad dolore ut\",\n  \"SamTermins\": \"2000-01-31T00:00:00\",\n  \"R11\": {\n    \"K1\": 39654307.9794763,\n    \"K2\": 95206489.76173073,\n    \"K3\": 69621562.03778541,\n    \"K4\": -43473445.81098142,\n    \"K5\": 3734292.3273079097,\n    \"K6\": 22944168.154526472,\n    \"K7\": 52977048.93355891,\n    \"K8\": -40245628.25442129,\n    \"K9\": -50505683.995016605,\n    \"K10\": -41242641.96773098,\n    \"K11\": -7595874.8109074235\n  },\n  \"R12\": {\n    \"K1\": -51818471.414243296,\n    \"K2\": -60649497.202963464,\n    \"K3\": -3679732.075939238,\n    \"K4\": -81767325.89610443,\n    \"K5\": 6512977.492256939,\n    \"K6\": 44516819.91345316,\n    \"K7\": 86683756.16726193,\n    \"K8\": -5085291.953524828,\n    \"K9\": 42965992.07206637,\n    \"K10\": 75565044.39499044,\n    \"K11\": 88333519.18947959\n  },\n  \"R13\": {\n    \"K1\": 85378319.58924028,\n    \"K2\": 69049741.28540203,\n    \"K3\": -85930423.57675488,\n    \"K4\": 96557267.4267995,\n    \"K5\": 35586091.18758938,\n    \"K6\": 4415807.7766118795,\n    \"K7\": 85872095.70702115,\n    \"K8\": -34265144.59995822,\n    \"K9\": 41175518.75610381,\n    \"K10\": 41738542.70197573,\n    \"K11\": -24045516.04998742\n  },\n  \"R14\": {\n    \"K1\": -88527111.8945882,\n    \"K2\": -36106576.919619694,\n    \"K3\": -86993298.25289856,\n    \"K4\": 2507310.8521988243,\n    \"K5\": -70948918.3523953,\n    \"K6\": 72921344.85359329,\n    \"K7\": -46022763.14603264,\n    \"K8\": 40703562.46330893,\n    \"K9\": -95983475.19361585,\n    \"K10\": 73478198.95637825,\n    \"K11\": 68333497.69419277\n  },\n  \"R15\": {\n    \"K1\": 49799217.73455027,\n    \"K2\": -81973465.45824589,\n    \"K3\": 26443730.69187163,\n    \"K4\": 11561396.059545934,\n    \"K5\": -35205927.15265187,\n    \"K6\": -63246201.49032185,\n    \"K7\": -86836814.91046071,\n    \"K8\": 54004956.73262754,\n    \"K9\": -39924968.9437799,\n    \"K10\": -53986230.12526356,\n    \"K11\": -71925242.13591085\n  },\n  \"R16\": {\n    \"K1\": -52679977.89026087,\n    \"K2\": -77236582.92503108,\n    \"K3\": 51708017.62352905,\n    \"K4\": 17554016.65212792,\n    \"K5\": 31819451.05470319,\n    \"K6\": 5946866.696746692,\n    \"K7\": 53501704.237122715,\n    \"K8\": -54811508.80492649,\n    \"K9\": -55637865.57962156,\n    \"K10\": -25186232.520846948,\n    \"K11\": 37941603.2986792\n  },\n  \"R17\": {\n    \"K1\": 85692483.17169079,\n    \"K2\": -45357519.01086358,\n    \"K3\": -1289375.4376874715,\n    \"K4\": 97699645.20378852,\n    \"K5\": -82297765.67567657,\n    \"K6\": 18170007.240818366,\n    \"K7\": -66480653.38381097,\n    \"K8\": 31963728.153270006,\n    \"K9\": 12415954.664070308,\n    \"K10\": 24711130.61581485,\n    \"K11\": 80466533.28773373\n  },\n  \"R18\": {\n    \"K1\": 98281241.87529373,\n    \"K2\": 57591909.24584225,\n    \"K3\": -36557051.927430354,\n    \"K4\": -65959092.90755051,\n    \"K5\": -25176714.44804193,\n    \"K6\": -71010973.62023205,\n    \"K7\": 54650025.60613659,\n    \"K8\": 79261452.45337185,\n    \"K9\": -80114161.1437464,\n    \"K10\": -71001338.85447599,\n    \"K11\": -2501161.776873946\n  },\n  \"R19\": {\n    \"K1\": -10055210.696588323,\n    \"K2\": 60872558.24988711,\n    \"K3\": -61925049.61258529,\n    \"K4\": 27871624.263147384,\n    \"K5\": 87297020.39378232,\n    \"K6\": -21848897.73363255,\n    \"K7\": 30405908.47939484,\n    \"K8\": 79091344.99215776,\n    \"K9\": -29582126.991014943,\n    \"K10\": -3549288.3930006623,\n    \"K11\": -86291271.18866836\n  },\n  \"R20\": {\n    \"K1\": -46429293.03945129,\n    \"K2\": 97361131.3384259,\n    \"K3\": 5052296.768175468,\n    \"K4\": 83498083.74292973,\n    \"K5\": 67187.85843795538,\n    \"K6\": 98529859.18834385,\n    \"K7\": -91286470.54033361,\n    \"K8\": -22017052.01711692,\n    \"K9\": 43722533.055188596,\n    \"K10\": 89495989.5657503,\n    \"K11\": -67683636.5283108\n  },\n  \"R21\": {\n    \"K1\": 97965687.44835654,\n    \"K2\": -13080119.139022365,\n    \"K3\": -64248865.534758836,\n    \"K4\": -39218405.37977244,\n    \"K5\": 42108585.0351865,\n    \"K6\": 63488436.2716845,\n    \"K7\": 26628119.43172972,\n    \"K8\": 35341300.9166666,\n    \"K9\": -8835523.193584204,\n    \"K10\": -25413350.05131127,\n    \"K11\": 82609455.16005117\n  },\n  \"R22\": {\n    \"K1\": 98362843.47706878,\n    \"K2\": -57001999.48947882,\n    \"K3\": -53303999.43238091,\n    \"K4\": 64053102.41426751,\n    \"K5\": -46204049.95878182,\n    \"K6\": 23920089.43234618,\n    \"K7\": 67843658.7652064,\n    \"K8\": 76063664.05061245,\n    \"K9\": -49295436.248785675,\n    \"K10\": -87431456.85206324,\n    \"K11\": 38660874.90612745\n  },\n  \"R24\": {\n    \"K1\": 38613053.291586876,\n    \"K2\": -6393679.874609277,\n    \"K3\": -67329283.8564341,\n    \"K4\": 18023349.977757215,\n    \"K5\": 77112121.31141755,\n    \"K6\": -14659732.198149025,\n    \"K7\": 93320025.85989559,\n    \"K8\": 40621210.62665334,\n    \"K9\": -59883657.39969938,\n    \"K10\": 65776247.93971893,\n    \"K11\": 91863478.54787269\n  },\n  \"R25\": {\n    \"K1\": -53816529.85383356,\n    \"K2\": -58056817.08157091,\n    \"K3\": 598287.4282322973,\n    \"K4\": -79898779.966212,\n    \"K5\": 94668785.22133628,\n    \"K6\": 62981267.966917485,\n    \"K7\": 76858300.85728523,\n    \"K8\": 70836591.66180766,\n    \"K9\": -3313831.4919922203,\n    \"K10\": -40499597.69367053,\n    \"K11\": -19706371.445279464\n  },\n  \"R26\": {\n    \"K1\": -12541161.497555375,\n    \"K2\": 51057250.24075261,\n    \"K3\": 16103676.302845657,\n    \"K4\": 78376045.82477638,\n    \"K5\": -6888716.070834771,\n    \"K6\": -83785609.10945278,\n    \"K7\": 57028380.863610536,\n    \"K8\": -62322716.54864259,\n    \"K9\": -76414180.86863378,\n    \"K10\": -64547700.606662594,\n    \"K11\": -31602627.68384397\n  },\n  \"R27\": {\n    \"K1\": 96735931.65937439,\n    \"K2\": -24868491.554228634,\n    \"K3\": -17127790.038373813,\n    \"K4\": 52400117.43919876,\n    \"K5\": -96378581.34590557,\n    \"K6\": 36162584.9898538,\n    \"K7\": -33004774.320016846,\n    \"K8\": 15441502.7158961,\n    \"K9\": -26487729.17961386,\n    \"K10\": -13711977.692142248,\n    \"K11\": -67484139.79037759\n  },\n  \"R28\": {\n    \"K1\": 19694221.016647533,\n    \"K2\": -63240691.32161165,\n    \"K3\": 76074916.31896642,\n    \"K4\": 59027469.392128915,\n    \"K5\": 29541325.482785523,\n    \"K6\": -51079419.84838944,\n    \"K7\": 85571750.36816517,\n    \"K8\": -78535835.9653812,\n    \"K9\": 1783468.0940441042,\n    \"K10\": -80472961.08738093,\n    \"K11\": 27657198.82747422\n  },\n  \"R29\": {\n    \"K1\": -26461709.035757825,\n    \"K2\": -93170454.29183465,\n    \"K3\": -80103108.2655387,\n    \"K4\": -34389401.46855116,\n    \"K5\": -12926858.673646405,\n    \"K6\": 20992692.14812383,\n    \"K7\": -3501149.7462073267,\n    \"K8\": 10157711.04871361,\n    \"K9\": 62579198.51477575,\n    \"K10\": -35638161.49865344,\n    \"K11\": 93800943.99387842\n  },\n  \"R30\": {\n    \"K1\": 41416012.88009289,\n    \"K2\": 31349122.414954692,\n    \"K3\": -51372727.92430338,\n    \"K4\": 1340475.2782042474,\n    \"K5\": 10886357.968213513,\n    \"K6\": -79677417.62510201,\n    \"K7\": 38428837.750784874,\n    \"K8\": 15187164.38060683,\n    \"K9\": -73884772.07190096,\n    \"K10\": 41360368.7987465,\n    \"K11\": 94106196.91157073\n  },\n  \"R32\": {\n    \"K1\": -16207683.372665465,\n    \"K2\": -8288134.354124039,\n    \"K3\": -35730883.88498373,\n    \"K4\": -5167797.610396534,\n    \"K5\": 21761529.885333747,\n    \"K6\": -30283190.84153916,\n    \"K7\": -82342223.86810078,\n    \"K8\": 44670904.63185039,\n    \"K9\": -8978826.487487137,\n    \"K10\": 74171165.79581293,\n    \"K11\": 34228335.408802\n  },\n  \"R33\": {\n    \"K1\": 24856374.583259284,\n    \"K2\": 37110434.08636287,\n    \"K3\": 69951513.43977764,\n    \"K4\": -88593914.80340251,\n    \"K5\": 25089492.933927238,\n    \"K6\": -67752527.8529064,\n    \"K7\": 1523257.4943851382,\n    \"K8\": 11709955.694153205,\n    \"K9\": 9869232.394000083,\n    \"K10\": 83057146.68841356,\n    \"K11\": -72530455.50253426\n  },\n  \"R34\": {\n    \"K1\": 81819076.44745126,\n    \"K2\": -93398324.30597585,\n    \"K3\": 32770172.875583634,\n    \"K4\": -10925128.140863687,\n    \"K5\": -26971964.958718702,\n    \"K6\": 44641324.11573753,\n    \"K7\": 76978418.24389881,\n    \"K8\": -27667452.7337009,\n    \"K9\": 4201459.761636883,\n    \"K10\": -36132006.69965004,\n    \"K11\": -56026889.810518466\n  },\n  \"R36\": {\n    \"K1\": -70551114.9679849,\n    \"K2\": -48746814.688053906,\n    \"K3\": -66930419.536378995,\n    \"K4\": -12864315.78212808,\n    \"K5\": -78049251.3509607,\n    \"K6\": -52801459.5868405,\n    \"K7\": 35056949.13558623,\n    \"K8\": 94724470.29424581,\n    \"K9\": -54259090.46380908,\n    \"K10\": 54164272.897994846,\n    \"K11\": 17347389.279971242\n  },\n  \"R37\": {\n    \"K1\": 60616477.89978027,\n    \"K2\": 60921455.5621365,\n    \"K3\": 97984917.70165959,\n    \"K4\": 30659900.694031656,\n    \"K5\": -61290366.87423097,\n    \"K6\": 70238381.20333114,\n    \"K7\": -92883010.84694171,\n    \"K8\": 15664587.736070022,\n    \"K9\": 91489345.32286042,\n    \"K10\": -69517505.83468787,\n    \"K11\": 86169958.04588306\n  },\n  \"R38\": {\n    \"K1\": 12655190.76549837,\n    \"K2\": -97471284.8095395,\n    \"K3\": 29051098.28418885,\n    \"K4\": -56773842.61848504,\n    \"K5\": 2755746.0532120764,\n    \"K6\": -70423770.88355139,\n    \"K7\": -4673772.050939366,\n    \"K8\": 56557830.48760462,\n    \"K9\": 77764332.06276444,\n    \"K10\": -6352483.197574317,\n    \"K11\": 74693144.34386697\n  },\n  \"R39\": {\n    \"K1\": 31428751.82803859,\n    \"K2\": -14604272.678600833,\n    \"K3\": 17809876.176148936,\n    \"K4\": 83743793.05690134,\n    \"K5\": -491415.13068664074,\n    \"K6\": -71260949.43784116,\n    \"K7\": -32956109.65280655,\n    \"K8\": -76901706.26390645,\n    \"K9\": 52055159.02655336,\n    \"K10\": -29257344.367688283,\n    \"K11\": -42806429.82910146\n  },\n  \"R40\": {\n    \"K1\": -85210557.18747456,\n    \"K2\": 36760147.779381424,\n    \"K3\": -83519304.3860357,\n    \"K4\": -6562013.343732342,\n    \"K5\": 51065220.703496724,\n    \"K6\": -11942299.802671343,\n    \"K7\": 32545079.068491846,\n    \"K8\": 43416244.452961236,\n    \"K9\": -37799668.02102268,\n    \"K10\": 52814275.62232074,\n    \"K11\": 1391988.0810652375\n  },\n  \"R41\": {\n    \"K1\": 26791706.04249443,\n    \"K2\": -22518616.05569859,\n    \"K3\": -70613348.72540255,\n    \"K4\": -90238441.11778012,\n    \"K5\": 78411487.88779503,\n    \"K6\": -28255055.234634608,\n    \"K7\": -43688887.324217476,\n    \"K8\": -24436213.330500677,\n    \"K9\": -88499813.70245157,\n    \"K10\": 85864471.83740336,\n    \"K11\": -44438412.46404619\n  },\n  \"Pielikumi\": {\n    \"PielikumsRindai18\": {\n      \"Fails\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Komentars\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    },\n    \"PielikumsRindai19\": {\n      \"Fails\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Komentars\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    },\n    \"PielikumsRindai20\": {\n      \"Fails\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Komentars\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    },\n    \"PielikumsRindai21\": {\n      \"Fails\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Komentars\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    },\n    \"PielikumsRindai22\": {\n      \"Fails\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Komentars\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    },\n    \"PielikumsRindai40\": {\n      \"Fails\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Komentars\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    },\n    \"CitiDokumenti\": [\n      {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    ]\n  },\n  \"Id\": 48659465,\n  \"UID\": \"eu voluptate laborum\",\n  \"NmrKods\": \"\",\n  \"Precizejums\": true,\n  \"PrecizejamaisDokuments\": -13962072,\n  \"PrecizejumaPamatojums\": \"nisi ea velit\"\n}"
    },
    {
      "name": "Lietotājs nav autentificēts.",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/anav3/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "anav3",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "25210683",
              "description": "(Required) Dokumenta id."
            }
          ]
        }
      },
      "status": "Unauthorized",
      "code": 401,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Dokuments neeksistē vai lietotājam nav tiesību.",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/anav3/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "anav3",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "25210683",
              "description": "(Required) Dokumenta id."
            }
          ]
        }
      },
      "status": "Forbidden",
      "code": 403,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Pārsniegts izsaukumu skaita ierobežojums.",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/anav3/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "anav3",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "25210683",
              "description": "(Required) Dokumenta id."
            }
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    }
  ]
}