Hi Puny,
In your handleRequest, set the properties as:
context.setProperty("foo", "bar");
For a servlet-based endpoint, you service endpoint implementation has to
implement javax.xml.rpc.server.ServiceLifecycle. Then you can access the
servlet context in the init method as follows:
public void init(Object context) {
servletEndpointContext = ((ServletEndpointContext)context);
if (servletEndpointContext == null) {
System.out.println("In init(): servletEndpointContext is null");
}
}
In the service endpoint implementation method, you can access the
properties as:
MessageContext messageContext =
servletEndpointContext.getMessageContext();
if (messageContext != null) {
String propVal1 = (String)messageContext.getProperty("foo");
}
If you want, you can modify this property in your method implementation
and access the modified property in handleResponse of your server-side
handler.
Thanks for your interest in JAX-RPC.
Regards,
-Arun
"Sen, Puny" wrote:
>
> Hi,
>
> Is it possible to pass information like a variable or object from a server
> side SOAP Handler to the Web Service methods?
>
> Thanks,
> Puny
--
=============================================
There is only one me, I must live myself!
There is only one today, I must live itself!
=============================================
http://members.tripod.com/~apgupta/index.html
=============================================