Package org.milyn.payload

Examples of org.milyn.payload.ByteSource


        ServiceInvoker invoker = new ServiceInvoker("Transform", "String");
        Message message = MessageFactory.getInstance().getMessage();
        SourceResult sourceResult = new SourceResult();
        StringResult result = new StringResult();

        sourceResult.setSource(new ByteSource(personXmlBytes));
        sourceResult.setResult(result);

        message.getBody().add(sourceResult);
        message = invoker.deliverSync(message, 30000);
View Full Code Here


        Smooks smooks = new Smooks("smooks-config.xml");
        try {
            ExecutionContext execContext = smooks.createExecutionContext();

            execContext.setEventListener(new HtmlReportGenerator("target/report.html"));
            smooks.filterSource(execContext, new ByteSource(messageIn), null);
        } finally {
            smooks.close();
        }

        System.out.println("\n\n");
View Full Code Here

TOP

Related Classes of org.milyn.payload.ByteSource

Copyright © 2018 www.massapicom. 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.