Search in sources :

Example 16 with SOAPMessage

use of org.apache.axiom.soap.SOAPMessage in project webservices-axiom by apache.

the class TestCommentInProlog method runTest.

@Override
protected void runTest() throws Throwable {
    SOAPMessage message = SOAPSampleSet.COMMENT_IN_PROLOG.getMessage(spec).getAdapter(SOAPSampleAdapter.class).getSOAPMessage(metaFactory);
    OMNode firstChild = message.getFirstOMChild();
    assertTrue(firstChild instanceof OMComment);
}
Also used : OMNode(org.apache.axiom.om.OMNode) OMComment(org.apache.axiom.om.OMComment) SOAPSampleAdapter(org.apache.axiom.ts.soap.SOAPSampleAdapter) SOAPMessage(org.apache.axiom.soap.SOAPMessage)

Aggregations

SOAPMessage (org.apache.axiom.soap.SOAPMessage)16 OMDocument (org.apache.axiom.om.OMDocument)4 SOAPEnvelope (org.apache.axiom.soap.SOAPEnvelope)4 Document (org.w3c.dom.Document)4 OMElement (org.apache.axiom.om.OMElement)3 SOAPSampleAdapter (org.apache.axiom.ts.soap.SOAPSampleAdapter)3 OMCloneOptions (org.apache.axiom.om.OMCloneOptions)2 OMInformationItem (org.apache.axiom.om.OMInformationItem)2 OMNode (org.apache.axiom.om.OMNode)2 WSSecHeader (org.apache.ws.security.message.WSSecHeader)2 InputSource (org.xml.sax.InputSource)2 ByteArrayInputStream (java.io.ByteArrayInputStream)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 InputStream (java.io.InputStream)1 Vector (java.util.Vector)1 QName (javax.xml.namespace.QName)1 SAXParserFactory (javax.xml.parsers.SAXParserFactory)1 DOMSource (javax.xml.transform.dom.DOMSource)1 SAXSource (javax.xml.transform.sax.SAXSource)1 OMComment (org.apache.axiom.om.OMComment)1