axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mauro Molinari <>
Subject Re: [Axis2] making minOccurs=1 by default for wsdl generated with POJO
Date Fri, 08 Jan 2010 10:53:48 GMT
Michail Prusakov ha scritto:
> I am sorry I've missed the discussion, but why have you made minOccurs=1 
> for null non-primitives? As far as I see it, if a value is null the wsdl 
> should allow passing it as nill or not passing it at all because:
> 1) two ways of saying something is null means better interoperability as 
> if a client does not support one way, it can use the other. I believe 
> .NET 1.x clients are good example of this.
> 2) by omitting a value we can make the soap message smaller and thus 
> increase performance.

Hi Mike,
if you read the whole discussion and especially the related issue(*), 
you'll see that by specifying minOccurs=0 for null non-primitives will 
cause Axis2 to generate a WSDL from which .NET tools will have problems 
to generate clients. These are .NET bugs, but if they can be avoided 
it's better, otherwise .NET interoperability is severely affected.

IMHO the preferred way to solve this would have been to have a flag 
(false by default) to use a ".NET friendly" generation algorithm, but 
Amila preferred not to go this way.


Mauro Molinari
Software Designer & Developer

View raw message