Examples of invokeBusinessLogic()


Examples of org.apache.axis2.scripting.ScriptReceiver.invokeBusinessLogic()

        AxisService axisServce = new AxisService();
        axisServce.setParent(new AxisServiceGroup(new AxisConfiguration()));
        axisServce.addParameter(new Parameter(ScriptReceiver.SCRIPT_ATTR, "foo.js"));
        axisServce.addParameter(new Parameter(ScriptReceiver.SCRIPT_SRC_PROP, "function invoke(inMC,outMC) { outMC.setPayloadXML(<a><b>petra</b></a>) }"));
        inMC.setAxisService(axisServce);
        mediator.invokeBusinessLogic(inMC, inMC);
        Iterator iterator = inMC.getEnvelope().getChildElements();
        iterator.next();
        assertEquals(XML, ((OMElement) iterator.next()).getFirstElement().toString());
    }
View Full Code Here

Examples of org.apache.axis2.scripting.ScriptReceiver.invokeBusinessLogic()

        AxisService axisServce = new AxisService();
        axisServce.setParent(new AxisServiceGroup(new AxisConfiguration()));
        axisServce.addParameter(new Parameter(ScriptReceiver.SCRIPT_ATTR, "foo.js"));
        axisServce.addParameter(new Parameter(ScriptReceiver.SCRIPT_SRC_PROP, "function invoke(inMC,outMC) { outMC.setPayloadXML(<a><b>petra</b></a>) }"));
        inMC.setAxisService(axisServce);
        mediator.invokeBusinessLogic(inMC, inMC);
        Iterator iterator = inMC.getEnvelope().getChildElements();
        iterator.next();
        assertEquals(XML, ((OMElement) iterator.next()).getFirstElement().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.