// // Obtain the service details
// ServiceDesc service = context.getService().getServiceDescription();
// // Obtain the operation details and message type
// OperationDesc operation = context.getOperation();
// Obtain a class to handle our request
OperationHandler operationHandler = getHandler(service, operation);
// there must always be a handler.
if (operationHandler == null) {
logger.error("Missing handler for service/operation: " + service
+ "/" + operation);
throw CXFUtility
.getFault(new PEPException("Missing handler for service/operation: "
+ service + "/" + operation));
}
RequestCtx reqCtx = null;
// if we are on the request pathway, outboundProperty == false. True on
// response pathway
Boolean outboundProperty =
(Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
try {
if (outboundProperty) {
reqCtx = operationHandler.handleResponse(context);
} else {
reqCtx = operationHandler.handleRequest(context);
}
} catch (OperationHandlerException ohe) {
logger.error("Error handling operation: " + operation, ohe);
throw CXFUtility
.getFault(new PEPException("Error handling operation: "