Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/dataxflo/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
Web Service Apps Returning KMLs – dataflow analytics blog Press "Enter" to skip to content

Web Service Apps Returning KMLs

Lars Fiedler 0

I’m pleased to announce a cool feature we’ve added to the ‘Web Send’ module in Composable.  Currently, in order to respond to web requests, users have the ability to wrap their apps with ‘Web Receive’ and ‘Web Send’ modules.  Prior, apps could only return strings with a mimetype of ‘application/json’ or ‘text/html’.

But now, you can return any file that’s been generated by the application.  Simply pipe the file reference into the response input, set the mimetype, and you’re in business!

Here’s an application that returns a KML file as the response.  Ohh, you can also specify additional HTTP headers if you want too!

To execute the application’s web service, and get the KML,  you can hit the apps listening url:

Lars Fiedler

Lars has comprehensive expertise building large complex software systems, and has served as a Software Engineer at MIT’s Lincoln Laboratory from 2010-2014, where he began developing Composable Analytics. Prior to joining Lincoln Laboratory, Lars worked as a Software Engineer at Microsoft Corporation from 2006 to 2010. Lars received his MS in Computer Science from Georgia Institute of Technology in 2004, and his BS in Computer Science from Georgia Tech in 2003.
Lars Fiedler

Comments are closed.