org.apache.axis2.jaxws.message.util
Class MessageUtils

java.lang.Object
  extended by org.apache.axis2.jaxws.message.util.MessageUtils

public class MessageUtils
extends java.lang.Object

Miscellaneous Utilities that may be useful inside and outside the Message subcomponent.


Constructor Summary
MessageUtils()
           
 
Method Summary
static AttachmentPart createAttachmentPart(java.lang.String cid, javax.activation.DataHandler dh, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageUtils

public MessageUtils()
Method Detail

getSOAPFactory

public static org.apache.axiom.soap.SOAPFactory getSOAPFactory(org.apache.axiom.om.OMElement e)
Get an axiom SOAPFactory for the specified element

Parameters:
e - OMElement
Returns:
SOAPFactory

createAttachmentPart

public static AttachmentPart createAttachmentPart(java.lang.String cid,
                                                  javax.activation.DataHandler dh,
                                                  SOAPMessage message)
Create an SAAJ AttachmentPart from a JAXWS Attachment

Parameters:
cid - String content id
dh - DataHandler
message - 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 Message
msgContext - Axis2MessageContext
Throws:
AxisFault
WebServiceException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.