Dynamics Mobile request document question

paszigor
Member Posts: 28
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
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
-
Had exactly the same problem some time back.
I've never done this from Nav but from vb.net this is what you would do:Dim oXmldoc As New System.Xml.XmlDocument oXmldoc.LoadXml(oDataSet.GetXml) oXmldoc.PrependChild(oXmldoc.CreateXmlDeclaration("1.0", "utf-16", ""))
You should be able to find the equivalent syntax in C/AL quite easily if you're already generating a file.
Ian0 -
It is not from within NAV and this header is added automatically. That is why I suppose it is something to do with configuration files.
Cheers,
Igor0 -
What if you used:
XMLWriter.Settings.Encoding0 -
No access to source code
, so I still think it is something to do with configuration files.
Regards,
Igor0 -
[Topic moved from NAV/Navision to Dynamics Mobile forum]0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions