[ mustur @ 08.02.2023. 14:32 ] @
Pokusavam da posaljem JSON fajl u SEF (e-faktura). Sadržaj JSON fajla je ispravan. Kada se posalje dobijam poruku o grešci "the system cannot locate the resource specified" KOD koji koristim je: --------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- mojAPIkey = "9f3fad47-b284-43a6-bbe4-3ade227b" 'On Error GoTo Err_Command0_Click Dim slanje As New MSXML2.XMLHTTP60 Dim addressa As String addressa = "https://demoefaktura.mfin.gov....icApi/vat-recording/individual" Dim SendString As String SendString = XmlStr("C:\Users\Gojko\Desktop\Pojedinacno slanje\Autsajder.JSON") With slanje .Open "POST", addressa, "False" .setRequestHeader "accept", "text/plain" .setRequestHeader "APIKey", mojAPIkey .setRequestHeader "Content-Type:", "application/json" '- slanje sa kompa MsgBox SendString .send SendString End With If slanje.Status = 200 Then ' Slanje fakture uspelo MsgBox "Faktura uspesno poslata" Else MsgBox slanje.responseText MsgBox slanje.Status & " " & slanje.statusText End If 'End If GoTo Kraj Err_Command0_Click: MsgBox "Greska" Kraj: --------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- Da li neko ima iskustva i moze da mi pomogne. Hvala |