xmlstarlet has almost enough features built-in to be used as a tool to call web services and extract result.
I propose to add an option to call web service
something like
xml call --url <web service url> --wsdl <WSDL url> --function <func_name> --args <arguments>
arguments can be a JSON (http://www.json.org/) string. JSON is widely used format so there should be some lightweight C library available for it.
Thanks,
--MG