Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 90889 invoked from network); 8 Jan 2010 10:54:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jan 2010 10:54:10 -0000 Received: (qmail 6458 invoked by uid 500); 8 Jan 2010 10:54:09 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 6374 invoked by uid 500); 8 Jan 2010 10:54:09 -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 6365 invoked by uid 99); 8 Jan 2010 10:54:09 -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 10:54:09 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [212.103.193.198] (HELO mail.cardinis.com) (212.103.193.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jan 2010 10:54:02 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.cardinis.com (Postfix) with ESMTP id A787F64D0B8A for ; Fri, 8 Jan 2010 11:53:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.cardinis.com Received: from mail.cardinis.com ([127.0.0.1]) by localhost (mail.ost.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JkgI3fyVBMpe for ; Fri, 8 Jan 2010 11:53:39 +0100 (CET) Received: from [10.2.1.52] (ws-mauro.ost.lan [10.2.1.52]) by mail.cardinis.com (Postfix) with ESMTP id 8B0E364D0B83 for ; Fri, 8 Jan 2010 11:53:39 +0100 (CET) Message-ID: <4B470EBC.1010506@cardinis.com> Date: Fri, 08 Jan 2010 11:53:48 +0100 From: Mauro Molinari Organization: Cardinis Solutions 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> <4B46D7B6.5060101@jmsys.lt> In-Reply-To: <4B46D7B6.5060101@jmsys.lt> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. (*) https://issues.apache.org/jira/browse/AXIS2-3300 -- Mauro Molinari Software Designer & Developer E-mail: mauro.molinari@cardinis.com