com.ibm.websphere.webservices.soap
Interface IBMSOAPFactory


public interface IBMSOAPFactory

This abstract class exposes IBM value-add methods. These methods are not thread safe.


Method Summary
 SOAPElement createElementFromDOMElement(org.w3c.dom.Element dom, java.lang.Class cls)
          Create a SOAPElement from a DOM Element
 SOAPElement createElementFromInputSource(org.xml.sax.InputSource inputSource)
          Create a SOAPElement from an InputSource
 SOAPElement createElementFromInputSource(org.xml.sax.InputSource is, java.lang.Class cls)
          Create a SOAPElement based on given InputSource
 SOAPElement createElementFromXMLString(java.lang.String xmlString)
          Create a SOAPElement from an xml string
 SOAPElement createElementFromXMLString(java.lang.String xmlString, java.lang.Class cls)
          Create a SOAPElement based on given xml string
 

Method Detail

createElementFromXMLString

public SOAPElement createElementFromXMLString(java.lang.String xmlString)
                                       throws SOAPException
Create a SOAPElement from an xml string

Parameters:
xmlString - a String containing the xml representation of this element and its contents
Returns:
SOAPElement
Throws:
SOAPException

createElementFromXMLString

public SOAPElement createElementFromXMLString(java.lang.String xmlString,
                                              java.lang.Class cls)
                                       throws SOAPException
Create a SOAPElement based on given xml string

Parameters:
xmlString - the String containing the SOAPElement tree
cls - Class of SOAPElement to create (SOAPElement, SOAPBodyElement, SOAPHeaderElement, etc.)
Returns:
SOAPElement or null if class is not supported
Throws:
SOAPException

createElementFromInputSource

public SOAPElement createElementFromInputSource(org.xml.sax.InputSource inputSource)
                                         throws SOAPException
Create a SOAPElement from an InputSource

Parameters:
inputSource - an InputSource containing the xml representation of this element and its contents
Returns:
SOAPElement
Throws:
SOAPException

createElementFromInputSource

public SOAPElement createElementFromInputSource(org.xml.sax.InputSource is,
                                                java.lang.Class cls)
                                         throws SOAPException
Create a SOAPElement based on given InputSource

Parameters:
is - the InputSource containing the SOAPElement tree
cls - Class of SOAPElement to create (SOAPElement, SOAPBodyElement, SOAPHeaderElement, etc.)
Returns:
SOAPElement or null if cls is not supported.
Throws:
SOAPException

createElementFromDOMElement

public SOAPElement createElementFromDOMElement(org.w3c.dom.Element dom,
                                               java.lang.Class cls)
                                        throws SOAPException
Create a SOAPElement from a DOM Element

Parameters:
dom - the DOM Element containing the SOAPElement tree
cls - Class of SOAPElement to create (SOAPElement, SOAPBodyElement, SOAPHeaderElement, etc.)
Returns:
SOAPElement or null if cls is not supported.
Throws:
SOAPException