> {
> "id":"0",
> "method":"findByDesc",
> "params":{
> "finderDesc":{
> "limit":"5",
> "totalNumber":"-1"
> }
> }
>
> }
This seems wrong, it's missing the "jsonrpc" attribute (which should
be "2.0") ie:
{
"jsonrpc": "2.0",
"id":"0",
"method":"findByDesc",
"params":{
"finderDesc":{
"limit":"5",
"totalNumber":"-1"
}
}
}
What that implies is that you're making a JSON-RPC request with an id
of 0 to the method "findByDesc" with a named parameter of "finderDesc"
which has a limit and totalNumber attribute. Because you're using
named parameters your service interface or (preferably) service
implementation needs to have it's parameters annotated with the name.
This is because there isn't any way of reflecting method parameter
names in java.
You might consider using the indexed parameter approach for your
request:
{
"jsonrpc": "2.0",
"id":"0",
"method":"findByDesc",
"params": [
]
}