Moore,
Check if all the XML elements are in order (according to the schema definition) and also check if all the required elements are there.
I got this error and got rid of it with the above corrections.
Hope this helps,
Sridhar.
On 11/9/06, Moore, Don H <[EMAIL PROTECTED]> wrote:
I have an issue with generated Java code using wsdl2Java and Axis2 1.0. I've also tried using Axis2 1.1, Nov 2 2006 build, and have the same problem. From posts I've found in the archives, I see this has been reported a few times before, but I haven't found a solution.Essentially, if additional fields get added to the data which were not in the wsdl when the java files were generated with Axis2, then the code blows up with the java.lang.RuntimeException : Unexpected subelement error. Obviously, I can regenerate the java code using a new wsdl. But, as long as those additional fields are not needed in my application, then I really shouldn't have to be continuously regenerating the java code. Shouldn't the additional fields just be ignored by the parser?
