Labdien, @GunaK!
Atvainojos par novÄloto atbildi.
PirmkÄrt, jÄpÄrliecinÄs ka Basic autorizÄcija ir atļauta sistÄmÄ: sistÄma->administrÄt->web droŔības uzstÄdÄ«jumi->autentifikÄcijas metodes
PÄc koda spriežot pareizais variants ir tas kas tagad aizkomentÄts rstRequest > Params->Items[0] >Value = " Basic "+Base64Encoding >Encode( UserPasw);
ServerÄ« var ieslÄgt http pieprasÄ«jumu logoÅ”anu un pÄrliecinÄties vai pieprasÄ«jumÄ patieÅ”Äm atnÄk pareizi saformÄts headeris - servera config.xml jÄnorÄda parametri loglevel un logevents, apmÄram tÄ:
<?xml version="1.0" encoding="UTF-8"?> <ftgserver port="4674" rest="81" dmsystemttl="0" standalone="3" loglevel="5" logevents="[webrequest]"> </ftgserver>
Tad Log apakÅ”folderÄ« katrs http pieprasÄ«jums tiks ielogots ar visiem headeriem Å”Ädi:
17082020 13:17:28 7376 INFO 2 rest WebRequest Http request start 0002:127.0.0.1 "Accept-Encoding: gzip,deflate","Authorization: Basic xxxxx","Content-Type: application/xml","Content- Length: 2155","Host: localhost:81","Connection: Keep-Alive","User-Agent: Apache-HttpClient/4.1.1 (java 1.5)" POST /rest/TNdmPvzIn/166849/ attachments HTTP/1.1 200 17082020 13:19:09 7376 INFO 2 rest WebRequest Http request stop 0002:127.0.0.1 "Accept-Encoding: gzip,deflate","Authorization: Basic xxxxx","Content-Type: application/xml","Content- Length: 2155","Host: localhost:81","Connection: Keep-Alive","User-Agent: Apache-HttpClient/4.1.1 (java 1.5)" POST /rest/TNdmPvzIn/166849/ attachments HTTP/1.1 "Organization: 2, ""Programmas izstrade - MSSQL""" 201 (took 101078 ms)
Authorization headera vÄrtÄ«bai jÄbÅ«t kÄ piemÄrÄ: "Authorization: Basic xxxxx"
... View more