use of com.sun.xml.ws.api.message.Message in project Payara by payara.
the class SOAPMessageContextImpl method getMessage.
public SOAPMessage getMessage() {
if (message != null) {
return message;
}
SOAPMessage soapMsg = null;
try {
// the original message
if (packet.getMessage() != null) {
Message mutable = packet.getMessage().copy();
soapMsg = mutable.readAsSOAPMessage();
}
} catch (Exception e) {
logger.log(Level.SEVERE, LogUtils.ERROR_OCCURED, e);
}
// store the message so we don't have to convert again
message = soapMsg;
return soapMsg;
}
Aggregations