axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Sierks" <>
Subject Re: Another one for org.apache.axis2.databinding.ADBException: Unexpected subelement
Date Tue, 27 May 2008 12:58:59 GMT
Hi Mauro,

thx for your comment. So in XML the namespace identifier ist just an arbitrary string, which
is normally set to a url, to facilitate uniqueness and offer people the chance to look the
definitions up.

But to come back to the original thing, that there was an error "unexpected subelement".
After having thought about your comment, I see, that there should still be that string comparison.
But in the end, the original error (wrong namespace definition used) was not represented by
the error message.

As far as I understand the stub created by the wsdl2java tool from axis two, the tags are
just checked in order of their occurrence and in order of the parameters. So the second (first
is method name) tag should be the name of the first parameter and so forth.
On checking, the automatically generated code checks for name and namespace, and if that is
not identical, the next opening tag is checked. After the last parameter-check, there is a
catch-check for an unexpected subelement, which then caught, because the namespace check always

As far as I understand soap, it would not be possible, to have different namespaces used for
different parameters, would it? So why is there not a seperate check for the namespaces and
if they do not match a more descriptive error message thrown?

GMX startet Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message