You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by Rinsad Ahmed <ri...@opensource.lk> on 2004/12/09 04:12:07 UTC
ws-addressing java code doubt
Hi Dims,
Could you pls refer to your code for AddressingHandler.java, line 405. I
can't understand why do you check for the null condition for the response
headers "From EPR" to set the response headers "To" attribute.
405 if (resHeaders.getFrom() == null && reqHeaders.getFrom() !=
null) {
406 resHeaders.setTo(reqHeaders.getFrom().getAddress());
407 } else {
408 resHeaders.setTo(new To(Constants.NS_URI_ANONYMOUS));
409 }
I feel that instead of resHeaders.getFrom()==null , resHeaders.getTo()==null
should be used. Please clarify.
Regards
Rinsad