public class MessageUtils extends Object
| Constructor and Description |
|---|
MessageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static javax.xml.soap.AttachmentPart |
createAttachmentPart(String cid,
javax.activation.DataHandler dh,
javax.xml.soap.SOAPMessage message)
Create an SAAJ AttachmentPart from a JAXWS Attachment
|
static Message |
getMessageFromMessageContext(MessageContext msgContext)
Create a JAX-WS Message from the information on an Axis 2 Message Context
|
static org.apache.axiom.soap.SOAPFactory |
getSOAPFactory(org.apache.axiom.om.OMElement e)
Get an axiom SOAPFactory for the specified element
|
static void |
putMessageOnMessageContext(Message message,
MessageContext msgContext)
Put the JAX-WS Message onto the Axis2 MessageContext
|
public static org.apache.axiom.soap.SOAPFactory getSOAPFactory(org.apache.axiom.om.OMElement e)
e - OMElementpublic static javax.xml.soap.AttachmentPart createAttachmentPart(String cid, javax.activation.DataHandler dh, javax.xml.soap.SOAPMessage message)
cid - String content iddh - DataHandlermessage - SOAPMessagepublic static Message getMessageFromMessageContext(MessageContext msgContext) throws javax.xml.ws.WebServiceException
msgContext - javax.xml.ws.WebServiceExceptionpublic static void putMessageOnMessageContext(Message message, MessageContext msgContext) throws AxisFault, javax.xml.ws.WebServiceException
message - JAX-WS MessagemsgContext - Axis2MessageContextAxisFaultjavax.xml.ws.WebServiceExceptionCopyright © 2004–2015 The Apache Software Foundation. All rights reserved.