users@jax-ws.java.net

Re: getting SOAPFactory on server side handler

From: Bobby Bissett <bobby.bissett_at_sun.com>
Date: Mon, 06 Mar 2006 13:13:07 -0500

Mark Hansen wrote:
> What is the right way to get a SOAPFactory instance from within a server
> side handler? I know that SOAPFactory.newInstance() is not recommended.

I didn't know that it was not recommended to do that in a handler.
However, you can do a lot of what SOAPFactory does without creating one:
from the SOAPMessageContext, you can get the SOAPMessage and use methods
within it (and within SOAPPart, SOAPHeader, and SOAPBody) to make a lot
of changes in the message.

Cheers,
Bobby