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

Daniel Kulp commented on CXF-4608:
----------------------------------

Can you try with a newer version of CXF?

I just added a system test to our test suite:

http://svn.apache.org/viewvc/cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java?r1=1404719&r2=1404718&pathrev=1404719

to test the StAXSource with the Dispatch and it works perfectly.   The returned 
value is a proper StAXSource.


                
> DOMSource is returned rather than StAXSource
> --------------------------------------------
>
>                 Key: CXF-4608
>                 URL: https://issues.apache.org/jira/browse/CXF-4608
>             Project: CXF
>          Issue Type: Bug
>          Components: Services
>    Affects Versions: 2.4.2
>            Reporter: Steven Hawkins
>             Fix For: NeedMoreInfo
>
>
> A Service created from a WSDL that has doc literal wrapped operations will 
> always return DOMSource regardless of the source type requested by the 
> Dispatch.invoke method.
> For example using a WSDL such as: http://www.xignite.com/xQuotes.asmx?WSDL, 
> the following code highlights the issue with a class cast exception on the 
> last line:
> {code}
> Service service = Service.create(wsdl, new 
> QName("http://www.xignite.com/services/";, "XigniteQuotes"));
> Dispatch<T> dispatch = wsdlService.createDispatch(new 
> QName("http://www.xignite.com/services/";, "XigniteQuotesSoap"), 
> StAXSource.class, Service.Mode.PAYLOAD);
> QName opQName = new QName("http://www.xignite.com/services/";, "GetFundQuote");
> dispatch.getRequestContext().put(MessageContext.WSDL_OPERATION, opQName); 
> StAXSource result = dispatch.invoke(someDoc);
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to