MuleClient client = new MuleClient();
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
Document soap = dbf.newDocumentBuilder().parse(ClassUtils.getResourceAsStream("asyncRequest.xml", getClass()));
Map props = new HashMap();
client.dispatchDirect("pxe", new DOMSource(soap.getDocumentElement()), props);
//TODO apart from there being no exception how do I verify the result??
}
}