axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <dava...@gmail.com>
Subject [Axis2] Response WSA Action
Date Thu, 11 Aug 2005 14:15:39 GMT
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

Mime
View raw message