## Uses of Interface
javax.xml.ws.handler.MessageContext

- Packages that use MessageContext
  Package | Description
  --- | ---
  javax.xml.ws | This package contains the core JAX-WS APIs.
  javax.xml.ws.handler | This package defines APIs for message handlers.
  javax.xml.ws.handler.soap | This package defines APIs for SOAP message handlers.

- - ### Uses of MessageContext in javax.xml.ws

    Methods in javax.xml.ws that return MessageContext
    Modifier and Type | Method | Description
    --- | --- | ---
    `MessageContext` | WebServiceContext.`getMessageContext()` Returns the `MessageContext` for the request being served at the time this method is called.

  - ### Uses of MessageContext in javax.xml.ws.handler

    Classes in javax.xml.ws.handler with type parameters of type MessageContext
    Modifier and Type | Interface | Description
    --- | --- | ---
    `interface` | `Handler<C extends MessageContext>` The `Handler` interface is the base interface for JAX-WS handlers.

    Subinterfaces of MessageContext in javax.xml.ws.handler
    Modifier and Type | Interface | Description
    --- | --- | ---
    `interface` | `LogicalMessageContext` The `LogicalMessageContext` interface extends `MessageContext` to provide access to a the contained message as a protocol neutral LogicalMessage

    Methods in javax.xml.ws.handler with parameters of type MessageContext
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | Handler.`close(MessageContext context)` Called at the conclusion of a message exchange pattern just prior to the JAX-WS runtime dispatching a message, fault or exception.

  - ### Uses of MessageContext in javax.xml.ws.handler.soap

    Subinterfaces of MessageContext in javax.xml.ws.handler.soap
    Modifier and Type | Interface | Description
    --- | --- | ---
    `interface` | `SOAPMessageContext` The interface `SOAPMessageContext` provides access to the SOAP message for either RPC request or response.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.