You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Michele Mazzucco <Mi...@ncl.ac.uk> on 2006/05/16 19:30:43 UTC

[Axis2] handler question

Hi all,

is it possible for the handler to exchange some information with a
service or are they completely separate (i.e. two different entities)?
If yes, can anybody give me more details, please?


Thanks,
Michele

Re: [Axis2] handler question

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Michele;
Well you can do that. You can set property into message context by
handlers and you can use them inside service impl class. In the same
time you can set property into message context by service impl class and
access them inside handlers.

To have this you have to add following method in to serviceimpl class to
get access to message context
  setOperationContext(OperationContext opctx){
    // you can get message context from opctx
  }

Michele Mazzucco wrote:

>Hi all,
>
>is it possible for the handler to exchange some information with a
>service or are they completely separate (i.e. two different entities)?
>If yes, can anybody give me more details, please?
>
>
>Thanks,
>Michele
>
>
>  
>

-- 
Thanks,
Deepal
................................................................
~Future is Open~