Errors on a first step
Feb. 18th, 2020 09:52 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Hi all.
I practically didn’t work with API before, so I took an example from here
http://wiki.dwscoalition.org/wiki/index.php/XML-RPC_Protocol_Method:_postevent
as it is, and and got an error
faultCode Client faultStringApplication failed during request deserialization:
XML or text declaration not at start of entity at line 1, column 1, byte 1 at /home/dw/current/extlib/lib/perl5/x86_64-linux-gnu-thread-multi/XML/Parser.pm line 187.
Could anyone please tell me which client is needed to work with and in what field ?
Thank you all in advance
UPD
Fixed, by replace ESC 0D 0A by
$ReturnTextPostTestMessage01.Replace("`r`n","")
I practically didn’t work with API before, so I took an example from here
http://wiki.dwscoalition.org/wiki/index.php/XML-RPC_Protocol_Method:_postevent
as it is, and and got an error
XML or text declaration not at start of entity at line 1, column 1, byte 1 at /home/dw/current/extlib/lib/perl5/x86_64-linux-gnu-thread-multi/XML/Parser.pm line 187.
Could anyone please tell me which client is needed to work with and in what field ?
Thank you all in advance
UPD
Fixed, by replace ESC 0D 0A by
$ReturnTextPostTestMessage01.Replace("`r`n","")