public void testSOAPfault() throws AxisFault {
SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
OMElement payload = createEnvelope();
MyInOutMEPClient inOutMEPClient = new MyInOutMEPClient();
inOutMEPClient.setSoapVersionURI(
SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
inOutMEPClient.setTo(targetEPR);
inOutMEPClient.setTransportInfo(Constants.TRANSPORT_HTTP,
Constants.TRANSPORT_HTTP,
false);
SOAPEnvelope result =
inOutMEPClient.invokeBlockingWithEnvelopeOut(
operationName.getLocalPart(), payload);
// assertEquals("SOAP Version received is not compatible", SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI, result.getNamespace().getName());
try {
OMOutputImpl output = new org.apache.axis2.om.impl.OMOutputImpl(System.out, false);
result.serializeWithCache(output);
output.flush();
} catch (XMLStreamException e) {
log.info(e.getMessage());
}
inOutMEPClient.close();
}