[texo] JSONEMFConverter from texo web service response [message #1746705] |
Thu, 03 November 2016 13:31 |
Peter Friedland Messages: 6 Registered: November 2016 |
Junior Member |
|
|
Hi,
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);
Error: Quote: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?
Best Regards
Peter Friedland
[Updated on: Thu, 03 November 2016 13:42] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04658 seconds