You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Tom Jordahl (JIRA)" <ji...@apache.org> on 2005/06/07 21:05:10 UTC

[jira] Commented: (AXIS2-24) Unable to omit element if nillable=true or minoccurs=0/maxoccurs=1

    [ http://issues.apache.org/jira/browse/AXIS2-24?page=comments#action_12312924 ] 

Tom Jordahl commented on AXIS2-24:
----------------------------------

If the nilable attribute is TRUE, then Axis will always nil the element if the value passed in is null.  If nilable is FALSE, then Axis should properly omit the element from the XML on the wire.  See the test in java/test/wsdl/omit.


> Unable to omit element if nillable=true or minoccurs=0/maxoccurs=1
> ------------------------------------------------------------------
>
>          Key: AXIS2-24
>          URL: http://issues.apache.org/jira/browse/AXIS2-24
>      Project: Axis2
>         Type: Bug
>   Components: engine
>  Environment: WINDOWS 2000, Tomcat 5.0,Axis1.2RC3
>     Reporter: RAGHU KONALA
>     Assignee: Davanum Srinivas

>
> We are developing WebServices using Axis1.2RC3 on Tomcat 5. The issue
> I am facing is we are unable to omit an xml element when the data is
> null. Here is the wsdl excerpt for the data element.
> <xsd:element name="someThing"   type="xsd:decimal" nillable="true"
> minoccurs="0" maxoccurs="1"/>
> .
> someThing appears in the response as <someThing>0</someThing> even
> when someThing is null.
> Tried with both rpc/encoded and document/literal

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Re: [jira] Commented: (AXIS2-24) Unable to omit element if nillable=true or minoccurs=0/maxoccurs=1

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Gayan and Chinthka,

I did some debugging and found that the problem is not in the OM and its in 
TransPortReceiver.


Thanks and Regards;
Deepal


>
>
>> Unable to omit element if nillable=true or minoccurs=0/maxoccurs=1
>> ------------------------------------------------------------------
>>
>>          Key: AXIS2-24
>>          URL: http://issues.apache.org/jira/browse/AXIS2-24
>>      Project: Axis2
>>         Type: Bug
>>   Components: engine
>>  Environment: WINDOWS 2000, Tomcat 5.0,Axis1.2RC3
>>     Reporter: RAGHU KONALA
>>     Assignee: Davanum Srinivas
>
>>
>> We are developing WebServices using Axis1.2RC3 on Tomcat 5. The issue
>> I am facing is we are unable to omit an xml element when the data is
>> null. Here is the wsdl excerpt for the data element.
>> <xsd:element name="someThing"   type="xsd:decimal" nillable="true"
>> minoccurs="0" maxoccurs="1"/>
>> .
>> someThing appears in the response as <someThing>0</someThing> even
>> when someThing is null.
>> Tried with both rpc/encoded and document/literal
>
> -- 
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
>   http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
>   http://www.atlassian.com/software/jira
>
>
>