Search in sources :

Example 1 with AbstractInOutMessageReceiver

use of org.apache.axis2.receivers.AbstractInOutMessageReceiver in project wso2-axis2-transports by wso2.

the class AxisEchoEndpoint method createOperation.

@Override
protected InOutAxisOperation createOperation() {
    InOutAxisOperation operation = new InOutAxisOperation(new QName("echo"));
    operation.setMessageReceiver(new AbstractInOutMessageReceiver() {

        @Override
        public void invokeBusinessLogic(MessageContext inMessage, MessageContext outMessage) throws AxisFault {
            outMessage.setEnvelope(inMessage.getEnvelope());
        }
    });
    return operation;
}
Also used : AxisFault(org.apache.axis2.AxisFault) QName(javax.xml.namespace.QName) MessageContext(org.apache.axis2.context.MessageContext) InOutAxisOperation(org.apache.axis2.description.InOutAxisOperation) AbstractInOutMessageReceiver(org.apache.axis2.receivers.AbstractInOutMessageReceiver)

Aggregations

QName (javax.xml.namespace.QName)1 AxisFault (org.apache.axis2.AxisFault)1 MessageContext (org.apache.axis2.context.MessageContext)1 InOutAxisOperation (org.apache.axis2.description.InOutAxisOperation)1 AbstractInOutMessageReceiver (org.apache.axis2.receivers.AbstractInOutMessageReceiver)1