Can you please change the response in the backend like below and check your use case?
[1] { "*employeeDetail*": { "id": "0cf65630-5314-11e5-94b5-8366f0ab15e2", "fName": "fff", "lName": "jjj" } } On Tue, Oct 20, 2015 at 5:18 AM, Narasimha Rao Gajje < narasimha.ga...@mindtree.com> wrote: > Enabled the DEBUG to check the exception stack track, below exception > getting logged in Synapse log files. > > > > 2015-10-20 17:44:15,091 [-] [HttpServerWorker-1] ERROR > DefaultHttpGetProcessor Error processing GET request for: > /testContext/getTestData > > org.apache.axis2.AxisFault: No JSON message received through HTTP GET or > POST > > at > org.apache.axis2.json.AbstractJSONOMBuilder.processDocument(AbstractJSONOMBuilder.java:95) > > at > org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:179) > > at > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:145) > > at > org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:116) > > at > org.apache.synapse.transport.nhttp.util.RESTUtil.processGetAndDeleteRequest(RESTUtil.java:140) > > at > org.apache.synapse.transport.nhttp.DefaultHttpGetProcessor.processGetAndDelete(DefaultHttpGetProcessor.java:468) > > at > org.apache.synapse.transport.nhttp.DefaultHttpGetProcessor.process(DefaultHttpGetProcessor.java:145) > > at > org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:271) > > at > org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:58) > > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > > > > > > > > *From:* Narasimha Rao Gajje > *Sent:* Tuesday, October 20, 2015 12:29 PM > *To:* 'dev@synapse.apache.org' > *Subject:* Synapse is not returning full JSON response > > > > Dear Team, > > > > I have installed Synapse and written first synapse config file. > > > > 1. Have rest full web service running in of the system > > 2. Created first Synapse config file as attached to invoke the > service in step 1 > > 3. Tested the Rest service separately and this is returning data – > Rest service response when tested standalone > {"id":"0cf65630-5314-11e5-94b5-8366f0ab15e2","fName":"fff","lName":"jjj"} > > 4. But when I am trying to invoke the service with Synapse config, > I am getting only one field instead 3 fields – Synapse response > {"id":"0cf65630-5314-11e5-94b5-8366f0ab15e2} > > > > And also is there any way to check what rest service is returning to > Synapse and what Synapse is returning to end user. > > > > Would anybody please help me, is there any thing I am missing here. > > > > Thanks. > > > > Regards, > > Rao > > +91- 77 606 333 11 > > > > ------------------------------ > > http://www.mindtree.com/email/disclaimer.html > -- Best Regards, Vanji