OMElement response = null;
try {
String operationName = getOperationName(inMsgContext);
MsgBoxOperations msgType = MsgBoxOperations.valueFrom(operationName);
switch (msgType) {
case STORE_MSGS: {
SOAPEnvelope enlp = inMsgContext.getEnvelope();
OMElement message = enlp.getBody().getFirstElement();
String msgBoxId = getClientId(inMsgContext);
String messageId = inMsgContext.getMessageID();
String soapAction = inMsgContext.getSoapAction();
response = skel.storeMessages(msgBoxId, messageId, soapAction, message);
break;
}
case DESTROY_MSGBOX: {
String msgBoxId = getClientId(inMsgContext);
response = skel.destroyMsgBox(msgBoxId);
break;
}
case TAKE_MSGS: {
String msgBoxId = getClientId(inMsgContext);
response = skel.takeMessages(msgBoxId);
break;
}
case CREATE_MSGBOX: {
response = skel.createMsgBox();
break;
}
default:
throw new AxisFault("unsupported operation" + msgType.toString());
}
} catch (AxisFault afe) {
throw afe;
} catch (Exception e) {