Dreaming up Webservices with LC server

Mark Schonewille m.schonewille at economy-x-talk.com
Thu Nov 21 08:09:14 EST 2013


Hi Malte,

Do you want live content à la Facebook and Twitter, or are you just 
looking for a standard way to provide data? FB and Twitter designed 
their own API. I think that FB is the closest to standard data, using 
GRAPH and JSON.

If you just want to provide static data, I'd go with JSON or XML as 
Peter wrote already. PHP has built-in JSON and XML commands, which allow 
you send standard MySQL queries to the database and get the right format 
returned without additional work. Look up the json_encode() function in 
the PHP docs. Unfortunately, PHP isn't LC server but I'd consider using 
PHP for this.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other 
colour spaces. http://www.color-converter.com

Buy my new book "Programming LiveCode for the Real Beginner" 
http://qery.us/3fi

Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/

On 11/21/2013 12:57, Malte Brill wrote:
> Hi all,
>
> I am currently in a situation, where I need to implement a couple of Webservices (either SOAP or REST at my choice). Of course I would love to be able to do this with liveCode server. I need to OFFER webservice, instead of retrieving data from existing ones. So here is the question… Has anybody of you done this already? Is there some sort of library that could be used? When I am looking at this I see a lot of work coming up and makes me peeking jealously at JAVA, where a Webservice comes out of the box so to speak.
>
> I envision something in LC that automagically generates a WSDL somehow, just the way one would expect and some sort of connector script that receives the data and passes it on to the commands and functions in question.
>
> I would be very glad to receive any pointers.
>
> All the best,
>
> Malte





More information about the use-livecode mailing list