I have created ASMX
web service with method CheckVat
. If I call this method from https://my.domain.com/VatValidation.asmx
I get successful json
response like this:
{"Valid":true,"Name":"KD SKLADI, D.O.O.","Address":"DUNAJSKA CESTA 63, 1000 LJUBLJANA","ErrorMessage":"","Date":"27.8.2015 15:17:40"}
But when I call web method from JavaScript
with jQuery
$.post
method on URL https://my.domain.com/VatValidation.asmx/CheckVat
(requesting json
) fail handler is invoked with following response:
I know that fail handler is invoked because json
isn't valid. But I don't know why last character is missing.
Thank you for your help!
Problem was with response character encoding, is works after setting it to UTF-8
.