The problem is that it is impossible, to my knowledge, to access the message
context from your service class. 

I've seen some pages on the web describing 
a way to include the message context in the method signature of the 
operation etc, but I remember thinking of it as "hacky" -)

The only way I've been able to do what you describe, is by using a class
with static members. In the handler you invoke a method that modifies 
the static members of a class, the Service class can then use "getters"
on that class to retrieve the data put in by the handler..

Now... Im sure some people will call this "hacky" as well... .-) 

Hope this helps.

Glenn



-----Original Message-----
From: Denis Goeury [mailto:[EMAIL PROTECTED] 
Sent: 27. januar 2006 06:49
To: [email protected]
Subject: Passing properties via MessageContext

Hi,

Is it possible to set MessageContext properties in a handler and
retrieve them from a service class? I have tried with both the module
being referenced in the axis2.xml and later in the service.xml but no
luck.

Thanks in advance,

-denis


Reply via email to