Amila, I noticed someone has already reported this on Jira.
http://issues.apache.org/jira/browse/AXIS2-3037 Looking at Comments on this page, you said you have added an option to off the strict validations and it won't be Axis2 1.3. Could you please tell me what the option (WSDL2Java) is? I suppose this is a different option from -Eosv as it already made into 1.3 and it seems it doesn't work. Also is it under SVN nightly-build? Thank you again. - Leon Amila Suriarachchi wrote:
On 8/30/07, *Leon Hwang* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> 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: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -- Amila Suriarachchi, WSO2 Inc.
-- Leon Hwang Senior Tech Lead MyStrands Inc. work: 1.541.753.4426 mobile: 1.541.740.7511 fax: 1.541.754.6416 email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
