You can use the opener webservices using Curl. All components, except the language identifier, take KAF (XML) as input and output KAF. Only the language identifier takes "raw text" as an input.
To send a text to the language identifier you can use curl with the -F
option to have curl read text out of files, like this: