axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Phelps <>
Subject RE: MessageContext.setProperty() in a handler
Date Mon, 09 Aug 2004 13:29:40 GMT
I do have my client-config.wsdd configured and setup.  It looks like this:

<?xml version="1.0" encoding="UTF-8"?>

<deployment xmlns="" xmlns:java="">




<handler type="java:myClientHandler">




<handler type="java:myClientHandler">




<transport name="java" pivot=""/>

<transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/>

<transport name="local" pivot="java:org.apache.axis.transport.local.LocalSender"/>

I think maybe the cachedProperties on the Stub object never get updated after the call to

egemen kalyoncu <> wrote:

Jeff it seems you didn't register your client side handlers in the 
article below can help you about handlers

>From: Jeff Phelps 

>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
>The handler code looks like this:
>public void invoke(MessageContext inContext)
> ...
> inContext.setProperty("PropertyToSet",
> ....
>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 =
> 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?
>Do you Yahoo!?
>Express yourself with Y! Messenger! Free. Download now.

MSN 8 with e-mail virus protection service: 2 months FREE*

Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
View raw message