Interface SAAJConverter
-
- All Known Implementing Classes:
SAAJConverterImpl
public interface SAAJConverterSAAJConverter Provides Conversion between SAAJ and OM Constructed via the SAAJConverterFactory
-
-
Field Summary
Fields Modifier and Type Field Description static StringOM_ATTRIBUTE_KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MessageFactorycreateMessageFactory(String namespace)Creates a MessageFactory that can support the SOAP version identified by the specified envelope namespace.org.apache.axiom.om.OMElementtoOM(SOAPElement soapElement)Convert SOAPElement into an OMElementorg.apache.axiom.soap.SOAPEnvelopetoOM(SOAPEnvelope saajEnvelope)Convert SAAJ SOAPEnvelope to OM SOAPEnvelopeorg.apache.axiom.soap.SOAPEnvelopetoOM(SOAPEnvelope saajEnvelope, org.apache.axiom.attachments.Attachments attachments)Convert SAAJ SOAPEnvelope to OM SOAPEnvelopeSOAPElementtoSAAJ(org.apache.axiom.om.OMElement omElement, SOAPElement parent)Convert omElement into a SOAPElement and add it to the parent SOAPElement.SOAPElementtoSAAJ(org.apache.axiom.om.OMElement omElement, SOAPElement parent, SOAPFactory sf)Convert omElement into a SOAPElement and add it to the parent SOAPElement.SOAPEnvelopetoSAAJ(org.apache.axiom.soap.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(org.apache.axiom.soap.SOAPEnvelope omElement) throws WebServiceException
Convert OM SOAPEnvleope to SAAJ SOAPEnvelope- Parameters:
omElement-- Returns:
- SOAPEnvelope
- Throws:
WebServiceException
-
toOM
org.apache.axiom.soap.SOAPEnvelope toOM(SOAPEnvelope saajEnvelope) throws WebServiceException
Convert SAAJ SOAPEnvelope to OM SOAPEnvelope- Parameters:
saajEnvelope-- Returns:
- OM Envelope
- Throws:
WebServiceException
-
toOM
org.apache.axiom.soap.SOAPEnvelope toOM(SOAPEnvelope saajEnvelope, org.apache.axiom.attachments.Attachments attachments) throws WebServiceException
Convert SAAJ SOAPEnvelope to OM SOAPEnvelope- Parameters:
saajEnvelope-Attachments-- Returns:
- OM Envelope
- Throws:
WebServiceException
-
toOM
org.apache.axiom.om.OMElement toOM(SOAPElement soapElement) throws WebServiceException
Convert SOAPElement into an OMElement- Parameters:
soapElement-- Returns:
- OMElement
- Throws:
WebServiceException
-
toSAAJ
SOAPElement toSAAJ(org.apache.axiom.om.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(org.apache.axiom.om.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
-
-