Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread nosql
Mon, Mar 31 2014 4:09 PMPermanent Link

shakaworld

Shaka Intekanational

Has anyone used this with Neo4j, orientdb or mongodb -  or is there an example of using this with tinkerpop blueprints - thanks for any help - I was going to try to use the databases rest api and maybe a http post or server request like connecting to a web service maybe - it would be great though it these graph and document databases are supported in the future like odbc one are now
Tue, Apr 1 2014 4:58 AMPermanent Link

Matthew Jones

You can use WebBuilder with any REST service (or any service that has an http
interface). This is code I used for such:

//
https://i2.server.com/Answers?user=6&question=3284779&username=nope&password=nope
       requestResponses.URL := m_szRESTURL + '/Answers';
       requestResponses.Method := rmPost;
       requestResponses.Params.Clear;
       requestResponses.Params.Add('user=' + m_szRestMyID);
       requestResponses.Params.Add('question=' + szQuestionID);
       requestResponses.Params.Add('username=' + encodeURI(editEmail.Text));
       requestResponses.Params.Add('password=' + encodeURI(editPassword.Text));
requestResponses.ResponseContent.LineSeparator := #10;

requestResponses.RequestContent.Text := '<Value>' + szResponse + '</Value>
';

       Report('Sending REST response to ' + requestResponses.URL);
       Report('Params ' + requestResponses.Params.Text);
       Report('Payload ' + requestResponses.RequestContent.Text);
       Report('Headers ' + requestResponses.RequestHeaders.Text);
       requestResponses.Execute;

What the back-end server uses for its storage doesn't matter.

/Matthew Jones/
Tue, Apr 1 2014 8:33 AMPermanent Link

shakaworld

Shaka Intekanational

Thank you - I will give that a try


(Matthew Jones) wrote:

You can use WebBuilder with any REST service (or any service that has an http
interface). This is code I used for such:

//
https://i2.server.com/Answers?user=6&question=3284779&username=nope&password=nope
       requestResponses.URL := m_szRESTURL + '/Answers';
       requestResponses.Method := rmPost;
       requestResponses.Params.Clear;
       requestResponses.Params.Add('user=' + m_szRestMyID);
       requestResponses.Params.Add('question=' + szQuestionID);
       requestResponses.Params.Add('username=' + encodeURI(editEmail.Text));
       requestResponses.Params.Add('password=' + encodeURI(editPassword.Text));
requestResponses.ResponseContent.LineSeparator := #10;

requestResponses.RequestContent.Text := '<Value>' + szResponse + '</Value>
';

       Report('Sending REST response to ' + requestResponses.URL);
       Report('Params ' + requestResponses.Params.Text);
       Report('Payload ' + requestResponses.RequestContent.Text);
       Report('Headers ' + requestResponses.RequestHeaders.Text);
       requestResponses.Execute;

What the back-end server uses for its storage doesn't matter.

/Matthew Jones/
Wed, Apr 2 2014 7:01 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< Has anyone used this with Neo4j, orientdb or mongodb -  or is there an
example of using this with tinkerpop blueprints - thanks for any help - I
was going to try to use the databases rest api and maybe a http post or
server request like connecting to a web service maybe - it would be great
though it these graph and document databases are supported in the future
like odbc one are now >>

You can communicate with any web service by using the
TServerRequest/TServerRequestQueue components:

http://www.elevatesoft.com/manual?action=viewcomp&id=ewb1&comp=TServerRequest

http://www.elevatesoft.com/manual?action=viewcomp&id=ewb1&comp=TServerRequestQueue

Tim Young
Elevate Software
www.elevatesoft.com
Image