hi,

is it possible to set a parameter in a stub and then have its value
available in a handler? I'm trying to call

serviceStub._setProperty("myprop", "OK");

and then in a message handler

Msghand extends BasicHandler{

    public void invoke(MessageContext msgContext) throws AxisFault
    {
            String myPropVal = (String)msgContext.getProperty("myprop");
    }

}

but when I test myPropVal value it's NULL

Base on information available in API for org.apache.axis.client.Stub

(Sets the value for a named property. JAX-RPC 1.0 specification specifies a
standard set of properties that may be passed to the Stub._setProperty
method. These properties include:
javax.xml.rpc.security.auth.username: Username for the HTTP Basic
Authentication
javax.xml.rpc.security.auth.password: Password for the HTTP Basic
Authentication
javax.xml.rpc.service.endpoint.address: Target service endpoint address.
[TBD: Additional properties])
public void _setProperty(String name, Object value) { ..}

it should work so now I'm confused why it doesn't in my case. I even tried
to call this propery for a Call object (public void setProperty(String name,
Object value)) but to no avail.




So now in order to pass additional information to my handlers I set a SOAP
header, which by the way I'm sure is shouldn't do.



-- 
Greg

Reply via email to