|[texo] JSONEMFConverter from texo web service response [message #1746705]
||Thu, 03 November 2016 13:31
| Peter Friedland
Registered: November 2016
I already found some topics here, but it seems none of seem are about the exactly same issue.
I have an ecore model, generating texo JPA classes. The texo web service also runs properly and I can get proper responses from the service. Now I need to convert the response json string to EObject instances. The following code breaks with the following message:
final JSONObject responseJsonObject = new JSONObject(result.toString());
final JSONObject rootObjectJson = responseJsonObject.getJSONArray("data").getJSONObject(0);
final JSONEMFConverter converter = new JSONEMFConverter();
rootObject = converter.convert(rootObjectJson);
No EClass(ifier) found using name com.mycompany.fileSystem|Root
I already found out to have a resolver for the types, but it is straight forward modeled classes from the same service. I thought the ModelFactory of the com.mycompany.fileSystem implements a resolver or someone else.
Do I need to write my own resolver or is there another, easier solution around?
[Updated on: Thu, 03 November 2016 13:42]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01529 seconds