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 Eran Chinthaka <ch...@opensource.lk> on 2006/05/01 14:50:04 UTC
Re: [Axis2] Obtaining WS-Addressing ReferenceParameters
You have to engage addressing in client side as well. There should be
AddressingOutHandler in the client side to serialize the reference
parameters you have put.
I updated the documentation on this, and waiting for the Chatra to
update the site. In the mean while you can check it here :
http://svn.apache.org/viewcvs.cgi/webservices/axis2/trunk/java/xdocs/latest/userguide3.html?view=markup.
Check in the EchoNonBlockingDualClient section.
-- Chinthaka
Tung Tran wrote:
> Hello,
>
> I'm trying to include some service-unique information as a
> referenceParameter of the To's EndpointReference. However I can't
> extract that piece of info with a handler deployed on the server side.
>
> Basically, on the client side, I do something like this:
>
> referenceParameters.put("param", "xyz");
> targetEPR.setReferenceParameters(referenceParameters);
> options.setTo(targetEPR);
>
> sender = new ServiceClient();
> sender.setOptions(options);
> sender.sendReceiveNonBlocking(payload, callback);
>
> On the server side, I deploy a handler and and try to get the
> SOAPHeader (from inside the handler's invoke method) with:
>
> msgContext.getEnvelope().getHeader()
>
> This header, however, is empty. I've expected that the
> referenceParameter above should be here.
>
> The addressing module is engaged on server. I'm not sure if I have to
> do anything on the client side.
>
> Any pointers to the right direction would be greatly appreciated.
> Thanks all in advance.
>
> Tung Tran
>