Hi Isuru,
Thanks for the reply.
Ideally I want to experiment the following message builders(axis2.xml).
<!--JSON Message Builders-->
<messageBuilder contentType="application/json"
class="org.apache.synapse.commons.json.JsonBuilder"/>
<!--messageBuilder contentType="application/json"
class="org.apache.synapse.commons.json.JsonStreamBuilder"/-->
<messageBuilder contentType="application/json"
class="org.apache.axis2.json.JSONBuilder"/>
<!--messageBuilder contentType="application/json"
class="org.apache.axis2.json.JSONStreamBuilder"/-->
I am invoking the following curl to invoke the api.
curl -X POST -d "{\"origin\":\"202.37.75.130\"}" -H "Content-Type:
application/json" http://10.113.56.222:8280/json
<http://10.113.56.222:8281/json>
Is there a better or easier way to try them out ?
Regards,
Hemika
Hemika Kodikara
Software Engineer
WSO2 Inc.
lean . enterprise . middleware
http://wso2.com
Mobile : +94777688882
On Fri, May 1, 2015 at 1:38 PM, Isuru Udana <[email protected]> wrote:
> Hi Hemika,
>
> Loopback was introduced in ESB 4.8.0.
>
> If you can explain the requirement, we'll able to help you.
>
> On Fri, May 1, 2015 at 1:27 PM, Hemika Kodikara <[email protected]> wrote:
>
>> Hi All,
>>
>> Is there loopback mediator in ESB 4.7.0 ? I am trying to use the
>> following synapse in 4.7.0 which I copied from ESB 4.8.1.
>>
>> <api xmlns="http://ws.apache.org/ns/synapse" name="jsonTest"
>> context="/json">
>> <resource methods="POST">
>> <inSequence>
>> <loopback/>
>> </inSequence>
>> <outSequence>
>> <script language="js">var older = mc.getPayloadJSON(); var
>> newer=older; mc.setPayloadJSON(newer);</script>
>> <send/>
>> </outSequence>
>> </resource>
>> </api>
>>
>> I get the following error :
>>
>> org.apache.synapse.SynapseException: Unknown mediator referenced by
>> configuration element : {http://ws.apache.org/ns/synapse}loopback
>>
>> Or is there a workaround ?
>>
>> Regards,
>> Hemika
>>
>> Hemika Kodikara
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middleware
>> http://wso2.com
>>
>> Mobile : +94777688882
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Isuru Udana*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> email: [email protected] cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev