org.apache.axis2.jaxws.message.util
Interface SAAJConverter

All Known Implementing Classes:
SAAJConverterImpl

public interface SAAJConverter

SAAJConverter Provides Conversion between SAAJ and OM Constructed via the SAAJConverterFactory


Method Summary
 MessageFactory createMessageFactory(java.lang.String namespace)
          Creates a MessageFactory that can support the SOAP version identified by the specified envelope namespace.
 org.apache.axiom.om.OMElement toOM(SOAPElement soapElement)
          Convert SOAPElement into an OMElement
 org.apache.axiom.soap.SOAPEnvelope toOM(SOAPEnvelope saajEnvelope)
          Convert SAAJ SOAPEnvelope to OM SOAPEnvelope
 SOAPElement toSAAJ(org.apache.axiom.om.OMElement omElement, SOAPElement parent)
          Convert omElement into a SOAPElement and add it to the parent SOAPElement.
 SOAPElement toSAAJ(org.apache.axiom.om.OMElement omElement, SOAPElement parent, SOAPFactory sf)
          Convert omElement into a SOAPElement and add it to the parent SOAPElement.
 SOAPEnvelope toSAAJ(org.apache.axiom.soap.SOAPEnvelope omElement)
          Convert OM SOAPEnvleope to SAAJ SOAPEnvelope
 

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.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(OMElement, SOAPElement, 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 - SOAPElement
sf - 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(java.lang.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


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