Interface XMLPartFactory
-
- All Known Implementing Classes:
XMLPartFactoryImpl
public interface XMLPartFactoryXMLPartFactory 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:
FactoryRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XMLPartcreate(Protocol protocol)create empty XMLPart of the specified protocolXMLPartcreateFrom(SOAPEnvelope soapEnvelope)create XMLPart from SOAPEnvelopeXMLPartcreateFrom(XMLStreamReader reader, Protocol protocol)create XMLPart from XMLStreamReaderXMLPartcreateFrom(OMElement omElement, Protocol protocol)create XMLPart from OMElement
-
-
-
Method Detail
-
createFrom
XMLPart createFrom(XMLStreamReader reader, Protocol protocol) throws XMLStreamException, WebServiceException
create XMLPart from XMLStreamReader- Parameters:
reader- XMLStreamReaderprotocol- (if null, the soap protocol is inferred from the namespace)- Throws:
MessageStreamExceptionXMLStreamExceptionWebServiceException
-
createFrom
XMLPart createFrom(OMElement omElement, Protocol protocol) throws XMLStreamException, WebServiceException
create XMLPart from OMElement- Parameters:
omElement- OMElementprotocol- (if null, the soap protocol is inferred from the namespace)- Throws:
WebServiceExceptionXMLStreamException
-
createFrom
XMLPart createFrom(SOAPEnvelope soapEnvelope) throws XMLStreamException, WebServiceException
create XMLPart from SOAPEnvelope- Parameters:
soapEnvelope- SOAPEnvelope- Throws:
WebServiceExceptionXMLStreamException
-
create
XMLPart create(Protocol protocol) throws XMLStreamException, WebServiceException
create empty XMLPart of the specified protocol- Parameters:
protocol-- Throws:
WebServiceExceptionXMLStreamException
-
-