Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 23051 invoked from network); 8 Jan 2010 06:59:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jan 2010 06:59:36 -0000 Received: (qmail 32359 invoked by uid 500); 8 Jan 2010 06:59:36 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 32248 invoked by uid 500); 8 Jan 2010 06:59:35 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 32239 invoked by uid 99); 8 Jan 2010 06:59:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jan 2010 06:59:35 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 209.85.219.209 is neither permitted nor denied by domain of michail.prusakov@jmsys.lt) Received: from [209.85.219.209] (HELO mail-ew0-f209.google.com) (209.85.219.209) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jan 2010 06:59:27 +0000 Received: by ewy1 with SMTP id 1so205800ewy.8 for ; Thu, 07 Jan 2010 22:59:05 -0800 (PST) Received: by 10.213.96.6 with SMTP id f6mr808499ebn.81.1262933945410; Thu, 07 Jan 2010 22:59:05 -0800 (PST) Received: from ?192.168.217.154? (lan-84-240-20-139.vln.skynet.lt [84.240.20.139]) by mx.google.com with ESMTPS id 24sm5557257eyx.6.2010.01.07.22.59.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 07 Jan 2010 22:59:04 -0800 (PST) Message-ID: <4B46D7B6.5060101@jmsys.lt> Date: Fri, 08 Jan 2010 08:59:02 +0200 From: Michail Prusakov User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: axis-dev@ws.apache.org Subject: Re: [Axis2] making minOccurs=1 by default for wsdl generated with POJO References: <4B434B5C.2040507@cardinis.com> <4B435314.90507@cardinis.com> <60708f4b1001052053x74c92480g7e534705539d89c3@mail.gmail.com> <4B45B1CE.50001@cardinis.com> <60708f4b1001070239n45bfbcbdm689be0825ff78fd7@mail.gmail.com> <4B45C0E3.3010807@cardinis.com> <60708f4b1001072109g49d571fcg50a09b71ec7dd81f@mail.gmail.com> In-Reply-To: <60708f4b1001072109g49d571fcg50a09b71ec7dd81f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. Mike Amila Suriarachchi wrote: > > > On Thu, Jan 7, 2010 at 4:39 PM, Mauro Molinari > > wrote: > > Amila Suriarachchi ha scritto: > > On Thu, Jan 7, 2010 at 3:35 PM, Mauro Molinari > > >> wrote: > > Amila Suriarachchi ha scritto: > > ok then lets make minOccurs = 1 by default. As Sosnoski > has said > it is the the best solution. but that make everyone life > easier. > > ohh. this should be 'As Sosnoski has said it is not the the best > solution' :) Sorry for mistake. > > thanks, > Amila. > > > Ok, but... given my last comments on the bug report, what is your > last committed solution then? > > Is it: > a) "nothing (=> minOccurs=1, nillable=false)" for primitives and > "nillable=true (=> still minOccurs=1)" for non-primitives > > this should be the way. > > Amila. > > > - OR - > b) "nothing (=> minOccurs=1, nillable=false)" in any case > > Thanks. > > > -- > Mauro Molinari > Software Designer & Developer > E-mail: mauro.molinari@cardinis.com > > > > > -- > Amila Suriarachchi > WSO2 Inc. > blog: http://amilachinthaka.blogspot.com/