You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "amit rathi (JIRA)" <ji...@apache.org> on 2010/03/04 14:49:27 UTC

[jira] Created: (CXF-2691) How to set null value in an element in response?

How to set null value in an element in response?
------------------------------------------------

                 Key: CXF-2691
                 URL: https://issues.apache.org/jira/browse/CXF-2691
             Project: CXF
          Issue Type: Task
            Reporter: amit rathi


Hi,

We are facing one issue w.r.t. a null value for one of the element in the response. As per the xsd, the element is nillable = false.  While populating the response we are getting null value for this from Database. When we see the response in SOAP UI, it doesn't show this element at all. This is causing issue for consumer. Is there any way to have this element be seen in the response as empty element?

Thanks & Regards


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-2691) How to set null value in an element in response?

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-2691.
------------------------------

    Fix Version/s: Invalid
       Resolution: Won't Fix



This is working as designed.    If the value is null, then if it is nillable=true, you would get an empty element with xsi:nil=true set.   Otherwise, the element is omitted.   

> How to set null value in an element in response?
> ------------------------------------------------
>
>                 Key: CXF-2691
>                 URL: https://issues.apache.org/jira/browse/CXF-2691
>             Project: CXF
>          Issue Type: Task
>            Reporter: amit rathi
>             Fix For: Invalid
>
>
> Hi,
> We are facing one issue w.r.t. a null value for one of the element in the response. As per the xsd, the element is nillable = false.  While populating the response we are getting null value for this from Database. When we see the response in SOAP UI, it doesn't show this element at all. This is causing issue for consumer. Is there any way to have this element be seen in the response as empty element?
> Thanks & Regards

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.