I have a Perl script that can be run from the command line and takes a file as an argument. I want to be able to call this script from my JavaScript (in a Firefox addon). I was planning on using XMLHttpRequest
. But what is the best way to wrap up my Perl script into a webservice? (Is there any Perl to SOAP convertor?)
But what is the best way to wrap up my Perl script into a webservice?
(Is there any Perl to SOAP convertor?)
Don't use SOAP.
SOAP is chunky, complex, and covers many many edge cases that are unlikely to be problems for you. Use a light weight RESTful API instead.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.