Connecting a PHP frontend to an internal java service

I am currently using various helper services, and I want to use PHP to simply request these services and execute the final page. These services can be encoded in any number of programming languages, such as Erlang, Java, Python, etc. However, I'm not sure that you can actually interact with internal services using a web application. Requests for these services will be synchronous and asynchronous. Would I use something like SOAP or JSON-RPC ??

Any help is greatly appreciated.

+1
source share
4 answers

You might want to take a look at Thrift:

http://incubator.apache.org/thrift/

+2
+1

, -, , REST- -. , URL ( ). -, , REST. IMHO , SOAP, , -, GET URL-, http://www.example.com/user/5/ ( mod_rewrite -)

0

I would use NuSOAP (to use Java services).

0
source

Source: https://habr.com/ru/post/1739789/


All Articles