Search in sources :

Example 36 with SOAPBody

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

the class TestHasFaultNoFault method runTest.

@Override
protected void runTest() throws Throwable {
    SOAPBody body = soapFactory.getDefaultEnvelope().getBody();
    body.addChild(soapFactory.createOMElement(qname.getLocalPart(), qname.getNamespaceURI(), qname.getPrefix()));
    assertFalse(body.hasFault());
}
Also used : SOAPBody(org.apache.axiom.soap.SOAPBody)

Aggregations

SOAPBody (org.apache.axiom.soap.SOAPBody)36 SOAPEnvelope (org.apache.axiom.soap.SOAPEnvelope)23 OMElement (org.apache.axiom.om.OMElement)13 SOAPFault (org.apache.axiom.soap.SOAPFault)7 SOAPFaultDetail (org.apache.axiom.soap.SOAPFaultDetail)7 OMNamespace (org.apache.axiom.om.OMNamespace)6 SOAPHeader (org.apache.axiom.soap.SOAPHeader)5 StringReader (java.io.StringReader)4 QName (javax.xml.namespace.QName)4 OMNode (org.apache.axiom.om.OMNode)4 SOAPHeaderBlock (org.apache.axiom.soap.SOAPHeaderBlock)4 OMDataSource (org.apache.axiom.om.OMDataSource)3 OMSourcedElement (org.apache.axiom.om.OMSourcedElement)3 StringOMDataSource (org.apache.axiom.om.ds.StringOMDataSource)3 SOAPFactory (org.apache.axiom.soap.SOAPFactory)3 SOAPFaultCode (org.apache.axiom.soap.SOAPFaultCode)3 SOAPFaultReason (org.apache.axiom.soap.SOAPFaultReason)3 SOAPFaultRole (org.apache.axiom.soap.SOAPFaultRole)3 StringWriter (java.io.StringWriter)2 OMAttribute (org.apache.axiom.om.OMAttribute)2