You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Fabian González (JIRA)" <ji...@apache.org> on 2018/04/04 20:11:00 UTC

[jira] [Created] (CXF-7699) StaxDataBindingInterceptor does not correctly resolve the Operation according to message

Fabian González created CXF-7699:
------------------------------------

             Summary: StaxDataBindingInterceptor does not correctly resolve the Operation according to message
                 Key: CXF-7699
                 URL: https://issues.apache.org/jira/browse/CXF-7699
             Project: CXF
          Issue Type: Bug
         Environment: StaxDataBindingInterceptor does not correctly resolve the Operation according to message.

Notice that here:

[https://github.com/apache/cxf/blob/master/core/src/main/java/org/apache/cxf/databinding/stax/StaxDataBindingInterceptor.java#L68]

It is not taking into account that there are times when the binding have multiple operations. So the Operation info has to be resolved according to the operation in the message. 

For example:

  
{code:java}
      if (bop == null) {
            Endpoint ep = exchange.get(Endpoint.class);
            bop = ep.getBinding().getBindingInfo().getOperation(xmlReader.getName());
            if (bop == null) {
                bop = ep.getBinding().getBindingInfo().getOperations().iterator().next();
            }
        }
{code}
 
            Reporter: Fabian González






--
This message was sent by Atlassian JIRA
(v7.6.3#76005)