Sanjiva, folks,
I added an init method to inject the MessageContext and I expected
that the following should work, but it doesn't.
msgctx.setWSAAction("http://stockservice.contoso.com/wse/samples/2005/10/GetFileResponse");
What's the best way to set the response WSA Action? I had to set a
property in OperationContext
msgcts.getOperationContext().setProperty(AddressingConstants.WSA_ACTION,"http://stockservice.contoso.com/wse/samples/2005/10/GetFileResponse");
And in Addressing OUT Handler,
if (action == null && msgContext.getOperationContext() != null) {
action = (String)msgContext.getOperationContext().getProperty(WSA_ACTION);
}
Am not sure this is the right way...Could you tell me the right way?
thanks,
dims
--
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform