Active4D as a simple web services server (using NTK)

View: New views
5 Messages — Rating Filter:   Alert me  

Active4D as a simple web services server (using NTK)

by B. Perkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Subject line says it all.

Has any used Active4D or NTK (or event ITK) standalone to develop a
simple web services server? This would not be a public service and the
interface would be extremely simple (pass in a single known ID) so WSDL
support would not be required. Is this a lot more complex than simply
setting the proper headers and returning the result as valid XML?

Most are probably asking why not just use 4D's Web Service server? That
would obviously be the simplest route. The only problem is that we use
already use NTK in the proposed system for both Active4D and in a legacy
web app (NTK as a standalone web server). I'm hesitant to add yet
another server to the mix.

Thanks,

Brad
_______________________________________________
Active4D-dev mailing list
Active4D-dev@...
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Re: Active4D as a simple web services server (using NTK)

by Michael Check :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey Brad

We're doing this right now for a system created in Rails.  We needed
to access the data in a main 4D db and this turned out to be an easy,
fast way to GET, PUT any data needed.

Instead of XML, we return well-formed data as json. But the XML would
be straightforward (though not as easy as using the json libraries).

In fact, we prefer using A4D because we can adjust the scripts needed
without getting into 4D's method editor and recompiling.

Michael Check



On Mon, Aug 31, 2009 at 12:20 PM, Brad Perkins<bperkins@...> wrote:

> Subject line says it all.
>
> Has any used Active4D or NTK (or event ITK) standalone to develop a
> simple web services server? This would not be a public service and the
> interface would be extremely simple (pass in a single known ID) so WSDL
> support would not be required. Is this a lot more complex than simply
> setting the proper headers and returning the result as valid XML?
>
> Most are probably asking why not just use 4D's Web Service server? That
> would obviously be the simplest route. The only problem is that we use
> already use NTK in the proposed system for both Active4D and in a legacy
> web app (NTK as a standalone web server). I'm hesitant to add yet
> another server to the mix.
>
> Thanks,
>
> Brad
> _______________________________________________
> Active4D-dev mailing list
> Active4D-dev@...
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>
_______________________________________________
Active4D-dev mailing list
Active4D-dev@...
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Re: Active4D as a simple web services server (using NTK)

by B. Perkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Michael,

Thanks for the confirmation. I like the idea of sending JSON instead of
XML, but will need to to check with the developers of the two systems that
will be 'consuming' the data. One is PHP based and the other is written in
Perl. From preliminary conversations I believe they want to use either
native SOAP or NuSOAP for the client code.

Is the Rails system actually making a SOAP call or simply an HTTP request?

re: though not as easy as using the json libraries

You mean the JSON libraries that come with A4D, right?

Thanks,

Brad

On Mon, 31 Aug 2009 21:58:03 -0400, Michael Check
<michaelr.check@...> wrote:

> Hey Brad
>
> We're doing this right now for a system created in Rails.  We needed
> to access the data in a main 4D db and this turned out to be an easy,
> fast way to GET, PUT any data needed.
>
> Instead of XML, we return well-formed data as json. But the XML would
> be straightforward (though not as easy as using the json libraries).
>
> In fact, we prefer using A4D because we can adjust the scripts needed
> without getting into 4D's method editor and recompiling.
>
> Michael Check
>
>
>
> On Mon, Aug 31, 2009 at 12:20 PM, Brad Perkins<bperkins@...> wrote:
>> Subject line says it all.
>>
>> Has any used Active4D or NTK (or event ITK) standalone to develop a
>> simple web services server? This would not be a public service and the
>> interface would be extremely simple (pass in a single known ID) so WSDL
>> support would not be required. Is this a lot more complex than simply
>> setting the proper headers and returning the result as valid XML?
>>
>> Most are probably asking why not just use 4D's Web Service server? That
>> would obviously be the simplest route. The only problem is that we use
>> already use NTK in the proposed system for both Active4D and in a legacy
>> web app (NTK as a standalone web server). I'm hesitant to add yet
>> another server to the mix.
>>
>> Thanks,
>>
>> Brad
>> _______________________________________________
>> Active4D-dev mailing list
>> Active4D-dev@...
>> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
>> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>>
> _______________________________________________
> Active4D-dev mailing list
> Active4D-dev@...
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

_______________________________________________
Active4D-dev mailing list
Active4D-dev@...
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Re: Active4D as a simple web services server (using NTK)

by Michael Check :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Rails is making an HTML request.

Yes, the A4D json library. They make sending data very staightforward.

If they can work with json, all the better for you. As you know perl  
and php have pretty mature functions for working with json. But if XML  
is required, maybe the json library would provide a good model for  
building an XML library for delivering data?

Michael Check

On Aug 31, 2009, at 9:35 PM, "Bradley D. Perkins" <bperkins@...>  
wrote:

