axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Suriarachchi" <amilasuriarach...@gmail.com>
Subject Re: [Axis2] Axis2 and New field
Date Thu, 30 Aug 2007 06:17:29 GMT
On 8/30/07, Leon Hwang <hwang@mystrands.com> wrote:
>
> Greetings,
>
> I am writing a server that returns an object, say User object, containing
> only username.
> I create a client using its wsdl (with option -d adb -uw -Eosv).
> The client is able to retrieve username field correctly.
>
> Later I added one more field to User object, say password, and redeployed
> it to the server.
> Now the client complains about the field with "unexpected subelement
> password". (ADBException)
>
> This will happen a lot in business world as their spec changes.
>
> Is there some way (either in client or server) we can make it ignore extra
> elements?

Please try this. change your complex type to
all instead of sequence. and see.

if the above is not works then the only option is to regenerate the code
with new schema. But please log a jira about this so that we will be able to
provide you a better solution.

Thanks in advance.
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.

Mime
View raw message