Clarion will do this with NetTalk version 7, but its nicer and more automatic in NetTalk 8 onwards (its practically magic in NT10).
You might want jFiles to make it easier. But, it can all be done pretty easy with just NetTalk 7.
I have a whole REST API written in Clarion 10/Net Talk 7.
http://nettalkcentral.com is a forum for more NetTalk help.