Page 1 of 1
service from inside the socket project
Posted: 30 Jan 2017 14:24
intech wrote the socket code for/with me and donated it to your forum for an example. i am now in r&d to use nosql or mongo db. is it possible to call out from the the socket project to a service where i can access either a json or java api ? i will need to continue calling my existing knowledge from the odbc layer already in place and then using some domain abstractions that define my data structures, use the service in question to communicate with the documents using an api.
Posted: 31 Jan 2017 11:45
You cannot call a java api. But you can call a web service (that may or may not be implemented in java), which it appears that MongoDB is.
Sockets is the low-level connection between a web client and a web server, but I would not recommend that you use the sockets directly. Because then you will yourself have to deal with a number of low level stuff like the http-protocol.
An alternative may be to use the curl
library, but I do not have any experience with that myself.