Reputation: 5882
I have a web application written in PHP. In a few places I make calls to python script through exec(). I was wondering if there is a better way of doing this. I was thinking about creating soap service that would allow me to access python functions in the script. Does it make sense to do that? and are there any other technologies that would let you build soap-like service but local instead of http?
Upvotes: 1
Views: 275
Reputation: 77059
Sure, it makes sense. HTTP is just one of many application-level protocols that might be appropriate. Another approach might be to make your python available to celery. (While celery is natively callable from python, it's not limited to python.)
Upvotes: 1