Connecting to 4D via REST

Dave Nasralla (4/23/14 2:24PM)
Ben Kershaw (4/23/14 5:14PM)
Keisuke Miyako (4/24/14 3:14AM)


Dave Nasralla (4/23/14 2:24 PM)

<CAHTQw=gp+ktn7rLVuDAEdk7f-Efx-tM8HEFVQpmLOZESb4mYqg@mail.gmail.com>

Hi All,

Just for clarification. If I want to allow someone to access my 4D
Data via
the REST protocol, do I need to run Wakanda as a intermediary? And what
kind of license would that require?

Thanks,

dave

--
David Nasralla
Clean Air Engineering

Ben Kershaw (4/23/14 5:14 PM)

David Nasralla wrote:

color><param>00000,0000,DDEE/param>JJust for clarification. If I want
to allow someone to access my 4D Data via
the REST protocol, do I need to run Wakanda as a intermediary? And what
kind of license would that require?
/color>
David,

REST isn?=80&ocirc;t really a protocol - it?=80&ocirc;s more of a
concept/architecture. It
just means that it is a ?=80&uacute;stateless?=80&ugrave; connection (as
opposed to
something like 4D Client, which keeps a connection open and maintains
a bunch of session information).

You don?=80&ocirc;t need Wakanda to do this - the built in 4D web server
will
work just fine. You can define your own custom HTTP API, and have
outside services submit requests which 4D then serves responses to.

For example, sending
?=80&uacute;www.my4dserver.com?methodName=getClientName&clientID=12345?
&Auml;&ugrave; and
having 4D respond with the client name (in XML, JSON, or whatever) is
technically a REST request/response.

As with most things, the basic concepts are easy but the practical use
can get complicated. For example, you?=80&ocirc;ll have to build your own
login
page, allow for user accounts (if needed), keep track of sessions
using cookies, etc. Wakanda may take care of that for you (I don?=80&ocirc;t
know - I don?=80&ocirc;t use it), but it isn?=80&ocirc;t absolutely
necessary.

Regards,
Ben

Keisuke Miyako (4/24/14 3:14 AM)

There is a great tech note (and blog) on the subject by Christophe
Keromen

http://kb.4d.com/assetid=76694

miyako

On 2014/04/24 7:32, "Dave Nasralla" <dnasralla@... wrote:

color><param>00000,0000,DDEE/param>YYou don?=A2?=82®=E2&Ntilde;Ęt
need Wakanda to do
this - the built in 4D web server will work
just fine. You can define your own custom HTTP API, and have outside
services submit requests which 4D then serves responses to.
/color>

Reply to this message

Summary created 4/24/14 at 5:21AM by Intellex Corporation

Comments welcome at: feedback@intellexcorp.com