web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Dynamics AX 2012, aif xml parser care about the order of elements?

(0) ShareShare
ReportReport
Posted on by 14

Hi Folks,

i am using Dynamics AX 2012 R3, and i built a simple data contract class for service with http adapter.

i am using "Postman" to send soap (with sample of xml data contract) request to service.

Every thing work correctly, i receive 200 http code, but when i change order of elements in xml, a few data member attributes receive empty values.

I suspect the right correct of order are alphabetical order.

That bugs of aif xml parser?. Order of elements should not be important in xml.

i hope that i was detailed explain my trouble

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    The order of the elements in the XML file is meaningful, you can see this in the AIF endpoint schema. Why do you feel it should not be meaningful? I would say that in most XML use cases the schema dictates the order of the elements.

  • Chris8 Profile Picture
    14 on at

    Every changes in data contract (add new data member) will require a modification in the request sent.

    this situation destroy of api context. Is there any option to turn off dictates of order of elements?

  • nmaenpaa Profile Picture
    101,160 Moderator on at

    I'm not sure I understand what you mean. Can you give some example of what you are doing?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans