Details
-
Bug
-
Resolution: Can't Do
-
Major
-
None
-
8.13.5
-
None
Description
Hi Steven/ Ramesh,
We have an REST streaming api, which will excepts JSON as input and returns JSON as output.
@POST
@Consumes(
@Produces({MediaType.APPLICATION_JSON}
)
@Path("/processTEIIDJsonQueryReq")
public Response processTEIIDJsonQueryReq(TEIIDJsonRequest Req) throws Exception{
}
We used existing WSExecutionFactory as translator to send/receive JSON Req as stream.
I am not able to send JSON query as part of request. I followed below references
https://docs.jboss.org/author/display/TEIID/Web+Services+Translator
Here I am not able to create jsonObject, it is expecting DerivedColoumns
https://issues.jboss.org/browse/TEIID-3016
https://developer.jboss.org/thread/240453?start=0&tstart=0
https://developer.jboss.org/thread/253551?start=0&tstart=0
https://developer.jboss.org/message/923210#923210
As some of links you and Ramesh mentioned about TEIID Designer(to see how procedure created), their is also I am not succeeded. invokeHTTP is the method I am using
I am using below codes
https://github.com/teiid/teiid-embedded-examples/tree/master/restservice-as-a-datasource/src/main/java/org/teiid/example
https://github.com/teiid/teiid-embedded-examples/tree/master/socialmedia-integration
Can you please suggest me how I can send JSON object as part of REST API request.Thanks for help.
Thanks,
Surendhar