I'm trying to set a custom property on the
MessageContext in the response flow of a handler and
have that be passed back to the client.  But this
doesn't seem to work.  If the client calls
getProperty() they get null or if they have already
set the property they get the value they previously
set.

The handler code looks like this:

public void invoke(MessageContext inContext)
{
   ...
   inContext.setProperty("PropertyToSet",
"valueToSendToClient");
   ....
}

On the client side (created from a WSDL):

...
          Stub stubby = (Stub)vsl.getVersion();
           Version v = (Version)stubby;

           // the actual call is here
           System.out.println(v.getVersion());

          Object obj =
stubby._getProperty("PropertyToSet");
           System.out.println("obj is: " + obj);
...

'obj' is null.  It looks like the client code pulls
the properties from an internal HashMap, but the
HashMap never gets updated.

Is it possible to send a property back to the client
from a handler?  Am I doing something wrong?

Thanks,
Jeff








                
_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now. 
http://messenger.yahoo.com

Reply via email to