Hi All,
I got this fixed. Thanks On Fri, Jun 13, 2014 at 3:19 PM, Manil Liyanage <[email protected]> wrote: > Hi All, > > I'm currently writing a synapse configuration for a connector and its a > REST base api which send responses in json format as in the attachment. > > My question is that how to put the response recieved on json to the > payload body. code of the configuration is shown below. I have hardcoded > for the request url for testing purpose. Please help me on this. > > <template xmlns="http://ws.apache.org/ns/synapse" name="getUser"> > <sequence> > <property name="Accept-Encoding" action="remove" scope="transport" /> > *<payloadFactory media-type="xml">* > * <format>* > * <soapenv:Envelope > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/ > <http://schemas.xmlsoap.org/soap/envelope/>">* > * <soapenv:Header />* > * <soapenv:Body/>* > * </soapenv:Envelope>* > * </format>* > * <args />* > * </payloadFactory>* > <property name="messageType" value="application/json" scope="axis2" /> > <call> > *<endpoint>* > * <http method="get"* > * > uri-template="http://api.soundcloud.com/users/3207.json?client_id=21fded24c32c2d9b0316971643d2f75f > <http://api.soundcloud.com/users/3207.json?client_id=21fded24c32c2d9b0316971643d2f75f>" > />* > * </endpoint>* > </call> > </sequence> > </template> > > > Thanks, > Manil Liyanage > > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
