You can't. HTTP status code 500 is required by SOAP spec if fault is
returned ( as i remember :). But why you try to use SOAP body? Some
additional info can be added to SOAP faults.

On 2/14/07, Roman Dolgov <[EMAIL PROTECTED]> wrote:
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



--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to