org.apache.axis2.jaxws.message.factory
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:
FactoryRegistry

Method Summary
 XMLPart create(Protocol protocol)
          create empty XMLPart of the specified protocol
 XMLPart createFrom(org.apache.axiom.om.OMElement omElement, Protocol protocol)
          create XMLPart from OMElement
 XMLPart createFrom(SOAPEnvelope soapEnvelope)
          create XMLPart from SOAPEnvelope
 XMLPart createFrom(javax.xml.stream.XMLStreamReader reader, Protocol protocol)
          create XMLPart from XMLStreamReader
 

Method Detail

createFrom

XMLPart createFrom(javax.xml.stream.XMLStreamReader reader,
                   Protocol protocol)
                   throws javax.xml.stream.XMLStreamException,
                          WebServiceException
create XMLPart from XMLStreamReader

Parameters:
reader - XMLStreamReader
protocol - (if null, the soap protocol is inferred from the namespace)
Throws:
MessageStreamException
javax.xml.stream.XMLStreamException
WebServiceException

createFrom

XMLPart createFrom(org.apache.axiom.om.OMElement omElement,
                   Protocol protocol)
                   throws javax.xml.stream.XMLStreamException,
                          WebServiceException
create XMLPart from OMElement

Parameters:
omElement - OMElement
protocol - (if null, the soap protocol is inferred from the namespace)
Throws:
WebServiceException
javax.xml.stream.XMLStreamException

createFrom

XMLPart createFrom(SOAPEnvelope soapEnvelope)
                   throws javax.xml.stream.XMLStreamException,
                          WebServiceException
create XMLPart from SOAPEnvelope

Parameters:
soapEnvelope - SOAPEnvelope
Throws:
WebServiceException
javax.xml.stream.XMLStreamException

create

XMLPart create(Protocol protocol)
               throws javax.xml.stream.XMLStreamException,
                      WebServiceException
create empty XMLPart of the specified protocol

Parameters:
protocol -
Throws:
WebServiceException
javax.xml.stream.XMLStreamException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.