>
> 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