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 "RAGHU KONALA (JIRA)" <ji...@apache.org> on 2005/06/07 18:49:41 UTC

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

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
 Assigned to: 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


[jira] Updated: (AXIS-2079) Unable to omit element if nillable=true or minoccurs=0/maxoccurs=1

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated AXIS-2079:
-----------------------------------

    Assignee:     (was: Davanum Srinivas)

> Unable to omit element if nillable=true or minoccurs=0/maxoccurs=1
> ------------------------------------------------------------------
>
>                 Key: AXIS-2079
>                 URL: https://issues.apache.org/jira/browse/AXIS-2079
>             Project: Axis
>          Issue Type: Bug
>          Components: Basic Architecture
>         Environment: WINDOWS 2000, Tomcat 5.0,Axis1.2RC3
>            Reporter: RAGHU KONALA
>
> 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.
-
You can reply to this email to add a comment to the issue online.


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


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
>
>
> 



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

Posted by "Tom Jordahl (JIRA)" <ji...@apache.org>.
    [ 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