You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "tli (JIRA)" <ji...@apache.org> on 2007/01/16 10:46:27 UTC

[jira] Created: (CXF-365) Marshalling generated wrong value for null input parameter

Marshalling generated wrong value for null input parameter
----------------------------------------------------------

                 Key: CXF-365
                 URL: https://issues.apache.org/jira/browse/CXF-365
             Project: CXF
          Issue Type: Bug
          Components: JAXB Databinding
    Affects Versions: 2.0-RC
            Reporter: tli


for methoda(Object param1, Object param2 ... ) , Object paramN allow null value in wsdl definition
when executing port.methoda(param1, null ...), the correct message shold be:
  <ts:param1>...</ts:param1>
  <ts:param2 ts:nil=true/>
but actually, I got
  <ts:param1>...</ts:param1>




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

        

[jira] Commented: (CXF-365) Marshalling generated wrong value for null input parameter

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471630 ] 

Freeman Fang commented on CXF-365:
----------------------------------

method is 
 public String testNillable(String nillElem, int intElem)
if the first param is null
the the message is 

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:testNillable xmlns:ns2="http://apache.org/hello_world_soap_http/types" xmlns="http://www.w3.org/2005/08/addressing/wsdl">
<ns2:NillElem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ns2:intElem>100</ns2:intElem>
</ns2:testNillable>
</soap:Body>
</soap:Envelope>

we can see the null param is not missing from the message

> Marshalling generated wrong value for null input parameter
> ----------------------------------------------------------
>
>                 Key: CXF-365
>                 URL: https://issues.apache.org/jira/browse/CXF-365
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.0-RC
>            Reporter: tli
>         Assigned To: Freeman Fang
>
> for methoda(Object param1, Object param2 ... ) , Object paramN allow null value in wsdl definition
> when executing port.methoda(param1, null ...), the correct message shold be:
>   <ts:param1>...</ts:param1>
>   <ts:param2 ts:nil=true/>
> but actually, I got
>   <ts:param1>...</ts:param1>

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


[jira] Closed: (CXF-365) Marshalling generated wrong value for null input parameter

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

Freeman Fang closed CXF-365.
----------------------------

    Resolution: Cannot Reproduce

> Marshalling generated wrong value for null input parameter
> ----------------------------------------------------------
>
>                 Key: CXF-365
>                 URL: https://issues.apache.org/jira/browse/CXF-365
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.0-RC
>            Reporter: tli
>         Assigned To: Freeman Fang
>
> for methoda(Object param1, Object param2 ... ) , Object paramN allow null value in wsdl definition
> when executing port.methoda(param1, null ...), the correct message shold be:
>   <ts:param1>...</ts:param1>
>   <ts:param2 ts:nil=true/>
> but actually, I got
>   <ts:param1>...</ts:param1>

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


[jira] Commented: (CXF-365) Marshalling generated wrong value for null input parameter

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471622 ] 

Freeman Fang commented on CXF-365:
----------------------------------

I add a method testNillable in hello_world.wsdl , which in message is defined as follows
<element name="testNillable">
                <complexType>
                    <sequence>
                        <element name="NillElem" nillable="true" type="string"/>
                        <element name="intElem" type="int"/>
                    </sequence>
                </complexType>
            </element>

And I can get nillable element mashalled in the message which value is null, just as you expect.
Would you provide the wsdl you use to see how to reproduce this issue, I will close this issue now since I cannot reproduce it.

> Marshalling generated wrong value for null input parameter
> ----------------------------------------------------------
>
>                 Key: CXF-365
>                 URL: https://issues.apache.org/jira/browse/CXF-365
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.0-RC
>            Reporter: tli
>         Assigned To: Freeman Fang
>
> for methoda(Object param1, Object param2 ... ) , Object paramN allow null value in wsdl definition
> when executing port.methoda(param1, null ...), the correct message shold be:
>   <ts:param1>...</ts:param1>
>   <ts:param2 ts:nil=true/>
> but actually, I got
>   <ts:param1>...</ts:param1>

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


[jira] Assigned: (CXF-365) Marshalling generated wrong value for null input parameter

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

Freeman Fang reassigned CXF-365:
--------------------------------

    Assignee: Freeman Fang

> Marshalling generated wrong value for null input parameter
> ----------------------------------------------------------
>
>                 Key: CXF-365
>                 URL: https://issues.apache.org/jira/browse/CXF-365
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.0-RC
>            Reporter: tli
>         Assigned To: Freeman Fang
>
> for methoda(Object param1, Object param2 ... ) , Object paramN allow null value in wsdl definition
> when executing port.methoda(param1, null ...), the correct message shold be:
>   <ts:param1>...</ts:param1>
>   <ts:param2 ts:nil=true/>
> but actually, I got
>   <ts:param1>...</ts:param1>

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