users@jax-ws.java.net

Re: Missing something.

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Fri, 10 Mar 2006 12:49:49 -0800

Baker, Brad (Contr) wrote:

> Hi all,
>
>
>
> I have an endpoint that implements ServiceLifecycle and in the init my
> context object is a MessageContext. How do I get a SOAPMessageContext?
>

JAXWS doesn't have ServiceLifecycle and WebServiceContext is injected
into the endpoint. The endpoint has access only to MessageContext but
not to SOAPMessasgeContext.

I think you are talking about JAXRPC. In that case, just cast
MessageContext to SOAPMessageContext.

Jitu

>
>
> Thanks,
>
> Brad
>