How to change HTTP response code from 500 to 200 in fault handler?
I'm trying to use fault mechanism to pass exception details from XFire to
Adobe Flex WS client but cannot get access to SOAP body if HTTP code more
then 200. So I want to add fault handle that would process my exception,
setup fault parameters and change HTTP status code to 200.
It there any way I can do it? If yes, any code samples I can refer to?
public class MyFaultHandler extends AbstractHandler {
public void invoke(MessageContext context) throws Exception {
// context.getResponse.setStatus(200) ?????????
}
}
Thanks
Roman