e = DOMUtils.getFirstChildElement(e);
assertEquals(new QName(SoapMarshaler.SOAP_12_URI, SoapMarshaler.FAULT), DOMUtil.getQName(e));
}
public void testSoapFault11() throws Exception {
TransformComponentSupport echo = new TransformComponentSupport() {
protected boolean transform(MessageExchange exchange, NormalizedMessage in, NormalizedMessage out)
throws MessagingException {
Fault f = exchange.createFault();
f.setContent(new StringSource("<hello xmlns='myuri'>this is a fault</hello>"));
f.setProperty(JBIMarshaler.SOAP_FAULT_REASON, "My reason");
throw new FaultException(null, exchange, f);
}
};
echo.setService(new QName("urn:test", "echo"));
echo.setEndpoint("echo");
container.activateComponent(echo, "echo");
HttpEndpoint ep1 = createInOutEndpoint("ep1");
ep1.setTargetService(new QName("urn:test", "echo"));
ep1.setTargetEndpoint("echo");