|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsoapical.util.Soapkit
The Soapkit provides the converters to and from SOAPElement.
to | from |
---|---|
toSOAPElement toSOAPHeaderElement toSOAPBodyElement |
Reader, InputSource DOM Node |
toString | SOAPElement, DOM Node |
Field Summary |
Fields inherited from interface soapical.util.SoapkitConstants |
XMLNS |
Constructor Summary | |
Soapkit()
|
Method Summary | |
static void |
deepCopy(javax.xml.soap.SOAPElement from,
javax.xml.soap.SOAPElement to)
Copy the child elements and attributes of the from
node so that they are child elements of the to node. |
static javax.xml.soap.SOAPFactory |
getSOAPFactory()
|
static javax.xml.soap.SOAPBodyElement |
toSOAPBodyElement(javax.xml.soap.SOAPBody body,
org.xml.sax.InputSource input)
|
static javax.xml.soap.SOAPBodyElement |
toSOAPBodyElement(javax.xml.soap.SOAPBody body,
org.w3c.dom.Node DOMNode)
Returns a SOAPBodyElement which is essentially a copy of the DOM node argument. |
static javax.xml.soap.SOAPBodyElement |
toSOAPBodyElement(javax.xml.soap.SOAPBody body,
java.io.Reader reader)
Parses the contents from the Reader parameter and
returns the contents as a SOAPHeaderElement . |
static javax.xml.soap.SOAPElement |
toSOAPElement(org.xml.sax.InputSource input)
|
static javax.xml.soap.SOAPElement |
toSOAPElement(org.w3c.dom.Node DOMNode)
Returns a generic SOAPElement, which is essentially a copy of the DOM node argument. |
static javax.xml.soap.SOAPElement |
toSOAPElement(java.io.Reader reader)
Parses the contents from the Reader and returns the contents as a generic SOAPElement . |
static javax.xml.soap.SOAPHeaderElement |
toSOAPHeaderElement(javax.xml.soap.SOAPHeader header,
org.xml.sax.InputSource input)
|
static javax.xml.soap.SOAPHeaderElement |
toSOAPHeaderElement(javax.xml.soap.SOAPHeader header,
org.w3c.dom.Node DOMNode)
Returns a SOAPHeaderElement, which is essentially a copy of the DOM node argument. |
static javax.xml.soap.SOAPHeaderElement |
toSOAPHeaderElement(javax.xml.soap.SOAPHeader header,
java.io.Reader reader)
Parses the contents from the Reader parameter and
returns the contents as a SOAPHeaderElement . |
static java.lang.String |
toString(org.w3c.dom.Node node)
Convert a DOM node to XML string |
static java.lang.String |
toString(javax.xml.soap.Node node)
Convert a SOAP Node to XML string. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Soapkit()
Method Detail |
public static javax.xml.soap.SOAPElement toSOAPElement(java.io.Reader reader) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.soap.SOAPException
SOAPElement
.
org.xml.sax.SAXException
java.io.IOException
javax.xml.soap.SOAPException
toSOAPHeaderElement(javax.xml.soap.SOAPHeader, java.io.Reader)
,
toSOAPBodyElement(javax.xml.soap.SOAPBody, java.io.Reader)
public static javax.xml.soap.SOAPElement toSOAPElement(org.xml.sax.InputSource input) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.soap.SOAPException
org.xml.sax.SAXException
java.io.IOException
javax.xml.soap.SOAPException
public static javax.xml.soap.SOAPHeaderElement toSOAPHeaderElement(javax.xml.soap.SOAPHeader header, java.io.Reader reader) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.soap.SOAPException
Reader
parameter and
returns the contents as a SOAPHeaderElement
.
header
- the parent of the desired SOAPHeaderElement
org.xml.sax.SAXException
java.io.IOException
javax.xml.soap.SOAPException
toSOAPHeaderElement(javax.xml.soap.SOAPHeader, java.io.Reader)
,
toSOAPBodyElement(javax.xml.soap.SOAPBody, java.io.Reader)
public static javax.xml.soap.SOAPHeaderElement toSOAPHeaderElement(javax.xml.soap.SOAPHeader header, org.xml.sax.InputSource input) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.soap.SOAPException
org.xml.sax.SAXException
java.io.IOException
javax.xml.soap.SOAPException
public static javax.xml.soap.SOAPBodyElement toSOAPBodyElement(javax.xml.soap.SOAPBody body, java.io.Reader reader) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.soap.SOAPException
Reader
parameter and
returns the contents as a SOAPHeaderElement
.
body
- the parent of the desired SOAPBodyElement
org.xml.sax.SAXException
java.io.IOException
javax.xml.soap.SOAPException
toSOAPHeaderElement(javax.xml.soap.SOAPHeader, java.io.Reader)
,
toSOAPBodyElement(javax.xml.soap.SOAPBody, java.io.Reader)
public static javax.xml.soap.SOAPBodyElement toSOAPBodyElement(javax.xml.soap.SOAPBody body, org.xml.sax.InputSource input) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.soap.SOAPException
org.xml.sax.SAXException
java.io.IOException
javax.xml.soap.SOAPException
public static javax.xml.soap.SOAPElement toSOAPElement(org.w3c.dom.Node DOMNode) throws javax.xml.soap.SOAPException
DOMNode
- the DOM node you wish to convert
java.lang.IllegalArgumentException
- if the node is not an ELEMENT_NODE
javax.xml.soap.SOAPException
public static javax.xml.soap.SOAPHeaderElement toSOAPHeaderElement(javax.xml.soap.SOAPHeader header, org.w3c.dom.Node DOMNode) throws javax.xml.soap.SOAPException
header
- the SOAP header you wish for the output
SOAPHeaderElement
must be an element ofDOMNode
- the DOM node you wish to convert
java.lang.IllegalArgumentException
- if the node is not an ELEMENT_NODE
javax.xml.soap.SOAPException
public static javax.xml.soap.SOAPBodyElement toSOAPBodyElement(javax.xml.soap.SOAPBody body, org.w3c.dom.Node DOMNode) throws javax.xml.soap.SOAPException
body
- the SOAP body you wish for the output
SOAPBodyElement
must be an element ofDOMNode
- the DOM node you wish to convert
java.lang.IllegalArgumentException
- if the node is not an ELEMENT_NODE
javax.xml.soap.SOAPException
public static javax.xml.soap.SOAPFactory getSOAPFactory() throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
public static java.lang.String toString(org.w3c.dom.Node node) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static java.lang.String toString(javax.xml.soap.Node node)
If you read the API for Node.getValue()â it only refers to there being a single child. Does this mean you have to call detachNode on the first child in order access the second? Yech!some text some other text
public static void deepCopy(javax.xml.soap.SOAPElement from, javax.xml.soap.SOAPElement to) throws javax.xml.soap.SOAPException
from
node so that they are child elements of the to
node.
javax.xml.soap.SOAPException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |