Hi Isomorphic,
please try to send this data to the RESTHandler servlet (v11.1p_2018-01-11) at http://127.0.0.1:8888/builtinds/sc/RESTHandler
It seems RESTHandler does not accept transactions with only one request.
Result is:
These two requests work fine:
Best regards
Blama
please try to send this data to the RESTHandler servlet (v11.1p_2018-01-11) at http://127.0.0.1:8888/builtinds/sc/RESTHandler
Code:
<transaction> <operations> <request> <dataSource>animals</dataSource> <operationType>fetch</operationType> </request> </operations> </transaction>
Result is:
Code:
java.lang.Exception: Fail: The request doesn't look like a single request, and it doesn't look like a queue either! <BR> at com.isomorphic.rpc.RestRequestParser.parseRequest(RestRequestParser.java:310) <BR> at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:392) ...
Code:
<transaction> <operations> <request> <dataSource>animals</dataSource> <operationType>fetch</operationType> </request> <request> <dataSource>animals</dataSource> <operationType>fetch</operationType> </request> </operations> </transaction>
Code:
<request> <dataSource>animals</dataSource> <operationType>fetch</operationType> </request>
Blama
Comment