FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log inLog in 


service from inside the socket project

Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog
View previous topic :: View next topic  
Author Message
augustinharrison




Joined: 28 Jul 2010
Posts: 27

PostPosted: 30 Jan 2017 14:24    Post subject: service from inside the socket project Reply with quote

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.



thanks,

aeharrison

_________________
aeh
Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3077

PostPosted: 31 Jan 2017 11:45    Post subject: Reply with quote

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.

In Visual Prolog 7.5 Commercial Edition there are a number of web services examples, all around the same little test service. Most of the examples are concerned with "being" a web service, but "...\webRPC\jsonRpcClient" is a client example. It uses the MSXML component for the actual contact to the service. MSXML offers a number of functions which are very similar to those offered by web-browsers to JavaScript programs.

An alternative may be to use the curl library, but I do not have any experience with that myself.

_________________
Regards Thomas Linder Puls
Prolog Development Center
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum