Search in sources :

Example 6 with Message

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;
}
Also used : Message(com.sun.xml.ws.api.message.Message) SOAPMessage(javax.xml.soap.SOAPMessage) SOAPMessage(javax.xml.soap.SOAPMessage)

Aggregations

Message (com.sun.xml.ws.api.message.Message)6 Packet (com.sun.xml.ws.api.message.Packet)3 WSDLPort (com.sun.xml.ws.api.model.wsdl.WSDLPort)2 WSSecureConversationException (com.sun.xml.ws.security.secconv.WSSecureConversationException)2 AuthStatus (javax.security.auth.message.AuthStatus)2 SOAPMessage (javax.xml.soap.SOAPMessage)2 WebServiceException (javax.xml.ws.WebServiceException)2 PacketMessageInfo (com.sun.enterprise.security.jmac.provider.PacketMessageInfo)1 WSDLBoundOperation (com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation)1 QName (javax.xml.namespace.QName)1