Interface SAAJConverter
-
- All Known Implementing Classes:
SAAJConverterImpl
public interface SAAJConverter
SAAJConverter Provides Conversion between SAAJ and OM Constructed via the SAAJConverterFactory
-
-
Field Summary
Fields Modifier and Type Field Description static String
OM_ATTRIBUTE_KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MessageFactory
createMessageFactory(String namespace)
Creates a MessageFactory that can support the SOAP version identified by the specified envelope namespace.OMElement
toOM(SOAPElement soapElement)
Convert SOAPElement into an OMElementSOAPEnvelope
toOM(SOAPEnvelope saajEnvelope)
Convert SAAJ SOAPEnvelope to OM SOAPEnvelopeSOAPEnvelope
toOM(SOAPEnvelope saajEnvelope, Attachments attachments)
Convert SAAJ SOAPEnvelope to OM SOAPEnvelopeSOAPElement
toSAAJ(OMElement omElement, SOAPElement parent)
Convert omElement into a SOAPElement and add it to the parent SOAPElement.SOAPElement
toSAAJ(OMElement omElement, SOAPElement parent, SOAPFactory sf)
Convert omElement into a SOAPElement and add it to the parent SOAPElement.SOAPEnvelope
toSAAJ(SOAPEnvelope omElement)
Convert OM SOAPEnvleope to SAAJ SOAPEnvelope
-
-
-
Field Detail
-
OM_ATTRIBUTE_KEY
static final String OM_ATTRIBUTE_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
toSAAJ
SOAPEnvelope toSAAJ(SOAPEnvelope omElement) throws WebServiceException
Convert OM SOAPEnvleope to SAAJ SOAPEnvelope- Parameters:
omElement
-- Returns:
- SOAPEnvelope
- Throws:
WebServiceException
-
toOM
SOAPEnvelope toOM(SOAPEnvelope saajEnvelope) throws WebServiceException
Convert SAAJ SOAPEnvelope to OM SOAPEnvelope- Parameters:
saajEnvelope
-- Returns:
- OM Envelope
- Throws:
WebServiceException
-
toOM
SOAPEnvelope toOM(SOAPEnvelope saajEnvelope, Attachments attachments) throws WebServiceException
Convert SAAJ SOAPEnvelope to OM SOAPEnvelope- Parameters:
saajEnvelope
-Attachments
-- Returns:
- OM Envelope
- Throws:
WebServiceException
-
toOM
OMElement toOM(SOAPElement soapElement) throws WebServiceException
Convert SOAPElement into an OMElement- Parameters:
soapElement
-- Returns:
- OMElement
- Throws:
WebServiceException
-
toSAAJ
SOAPElement toSAAJ(OMElement omElement, SOAPElement parent) throws WebServiceException
Convert omElement into a SOAPElement and add it to the parent SOAPElement. This method requires that the parent element have an ancestor that is a SOAPEnvelope. If this is not the case use the toSAAJ(OMElement, SOAPElement, SOAPFactory) method- Parameters:
omElement
-parent
- SOAPElement- Returns:
- SOAPElement that was added to the parent.
- Throws:
WebServiceException
- See Also:
toSAAJ(org.apache.axiom.om.OMElement,javax.xml.soap.SOAPElement,javax.xml.soap.SOAPFactory)
-
toSAAJ
SOAPElement toSAAJ(OMElement omElement, SOAPElement parent, SOAPFactory sf) throws WebServiceException
Convert omElement into a SOAPElement and add it to the parent SOAPElement.- Parameters:
omElement
-parent
- SOAPElementsf
- SOAPFactory that is used to create Name objects- Returns:
- SOAPElement that was added to the parent.
- Throws:
WebServiceException
- * @see toSAAJ(OMElement, SOAPElement)
-
createMessageFactory
MessageFactory createMessageFactory(String namespace) throws SOAPException, WebServiceException
Creates a MessageFactory that can support the SOAP version identified by the specified envelope namespace.- Parameters:
namespace
-- Returns:
- Throws:
WebServiceException
- if the namespace is SOAP 1.2 and the SAAJ does not support SOAP 1.2 or the namespace is unknown.SOAPException
-
-