NormalizedMessage normalizedMessage = receiveNormalized();
UnWrappedMessage unwrappedMessage = null;
if(normalizedMessage != null) {
try {
String operationName = me.getOperation().getLocalPart();
unwrappedMessage = new UnWrappedMessage();
unwrappedMessage.setNormalizedMessage(normalizedMessage);
if(normalizedMessage instanceof Fault) {
unwrappedMessage.unwrapFault();
} else {
unwrappedMessage.setWSDLMessageType(
new QName(
emd.getInputMessage(operationName).getQName().getNamespaceURI(),
operationName));
unwrappedMessage.setWSDLBindingStyle(
emd.getBindingStyle(operationName));
unwrappedMessage.setWSDLOrderedParts(
emd.getInputMessage(operationName).getOrderedParts(null));
unwrappedMessage.setWSDLPartBindings(
emd.getInputPartBindings(operationName));
unwrappedMessage.unwrap();
}
} catch(Exception ex) {
logger.log(Level.SEVERE, ex.getMessage(), ex);
// TODO : Should we send error/fault to client???
}
}
return unwrappedMessage;