> Michael,
>
> Thanks for the confirmation. I like the idea of sending JSON instead  
> of
> XML, but will need to to check with the developers of the two  
> systems that
> will be 'consuming' the data. One is PHP based and the other is  
> written in
> Perl. From preliminary conversations I believe they want to use either
> native SOAP or NuSOAP for the client code.
>
> Is the Rails system actually making a SOAP call or simply an HTTP  
> request?
>
> re: though not as easy as using the json libraries
>
> You mean the JSON libraries that come with A4D, right?
>
> Thanks,
>
> Brad
>
> On Mon, 31 Aug 2009 21:58:03 -0400, Michael Check
> <michaelr.check@...> wrote:
>> Hey Brad
>>
>> We're doing this right now for a system created in Rails.  We needed
>> to access the data in a main 4D db and this turned out to be an easy,
>> fast way to GET, PUT any data needed.
>>
>> Instead of XML, we return well-formed data as json. But the XML would
>> be straightforward (though not as easy as using the json libraries).
>>
>> In fact, we prefer using A4D because we can adjust the scripts needed
>> without getting into 4D's method editor and recompiling.
>>
>> Michael Check
>>
>>
>>
>> On Mon, Aug 31, 2009 at 12:20 PM, Brad Perkins<bperkins@...>  
>> wrote:
>>> Subject line says it all.
>>>
>>> Has any used Active4D or NTK (or event ITK) standalone to develop a
>>> simple web services server? This would not be a public service and  
>>> the
>>> interface would be extremely simple (pass in a single known ID) so  
>>> WSDL
>>> support would not be required. Is this a lot more complex than  
>>> simply
>>> setting the proper headers and returning the result as valid XML?
>>>
>>> Most are probably asking why not just use 4D's Web Service server?  
>>> That
>>> would obviously be the simplest route. The only problem is that we  
>>> use
>>> already use NTK in the proposed system for both Active4D and in a  
>>> legacy
>>> web app (NTK as a standalone web server). I'm hesitant to add yet
>>> another server to the mix.
>>>
>>> Thanks,
>>>
>>> Brad
>>> _______________________________________________
>>> Active4D-dev mailing list
>>> Active4D-dev@...
>>> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
>>> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>>>
>> _______________________________________________
>> Active4D-dev mailing list
>> Active4D-dev@...
>> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
>> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>
> _______________________________________________
> Active4D-dev mailing list
> Active4D-dev@...
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
_______________________________________________
Active4D-dev mailing list
Active4D-dev@...
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Re: Active4D as a simple web services server (using NTK)

by Mehboob Alam :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Brad,

Look into REST
http://www.xfront.com/REST-Web-Services.html

 sincerely,
mehboob alam




Electricity is actually made up of extremely tiny particles called electrons, that you cannot see with the naked eye unless you have been drinking. - Dave Barry



----- Original Message ----
From: Bradley D. Perkins <bperkins@...>
To: active4d-dev@...
Sent: Monday, August 31, 2009 10:35:37 PM
Subject: Re: [Active4d-dev] Active4D as a simple web services server (using NTK)

Michael,

Thanks for the confirmation. I like the idea of sending JSON instead of
XML, but will need to to check with the developers of the two systems that
will be 'consuming' the data. One is PHP based and the other is written in
Perl. From preliminary conversations I believe they want to use either
native SOAP or NuSOAP for the client code.

Is the Rails system actually making a SOAP call or simply an HTTP request?

re: though not as easy as using the json libraries

You mean the JSON libraries that come with A4D, right?

Thanks,

Brad

On Mon, 31 Aug 2009 21:58:03 -0400, Michael Check
<michaelr.check@...> wrote:

> Hey Brad
>
> We're doing this right now for a system created in Rails.  We needed
> to access the data in a main 4D db and this turned out to be an easy,
> fast way to GET, PUT any data needed.
>
> Instead of XML, we return well-formed data as json. But the XML would
> be straightforward (though not as easy as using the json libraries).
>
> In fact, we prefer using A4D because we can adjust the scripts needed
> without getting into 4D's method editor and recompiling.
>
> Michael Check
>
>
>
> On Mon, Aug 31, 2009 at 12:20 PM, Brad Perkins<bperkins@...> wrote:
>> Subject line says it all.
>>
>> Has any used Active4D or NTK (or event ITK) standalone to develop a
>> simple web services server? This would not be a public service and the
>> interface would be extremely simple (pass in a single known ID) so WSDL
>> support would not be required. Is this a lot more complex than simply
>> setting the proper headers and returning the result as valid XML?
>>
>> Most are probably asking why not just use 4D's Web Service server? That
>> would obviously be the simplest route. The only problem is that we use
>> already use NTK in the proposed system for both Active4D and in a legacy
>> web app (NTK as a standalone web server). I'm hesitant to add yet
>> another server to the mix.
>>
>> Thanks,
>>
>> Brad
>> _______________________________________________
>> Active4D-dev mailing list
>> Active4D-dev@...
>> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
>> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>>
> _______________________________________________
> Active4D-dev mailing list
> Active4D-dev@...
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

_______________________________________________
Active4D-dev mailing list
Active4D-dev@...
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/



     
_______________________________________________
Active4D-dev mailing list
Active4D-dev@...
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/