Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7699

StaxDataBindingInterceptor does not correctly resolve the Operation according to message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.7.18
    • None
    • JAX-WS Runtime
    • None
    • Unknown

    Description

      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

      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:

       

            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();
                  }
              }
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            fabian.gonzalez Fabian González
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: