Class MessageUtils
- java.lang.Object
-
- org.apache.axis2.jaxws.message.util.MessageUtils
-
public class MessageUtils extends Object
Miscellaneous Utilities that may be useful inside and outside the Message subcomponent.
-
-
Constructor Summary
Constructors Constructor Description MessageUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AttachmentPartcreateAttachmentPart(String cid, DataHandler dh, SOAPMessage message)Create an SAAJ AttachmentPart from a JAXWS Attachmentstatic MessagegetMessageFromMessageContext(MessageContext msgContext)Create a JAX-WS Message from the information on an Axis 2 Message Contextstatic voidputMessageOnMessageContext(Message message, MessageContext msgContext)Put the JAX-WS Message onto the Axis2 MessageContext
-
-
-
Method Detail
-
createAttachmentPart
public static AttachmentPart createAttachmentPart(String cid, DataHandler dh, SOAPMessage message)
Create an SAAJ AttachmentPart from a JAXWS Attachment- Parameters:
cid- String content iddh- DataHandlermessage- SOAPMessage- Returns:
- AttachmentPart
-
getMessageFromMessageContext
public static Message getMessageFromMessageContext(MessageContext msgContext) throws WebServiceException
Create a JAX-WS Message from the information on an Axis 2 Message Context- Parameters:
msgContext-- Returns:
- Message
- Throws:
WebServiceException
-
putMessageOnMessageContext
public static void putMessageOnMessageContext(Message message, MessageContext msgContext) throws AxisFault, WebServiceException
Put the JAX-WS Message onto the Axis2 MessageContext- Parameters:
message- JAX-WS MessagemsgContext- Axis2MessageContext- Throws:
AxisFaultWebServiceException
-
-