Custom SOAP Factory

Generally, the default SOAP factory, org.apache.axiom.soap.SOAPFactory, should be adequate for processing your web services that process W3C Documents. But, if necessary you can override this behavior by providing your own getSOAPFactory(MessageContext) method. This method takes a MessageContext object as an input parameter and returns an org.apache.axiom.soap.SOAPFactory.