users@jax-ws.java.net

Re: server side java ee architecture question

From: Bobby Bissett <bobby.bissett_at_sun.com>
Date: Mon, 06 Mar 2006 14:54:40 -0500

>
> The use case is actually getting the SOAPBinding from inside either the
> handler or the endpoint, so that I can get an instance of SOAPFactory
> using SOAPBinding.getSOAPFactory(). For generating SOAP Fault message
> detail elements.

A simpler way would be to get the SOAPBody and do addFault(). You can
get the body from:

SOAPMessageContext.getMessage().getSOAPBody();

Then you can remove the body contents with removeContents() if you'd
like and then add the fault.

Cheers,
Bobby