Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

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

Posted on by 10

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

  • nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Dynamics AX 2012, aif xml parser care about the order of elements?

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

  • Chris8 Profile Picture
    Chris8 10 on at
    RE: Dynamics AX 2012, aif xml parser care about the order of elements?

    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?

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Dynamics AX 2012, aif xml parser care about the order of elements?

    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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans