Package org.mule.extras.client

Examples of org.mule.extras.client.MuleClient.sendDirect()


        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();
        UMOMessage result = client.sendDirect("pxe", null, new DOMSource(soap.getDocumentElement()), props);
        assertNotNull(result);
        String xml = DOMUtils.domToString(((Element)result.getPayload()));
        System.out.println(xml);
        //TODO apart from there being no exception how do I verify the result??
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.