Jeff it seems you didn't register your client side handlers in the client-config.wsdd.
article below can help you about handlers
http://www-106.ibm.com/developerworks/webservices/library/ws-devettk2.html



From: Jeff Phelps <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: MessageContext.setProperty() in a handler
Date: Mon, 9 Aug 2004 05:06:02 -0700 (PDT)

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

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus




Reply via email to