[jira] [Resolved] (CXF-7240) JAX-WS Dispatch incorrectly asserts that Message mode with XML/HTTP binding is invalid when using instances of DataSource

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Resolved] (CXF-7240) JAX-WS Dispatch incorrectly asserts that Message mode with XML/HTTP binding is invalid when using instances of DataSource

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/CXF-7240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved CXF-7240.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 3.1.11
                   3.0.13
                   3.2.0

> JAX-WS Dispatch incorrectly asserts that Message mode with XML/HTTP binding is invalid when using instances of DataSource
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-7240
>                 URL: https://issues.apache.org/jira/browse/CXF-7240
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 3.1.7, 3.1.10
>            Reporter: Liam H
>            Assignee: Freeman Fang
>             Fix For: 3.2.0, 3.0.13, 3.1.11
>
>
> If a instance of dispatch is created in the following way:
> {code:java}
>     QName serviceName = new QName("http://org.apache.cxf", "stockQuoteReporter");
>     Service s = Service.create(serviceName);
>  
>     QName portName = new QName("http://org.apache.cxf", "stockQuoteReporterPort");
>     Dispatch<ByteDataSource> dispatch = s.createDispatch(portName,
>                                                          ByteDataSource.class,
>                                                          Service.Mode.MESSAGE);}}
> {code}
> then invoking the created Dispatch instance like so:
> {code:java}
>     dispatch.invoke(new ByteDataSource("".getBytes()));
> {code}
> results in an exception with the message "DataSource is not valid in MESSAGE mode with XML/HTTP binding."
> This contradicts your own documentation(and I believe the JAX-WS spec) in that these are this the only binding and mode you can use in combination with a DataSource :
> {quote}
> Dispatch objects can use objects that implement the javax.activation.DataSource interface when the following conditions are true:
>     the Dispatch object is using the HTTP binding.
>     the Dispatch object is using message mode.
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
Loading...