Hello all,

Don't know if this is the correct location to post this, so please let me know 
if not.

I create a client and want to make a call with WS-Addressing headers. What i 
noticed is that often there is a strong relation between the wsa:To value and 
the actual http uri being used to send the message to the next hop. I thought 
the wsa:To could contain the (logical) value of the end destination. So if 
there are two intermediairies than the wsa:To can stay the same over all hops. 
Currently this does not seem to be. Is my perception of the wsa:To wrong?

ServiceClient client = new ServiceClient(context,null);
Options ops = new Options();
Endpointreference to = new Endpointreference("finalDest");
ops.setTo(to);
Endpointreference epr = new 
Endpointreference("http://localhost/axis2/services/myservice";);
client.setoptions(ops);
client.setTargetEpr(epr);

The ops.setTo value will be used to dispatch the message.


Kind regards,
Erwin



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to