web analytics

Web Service Apps Returning KMLs

We are excited to announce an exciting new enhancement to the Web Send Module in the Composable DataOps Platform. Until now, when responding to web requests, users had the option to wrap their DataFlow Applications with the Web Receive and Web Send Modules. However, the response was limited to returning strings with ‘application/json‘ or ‘text/html‘ as the mimetype.

But now, we have expanded the capabilities of the ‘Web Send’ Module, allowing users to return any generated file from their DataFlow Applications. It’s as simple as connecting the file reference to the response input and specifying the appropriate mimetype. This opens up a world of possibilities for delivering various file formats as responses to web requests.

For instance, let’s say you want your DataFlow Application to return a KML file as the response. With the enhanced ‘Web Send’ Module, you can effortlessly configure the DataFlow to generate the KML file and connect it to the response output. By setting the mimetype appropriately, the DataFlow can seamlessly deliver the KML file as the response to the web request.

But wait, there’s more! In addition to returning files, the ‘Web Send’ Module now allows you to specify additional HTTP headers. This gives you the flexibility to include custom headers in the response, enabling you to provide additional information or control over the web communication.

With this new feature, the Composable DataOps Platform empowers users to create dynamic and versatile web applications that can respond with a wide range of file types. Whether it’s delivering reports, images, documents, or any other file generated by the DataFlow, the enhanced ‘Web Send’ Module ensures seamless integration and smooth delivery to web clients.

As an example, the following DataFlow Application accepts a web request with a number of input parameters, and returns a KML file as the response.  As discussed above, you can also specify additional HTTP headers as needed.

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

In summary, the recent enhancement to the ‘Web Send’ Module in the Composable DataOps Platform enables users to return any generated file from their DataFlow Applications as web responses. This expanded capability opens up opportunities for delivering various file formats, such as KML files, and allows for the inclusion of additional HTTP headers. By leveraging these features, users can create powerful and flexible web applications that cater to a diverse range of client requirements.