Hi Dushan, Ishan has completed the new JSON builder which supports multiroot json. That will be available in the next ESB 4.5.0 milestone build.
On Mon, Aug 13, 2012 at 5:25 AM, Dushan Abeyruwan <dus...@wso2.com> wrote: > HI > I have following requirement, > When I access facebook profile as this > curl -v https://graph.facebook.com/me?access_token=<SECURE > TOKE> > > it returns me json response as follows > > {"id":"xxxx","name":"xx xx > xx","first_name":"xx","middle_name":"xx","last_name":"xx","link":"http:\/\/ > www.facebook.com > \/xx","username":"xxx","work":[{"employer":{"id":"xx","name":"xx"},"position":{"id":"xx","name":"xx"},"start_date":"0000-00"}]," > > its a multirooted element : ) content type is script/text > * > * > *Now wann a process this via ESB... btw ( where is sample 441 documented > ?) * > > > created a proxy as follows (as sample 441 suggested to handle root > element) > > <proxy name="facebookProfile" transports="https http" startOnLoad="true" > trace="disable"> > <description/> > <target> > <inSequence> > <send> > <endpoint> > <address uri="https://graph.facebook.com/me"/> > </endpoint> > </send> > </inSequence> > <outSequence> > * <script language="js">mc.setPayloadJSON(* > * {* > * "Profie" : {* > * "id" : "dd",* > * "name" : "dd",* > * .....* > * } * > * },* > * * > * });</script>* > <property name="messageType" value="application/json" > scope="axis2"/> > <log level="full"/> > <send/> > </outSequence> > </target> > </proxy> > > but still i am getting ..when access > http://localhost:8281/services/facebookProfile?access_toke=xxxx via > ESB.. Connection #0 to host localhost left intact > * Closing connection #0 > *{"id":"xxxx"} Seems like JSON payload is not replaced... wher should > probably i went wrong..* > > Am I missing something.....................................? SOS > > btw.. question, > > If client needs the same *original FACEBOOK* json response.BECAUSE their > applicaiton handles multiroot... what shall we do?.. cos we are modifiying > the original response with some root..because our *ESB* > > > > cheers, > Dushan Abeyruwan > *Senior Software Engineer* > *Integration Technologies Team* > *WSO2 Inc. http://wso2.com/* > *Mobile:(+94)714408632* > > -- Kasun Indrasiri Associate Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware cell: +94 71 536 4128 Blog : http://kasunpanorama.blogspot.com/
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev