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

Robert Egglestone edited comment on CXF-2309 at 6/22/09 1:53 PM:
-----------------------------------------------------------------

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

More info is available from:
http://cwiki.apache.org/CXF20DOC/developing-a-service.html#DevelopingaService-DefiningtheBindingPropertieswithAnnotations


import javax.jws.soap.SOAPBinding.*;

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

        @WebMethod
        Document getExampleDocument();
}

      was (Author: robertegglestone):
    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.

Reply via email to