Hello -

I'm using the Apache CXF WebClient for a project, and the REST API I am
interacting with has a requirement that XML elements are sent in a specific
order, and "correct" order can change depending on certain settings that
are not known at compile time.

I've found that the XmlType.propOrder annotation allows me to specify the
order in which I want the XML elements to appear at compile time. This
works great. The problem is that I need to be able to change this order at
runtime, and I cannot figure out a way to do that without resorting to
ugly/hacky solutions that modify the annotation at runtime.

Is there an easy way to specify XML element order dynamically at runtime?

Thanks!
Greg

Reply via email to