Class ScriptMessageContext

All Implemented Interfaces:
Externalizable, Serializable, SafeSerializable

public class ScriptMessageContext extends MessageContext
ScriptMessageContext decorates the Axis2 MessageContext adding methods to use the message payload XML in a way natural to the scripting language.
See Also:
  • Constructor Details

  • Method Details

    • getPayloadXML

      public Object getPayloadXML()
      Get the XML representation of SOAP Body payload. The payload is the first element inside the SOAP tags
      Returns:
      the XML SOAP Body
    • setPayloadXML

      public void setPayloadXML(Object payload)
      Set the SOAP body payload from XML
      Parameters:
      payload -
      Throws:
      XMLStreamException
    • getEnvelopeXML

      public Object getEnvelopeXML()
      Get the XML representation of the complete SOAP envelope
    • setTo

      public void setTo(String reference)
    • setFaultTo

      public void setFaultTo(String reference)
    • setFrom

      public void setFrom(String reference)
    • setReplyTo

      public void setReplyTo(String reference)