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 Summary
Modifier and TypeMethodDescriptioncreate empty XMLPart of the specified protocolcreateFrom(jakarta.xml.soap.SOAPEnvelope soapEnvelope) create XMLPart from SOAPEnvelopecreateFrom(XMLStreamReader reader, Protocol protocol) create XMLPart from XMLStreamReadercreateFrom(org.apache.axiom.om.OMElement omElement, Protocol protocol) create XMLPart from OMElement
-
Method Details
-
createFrom
XMLPart createFrom(XMLStreamReader reader, Protocol protocol) throws XMLStreamException, jakarta.xml.ws.WebServiceException create XMLPart from XMLStreamReader- Parameters:
reader- XMLStreamReaderprotocol- (if null, the soap protocol is inferred from the namespace)- Throws:
MessageStreamExceptionXMLStreamExceptionjakarta.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- OMElementprotocol- (if null, the soap protocol is inferred from the namespace)- Throws:
jakarta.xml.ws.WebServiceExceptionXMLStreamException
-
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.WebServiceExceptionXMLStreamException
-
create
create empty XMLPart of the specified protocol- Parameters:
protocol-- Throws:
jakarta.xml.ws.WebServiceExceptionXMLStreamException
-