Top Description Methods
javax.xml.rpc.handler.soap

public Interface SOAPMessageContext

extends MessageContext
Imports
javax.xml.rpc.JAXRPCException, javax.xml.soap.SOAPMessage

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.
Author
Rahul Sharma
Version
1.0
See Also
javax.xml.soap.SOAPMessage

Method Summary

Modifier and TypeMethod and Description
public SOAPMessage

Returns:

Returns the SOAPMessage; returns null if no SOAPMessage is present in this message context
getMessage
()

Gets the SOAPMessage from this message context

public String[]

Returns:

Array of URIs for SOAP actor roles
getRoles
()

Gets the SOAP actor roles associated with an execution of the HandlerChain and its contained Handler instances.

public void
setMessage(SOAPMessage
SOAP message
message
)

Sets the SOAPMessage in this message context

Inherited from javax.xml.rpc.handler.MessageContext:
containsPropertygetPropertygetPropertyNamesremovePropertysetProperty

Method Detail

getMessageback to summary
public SOAPMessage getMessage()

Gets the SOAPMessage from this message context

Returns:SOAPMessage

Returns the SOAPMessage; returns null if no SOAPMessage is present in this message context

getRolesback to summary
public String[] getRoles()

Gets the SOAP actor roles associated with an execution of the HandlerChain and its contained Handler instances. Note that SOAP actor roles apply to the SOAP node and are managed using HandlerChain.setRoles and HandlerChain.getRoles. Handler instances in the HandlerChain use this information about the SOAP actor roles to process the SOAP header blocks. Note that the SOAP actor roles are invariant during the processing of SOAP message through the HandlerChain.

Returns:String[]

Array of URIs for SOAP actor roles

See Also
javax.xml.rpc.handler.HandlerChain#setRoles, javax.xml.rpc.handler.HandlerChain#getRoles
setMessageback to summary
public void setMessage(SOAPMessage message)

Sets the SOAPMessage in this message context

Parameters
message:SOAPMessage

SOAP message

Exceptions
JAXRPCException:
If any error during the setting of the SOAPMessage in this message context
UnsupportedOperationException:
If this operation is not supported