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
 javax.xml.soap.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(javax.xml.soap.SOAPElement soapElement)
          Convert SOAPElement into an OMElement
 org.apache.axiom.soap.SOAPEnvelope toOM(javax.xml.soap.SOAPEnvelope saajEnvelope)
          Convert SAAJ SOAPEnvelope to OM SOAPEnvelope
 org.apache.axiom.soap.SOAPEnvelope toOM(javax.xml.soap.SOAPEnvelope saajEnvelope, org.apache.axiom.attachments.Attachments attachments)
          Convert SAAJ SOAPEnvelope to OM SOAPEnvelope
 javax.xml.soap.SOAPElement toSAAJ(org.apache.axiom.om.OMElement omElement, javax.xml.soap.SOAPElement parent)
          Convert omElement into a SOAPElement and add it to the parent SOAPElement.
 javax.xml.soap.SOAPElement toSAAJ(org.apache.axiom.om.OMElement omElement, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPFactory sf)
          Convert omElement into a SOAPElement and add it to the parent SOAPElement.
 javax.xml.soap.SOAPEnvelope toSAAJ(org.apache.axiom.soap.SOAPEnvelope omElement)
          Convert OM SOAPEnvleope to SAAJ SOAPEnvelope
 

Method Detail

toSAAJ

javax.xml.soap.SOAPEnvelope toSAAJ(org.apache.axiom.soap.SOAPEnvelope omElement)
                                   throws javax.xml.ws.WebServiceException
Convert OM SOAPEnvleope to SAAJ SOAPEnvelope

Parameters:
omElement -
Returns:
SOAPEnvelope
Throws:
javax.xml.ws.WebServiceException

toOM

org.apache.axiom.soap.SOAPEnvelope toOM(javax.xml.soap.SOAPEnvelope saajEnvelope)
                                        throws javax.xml.ws.WebServiceException
Convert SAAJ SOAPEnvelope to OM SOAPEnvelope

Parameters:
saajEnvelope -
Returns:
OM Envelope
Throws:
javax.xml.ws.WebServiceException

toOM

org.apache.axiom.soap.SOAPEnvelope toOM(javax.xml.soap.SOAPEnvelope saajEnvelope,
                                        org.apache.axiom.attachments.Attachments attachments)
                                        throws javax.xml.ws.WebServiceException
Convert SAAJ SOAPEnvelope to OM SOAPEnvelope

Parameters:
saajEnvelope -
Attachments -
Returns:
OM Envelope
Throws:
javax.xml.ws.WebServiceException

toOM

org.apache.axiom.om.OMElement toOM(javax.xml.soap.SOAPElement soapElement)
                                   throws javax.xml.ws.WebServiceException
Convert SOAPElement into an OMElement

Parameters:
soapElement -
Returns:
OMElement
Throws:
javax.xml.ws.WebServiceException

toSAAJ

javax.xml.soap.SOAPElement toSAAJ(org.apache.axiom.om.OMElement omElement,
                                  javax.xml.soap.SOAPElement parent)
                                  throws javax.xml.ws.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:
javax.xml.ws.WebServiceException
See Also:
toSAAJ(OMElement, SOAPElement, SOAPFactory)

toSAAJ

javax.xml.soap.SOAPElement toSAAJ(org.apache.axiom.om.OMElement omElement,
                                  javax.xml.soap.SOAPElement parent,
                                  javax.xml.soap.SOAPFactory sf)
                                  throws javax.xml.ws.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:
javax.xml.ws.WebServiceException - * @see toSAAJ(OMElement, SOAPElement)

createMessageFactory

javax.xml.soap.MessageFactory createMessageFactory(java.lang.String namespace)
                                                   throws javax.xml.soap.SOAPException,
                                                          javax.xml.ws.WebServiceException
Creates a MessageFactory that can support the SOAP version identified by the specified envelope namespace.

Parameters:
namespace -
Returns:
Throws:
javax.xml.ws.WebServiceException - if the namespace is SOAP 1.2 and the SAAJ does not support SOAP 1.2 or the namespace is unknown.
javax.xml.soap.SOAPException


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.