javax.xml.rpc.handler.soap
Interface SOAPMessageContext
- All Superinterfaces:
- MessageContext
- public interface SOAPMessageContext
- extends MessageContext
The interface javax.xml.rpc.soap.SOAPMessageContext
provides access to the SOAP message for either RPC request or
response. The javax.xml.soap.SOAPMessage
specifies
the standard Java API for the representation of a SOAP 1.1 message
with attachments.
- See Also:
SOAPMessage
getRequestMessage
public SOAPMessage getRequestMessage()
- Gets the request SOAPMessage from this message context
- Returns:
- Returns the SOAPMessage; returns null if no request
SOAPMessage is present in this SOAPMessageContext
setRequestMessage
public void setRequestMessage(SOAPMessage message)
throws JAXRPCException
- Sets the request SOAPMessage for this message context
- Parameters:
message
- Request SOAP message- Throws:
JAXRPCException
- If any error during the setting
of the request message or if invalid SOAPMessage
is setjava.lang.UnsupportedOperationException
- If this
operation is not supported
getResponseMessage
public SOAPMessage getResponseMessage()
throws JAXRPCException
- Gets the response SOAPMessage for this message context
- Returns:
- Returns the SOAPMessage; returns null if no response
SOAPMessage is present in this SOAPMessageContext
- Throws:
JAXRPCException
-
setResponseMessage
public void setResponseMessage(SOAPMessage message)
throws JAXRPCException
- Sets the response SOAPMessage for this message context
- Parameters:
message
- Response SOAP message- Throws:
JAXRPCException
- If any error during the setting
of the response message or if invalid SOAPMessage
is setjava.lang.UnsupportedOperationException
- If this
operation is not supported
Copyright © 2001 Apache XML Project. All Rights Reserved.