[ 
https://issues.apache.org/jira/browse/CXF-2309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722838#action_12722838
 ] 

Yuriy Halytskyy commented on CXF-2309:
--------------------------------------

Yes, it should, but I expect those tags to be removed when the user of web 
service gets the result. I updated the attachment to demonstrate the point:

extra method getExampleString() returns a string; but the client is not getting 
<return>string</return> or anything like that, it is getting what was sent. 
(Even though the message contains <return>, those get removed).  So when I use

System.out.println(result_converted_to_string), the result of that should be

<node>test</node>

not

<return><node>test</node></return>

Using bare mode works, but it does not let me send multiple arguments (method 
add does not work when SOAPBinding annotation is used). 

The same problem when I send xml to server. Server gets <arg0>...</arg0> 
result. 

Hope the description is clear now.

> client gets extra <return> tags with org.w3c.dom.Document result
> ----------------------------------------------------------------
>
>                 Key: CXF-2309
>                 URL: https://issues.apache.org/jira/browse/CXF-2309
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.2.2
>         Environment: tried on both Ubuntu  9.04 and CentOS 5.3,
> java 6
>            Reporter: Yuriy Halytskyy
>         Attachments: test_cxf.tar.gz
>
>
> web service client de-serializes   org.w3c.dom.Document  with extra <return> 
> tags. 
> i.e. result of getExampleDocument() should be <node>test</node> but the 
> client gets  <return><node>test</node><return>
> The message that server sends is 
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
> <soap:Body>
> <ns1:getExampleDocumentResponse xmlns:ns1="http://cxftest.org/";>
> <return><node>test</node></return></ns1:getExampleDocumentResponse>
> </soap:Body></soap:Envelope>

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

Reply via email to