If it were me, and I need PHP to capture / use data from a java service, I would reset the DB.
Ask the java w / HTTP service to listen on 127.0.0.1, port 5544 (or some random #). Ask the servlet / jsp to accept RESTful requests and spit out the JSON results. Therefore, if you search for it, the URL will look like this:
h ttp://127.0.0.1: 5544/search_zip_code/80203
json:
{ "": "", "": "" }
PHP curl - URL- , curl, json_decode ($ result_array = json_decode ($ curl_result);).
. , ( curl/wget java- access_logs , ).
PHP curl_exec json_decode ( PHP).
, java:
JSON java-
( ), ( ) .