Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 16459 invoked from network); 11 Sep 2008 17:01:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2008 17:01:26 -0000 Received: (qmail 49715 invoked by uid 500); 11 Sep 2008 17:01:14 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 49684 invoked by uid 500); 11 Sep 2008 17:01:14 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 49673 invoked by uid 99); 11 Sep 2008 17:01:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2008 10:01:14 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of keithgchapman@gmail.com designates 209.85.217.13 as permitted sender) Received: from [209.85.217.13] (HELO mail-gx0-f13.google.com) (209.85.217.13) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2008 17:00:13 +0000 Received: by gxk6 with SMTP id 6so19344633gxk.16 for ; Thu, 11 Sep 2008 09:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=gD1EKA/Bv/Mn9VFLk6MPNrFVFi265lYIWRcrUCIgxR8=; b=V87mwWh8inGtqXhWxZ6zwyRfQgcjNafx1GAd+ubxfyVbj9qMJWNq7H5udpC3OCYw+p oBChn+VpobIPdNz+I4dOeawyMbwOGdrUlf9DZctLLe74rS3/jrgPzqpI76w86iqjs5N9 3VBnchM17DZQ941inQDmNrYysqz9DTDqHDzjM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=wx9YNjhdS+pzYqPqlGSB70aT+EgBqnRvR3CqP9PtXe0F2VQaEZqdWc4ys6k/m3IVsu ZB5HPZHZkfqsz+ElWGF5lyIpOpnLypPyk3aRtweE1/kj3r6VU3yAe6NXMnzhKCnF4uEC 4BrKrNUA75GmOyAZeHqSvspejSWhKdn5U0LdA= Received: by 10.151.12.1 with SMTP id p1mr4430302ybi.1.1221152384598; Thu, 11 Sep 2008 09:59:44 -0700 (PDT) Received: by 10.151.154.12 with HTTP; Thu, 11 Sep 2008 09:59:44 -0700 (PDT) Message-ID: Date: Thu, 11 Sep 2008 22:29:44 +0530 From: "keith chapman" To: axis-user@ws.apache.org Subject: Re: Axis 1.3 generates object instead of null. In-Reply-To: <1221054894.4751.194.camel@anatoly.zedo> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_26761_32205392.1221152384567" References: <1221054894.4751.194.camel@anatoly.zedo> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_26761_32205392.1221152384567 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, The behavior of Axis2 in your case is correct. If zipTargeting was to be null then your payload should have been something like That instructs axis2 that this element is null. Thanks, Keith. On Wed, Sep 10, 2008 at 7:24 PM, Anatoly Rybalchenko wrote: > Hello, > > We have service with Axis2 1.3 running and I faced following issue: > For nillable elements in WSDL like > > nillable="true" type="ax24:CreativeZipTargeting"/> > > server receive soap envelope that contains empty placeholder, e.g. > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> > > .... > > > ... > > ... > > > > Expected behavior in this case is that null object for zipTargeting > should be created, but instead of this zipTargeting object with default > constructor is created. Is this a bug known for 1.3 version or I missed > something? > > best regards, > Anatoly Rybalchenko. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org ------=_Part_26761_32205392.1221152384567 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,

The behavior of Axis2 in your case is correct. If zipTargeting was to be null then your payload should have been something like

<zipTargeting xsi:nill="true" smlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

That instructs axis2 that this element is null.

Thanks,
Keith.

On Wed, Sep 10, 2008 at 7:24 PM, Anatoly Rybalchenko <anatoly@zedo.com> wrote:
Hello,

We have service with Axis2 1.3 running and I faced following issue:
For nillable elements in WSDL like

<xs:element maxOccurs="unbounded" minOccurs="0" name="zipTargeting"
nillable="true" type="ax24:CreativeZipTargeting"/>

server receive soap envelope that contains empty placeholder, e.g.

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header>
....
</SOAP-ENV:Header>
<SOAP-ENV:Body>
...
<zipTargeting/>
...
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Expected behavior in this case is that null object for zipTargeting
should be created, but instead of this zipTargeting object with default
constructor is created. Is this a bug known for 1.3 version or I missed
something?

best regards,
Anatoly Rybalchenko.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org




--
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org
------=_Part_26761_32205392.1221152384567--