You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Robert Egglestone (JIRA)" <ji...@apache.org> on 2009/06/22 22:53:07 UTC

[jira] Commented: (CXF-2309) client gets extra tags with org.w3c.dom.Document result

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

Robert Egglestone commented on CXF-2309:
----------------------------------------

You need to add this annotation to TestInterface so that it's non-wrapped:
@SOAPBinding(parameterStyle = ParameterStyle.BARE)


import javax.jws.soap.SOAPBinding.*;

@WebService
@SOAPBinding(parameterStyle = ParameterStyle.BARE)
public interface TestInterface {

	@WebMethod
	Document getExampleDocument();
}

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