Interface XMLPartFactory

All Known Implementing Classes:
XMLPartFactoryImpl

public interface XMLPartFactory
XMLPartFactory

Creates an XMLPart object. The two common patterns are: - Create an empty message for a specific protocol - Create a xmlPart sourced from OM (XMLStreamReader)

The FactoryRegistry should be used to get access to the Factory

See Also:
  • Method Details

    • createFrom

      XMLPart createFrom(XMLStreamReader reader, Protocol protocol) throws XMLStreamException, jakarta.xml.ws.WebServiceException
      create XMLPart from XMLStreamReader
      Parameters:
      reader - XMLStreamReader
      protocol - (if null, the soap protocol is inferred from the namespace)
      Throws:
      MessageStreamException
      XMLStreamException
      jakarta.xml.ws.WebServiceException
    • createFrom

      XMLPart createFrom(org.apache.axiom.om.OMElement omElement, Protocol protocol) throws XMLStreamException, jakarta.xml.ws.WebServiceException
      create XMLPart from OMElement
      Parameters:
      omElement - OMElement
      protocol - (if null, the soap protocol is inferred from the namespace)
      Throws:
      jakarta.xml.ws.WebServiceException
      XMLStreamException
    • createFrom

      XMLPart createFrom(jakarta.xml.soap.SOAPEnvelope soapEnvelope) throws XMLStreamException, jakarta.xml.ws.WebServiceException
      create XMLPart from SOAPEnvelope
      Parameters:
      soapEnvelope - SOAPEnvelope
      Throws:
      jakarta.xml.ws.WebServiceException
      XMLStreamException
    • create

      XMLPart create(Protocol protocol) throws XMLStreamException, jakarta.xml.ws.WebServiceException
      create empty XMLPart of the specified protocol
      Parameters:
      protocol -
      Throws:
      jakarta.xml.ws.WebServiceException
      XMLStreamException