public void handleMessage()

in cxf/cxf-binding-nmr/src/main/java/org/apache/servicemix/cxf/binding/nmr/interceptors/NMROperationInInterceptor.java [49:66]


    public void handleMessage(NMRMessage message) throws Fault {
        Exchange ex = message.getExchange();
        Endpoint ep = ex.get(Endpoint.class);
        BindingOperationInfo boi = ex.get(BindingOperationInfo.class);
        if (boi == null && message.getNmrExchange()!= null 
                && message.getNmrExchange().getOperation() != null) {
            BindingInfo service = ep.getEndpointInfo().getBinding();
            boi = getBindingOperationInfo(service, message.getNmrExchange().getOperation());
            if (boi == null) {
                throw new Fault(new Message("UNKNOWN_OPERATION", BUNDLE, 
                        message.getNmrExchange().getOperation().toString()));
            }
            ex.put(BindingOperationInfo.class, boi);
            ex.put(OperationInfo.class, boi.getOperationInfo());
            ex.setOneWay(boi.getOperationInfo().isOneWay());
            message.put(MessageInfo.class, boi.getInput().getMessageInfo());
        }
    }