org.ow2.petals.binding.soap.util
Class AxiomUtils

java.lang.Object
  extended by org.ow2.petals.binding.soap.util.AxiomUtils

public class AxiomUtils
extends java.lang.Object

An utility class to manipulate AXIOM Elements.

Since:
3.0
Author:
Christophe HAMERLING - eBM WebSourcing, Christophe DENEUX - Capgemini Sud

Method Summary
static javax.xml.transform.Source createSource(org.apache.axiom.om.OMElement element)
          Create a Source from an OMElement.
static org.apache.axiom.soap.SOAPFactory getSOAPFactory(org.apache.axis2.context.MessageContext msgContext)
          Create the right SOAP factory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createSource

public static javax.xml.transform.Source createSource(org.apache.axiom.om.OMElement element)
                                               throws java.io.IOException,
                                                      javax.xml.stream.XMLStreamException
Create a Source from an OMElement. No optimization is made about namespace writing. The service provider must be in charge of this optimization.

Parameters:
element - The OMElement to convert.
Returns:
The OMElement converted in Source.
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException

getSOAPFactory

public static org.apache.axiom.soap.SOAPFactory getSOAPFactory(org.apache.axis2.context.MessageContext msgContext)
                                                        throws org.apache.axis2.AxisFault
Create the right SOAP factory

Parameters:
msgContext -
Returns:
Throws:
org.apache.axis2.AxisFault


Copyright © 2005-2010 OW2 Consortium. All Rights Reserved.