Package org.apache.synapse.mediators.json

Examples of org.apache.synapse.mediators.json.JsonMediator


    private static final String JSON_OBJ =
            "{\"soapenv:Envelope\":{\"soapenv:Body\":{\"m:someOtherElement\":{\"m0:CheckPriceRequest\":{\"xmlns:m0\":\"http://www.apache-synapse.org/test\",\"m0:Code\":\"String\"},\"xmlns:m\":\"http://someother\"}},\"xmlns:soapenv\":\"http://schemas.xmlsoap.org/soap/envelope/\",\"soapenv:Header\":{}}}";

    private JsonMediator jsonMediator = null;
    public void testJsonMediator() throws Exception{
        jsonMediator = new JsonMediator();
        jsonMediator.setDirection("XTJ");

        // invoke transformation, with static enveope
        MessageContext synCtx = TestUtils.createLightweightSynapseMessageContext(ENV);
        jsonMediator.mediate(synCtx);
View Full Code Here

TOP

Related Classes of org.apache.synapse.mediators.json.JsonMediator

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.