cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Liam H (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-7240) JAX-WS Dispatch incorrectly asserts that Message mode with XML/HTTP binding is invalid when using instances of DataSource
Date Thu, 02 Feb 2017 13:09:51 GMT
Liam H created CXF-7240:
---------------------------

             Summary: 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.10, 3.1.7
            Reporter: Liam H


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)

Mime
View raw message