jnan77 / jsonrpc4j

Automatically exported from code.google.com/p/jsonrpc4j
0 stars 0 forks source link

Batch responses #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Send a batch request to any service running.

What is the expected output? What do you see instead?
The response doesn't come back as an array, but as multiple separated objects. 
--> [{"id":1,"jsonrpc":"2.0","method":"getEntry",...]
<-- {"jsonrpc":"2.0","id":"1","result":{"locati...}{...}{...}

The response, from the spec, should be an array with all responses.
--> [{"id":1,"jsonrpc":"2.0","method":"getEntry",...},{...},{...}]
<-- [{"jsonrpc":"2.0","id":"1","result":{"locati...},{...},{...}]

What version of the product are you using? On what operating system?
Tested with 0.24-SNAPSHOT using HTTP POST.

Please provide any additional information below.

I'm not sure if this is a bug. The spec for 2.0 shows that the response should 
be an array but I saw that the discussion for this was long and not quite 
finished. I'm attaching a solution, applied in 0.24-SNAPSHOT, tested and it 
worked.
We are using your library in our product and we may need this to be implemented 
some how.

Original issue reported on code.google.com by vinicius...@gmail.com on 18 Jun 2012 at 8:34

Attachments:

GoogleCodeExporter commented 8 years ago
excellent, i'll work on this this weekend.

Original comment by brian.di...@gmail.com on 26 Jul 2012 at 5:33

GoogleCodeExporter commented 8 years ago

Original comment by brian.di...@gmail.com on 26 Jul 2012 at 5:34

GoogleCodeExporter commented 8 years ago
will be made available in next release.

Original comment by brian.di...@gmail.com on 31 Jul 2012 at 6:40