Package org.mule.extras.client

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


        MuleClient client = new MuleClient();
        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
        dbf.setNamespaceAware(true);
        Document soap = dbf.newDocumentBuilder().parse(ClassUtils.getResourceAsStream("helloRequest.soap", getClass()));
        Map props = new HashMap();
        UMOMessage result = client.send("vm://pxe.in", new DOMSource(soap.getDocumentElement()), props);
        assertNotNull(result);
        StringWriter w = new StringWriter();
        XMLWriter writer = new XMLWriter(w);
        writer.write(result.getPayload());
        String xml = w.toString();
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.