XFireFault fault = new XFireFault(new Exception());
fault.setFaultCode(new QName("http:///test-uri", "test", "t"));
ByteArrayOutputStream out = new ByteArrayOutputStream();
OutMessage message = new OutMessage("urn:bleh");
message.setBody(fault);
XMLStreamWriter writer = STAXUtils.createXMLStreamWriter(out, "UTF-8",null);
writer.writeStartDocument();
writer.writeStartElement("soap", "Body", Soap11.getInstance().getNamespace());
writer.writeNamespace("soap", Soap11.getInstance().getNamespace());