public class MessageUtils extends Object
| Constructor and Description |
|---|
MessageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static AttachmentPart |
createAttachmentPart(String cid,
DataHandler dh,
SOAPMessage message)
Create an SAAJ AttachmentPart from a JAXWS Attachment
|
static Message |
getMessageFromMessageContext(org.apache.axis2.context.MessageContext msgContext)
Create a JAX-WS Message from the information on an Axis 2 Message Context
|
static void |
putMessageOnMessageContext(Message message,
org.apache.axis2.context.MessageContext msgContext)
Put the JAX-WS Message onto the Axis2 MessageContext
|
public static AttachmentPart createAttachmentPart(String cid, DataHandler dh, SOAPMessage message)
cid - String content iddh - DataHandlermessage - SOAPMessagepublic static Message getMessageFromMessageContext(org.apache.axis2.context.MessageContext msgContext) throws WebServiceException
msgContext - WebServiceExceptionpublic static void putMessageOnMessageContext(Message message, org.apache.axis2.context.MessageContext msgContext) throws org.apache.axis2.AxisFault, WebServiceException
message - JAX-WS MessagemsgContext - Axis2MessageContextorg.apache.axis2.AxisFaultWebServiceExceptionCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.