Hi All,
Once I created a new order in "Mobile Sales" application and trying to synchronize I am receiving following error message in equest document section:
"Client found response content type of 'text/html'; charset 'utf-8', but expected 'text/xml'. WebException."
My document's header:
<?xml version="1.0" encoding="utf-8" ?>
but once I have investigated RequestDatabase, field CallParameters contains value:
<?xml version="1.0" encoding="utf-16" ?>
I suspect this is a problem.
How to enforce the document to be in UTF-16 or change in this field utf value?
Thank you
Igor
0
Comments
I've never done this from Nav but from vb.net this is what you would do:
You should be able to find the equivalent syntax in C/AL quite easily if you're already generating a file.
Ian
Cheers,
Igor
XMLWriter.Settings.Encoding
Regards,
Igor