Migrating data from PHP to Java

I have an XML file that I need for parsing using PHP and sending the parsed data to Java, what are some recommendations for executing it?

+3
source share
10 answers

This is an example for a web service like SOAP .

+4
source

If the data size is quite large and you need a fast transfer, then you would like to consider protobuf ( http://code.google.com/p/protobuf/ ). This is comparable to SOAP, but fully communicates in binary format.

+2
source

, , .

PHP Java? ? Java?

//- > //

ILOG Engine, API, , .

, , , , ILOG API XML?

http://ilog.cn/products/jrules/documentation/jrules67/api/html/index.html

XML Java, API.

, !

+2

, :

xml.

MySql.

JRules.

Jrules.

Right?

, JRules API - , System (...).

- Java!

JRules Websphere, , , . Java API-, XML, JRules. Java- php?

Alternativly! , JRules -. - php SOAP:: ( , php 5), WebService JRules, xml php-. php SOAP:: Client -. . http://th2.php.net/manual/en/book.soap.php

, Java-.

+2

"parse"? PHP-?

- SOAP XMLRPC Thrift Protobuf, , PHP- XML Java- HTTP - . Java- , , XML .

+1

PHP SimpleXML (PHP v5) XML

0

PHP/Java: http://php-java-bridge.sourceforge.net/pjb/ , , , - .

, WebService SOAP , , "" , .

0

PHP? Java ? PHP? Java ( ?)

, : Java, - (SOAP, REST, ), PHP/Java bridge PHP- Java.

0

-

a) XML JSON (Java script) PHP. ( JSON , / PHP)
b) JSON.
c) Java ( Servlet/Struts .., Java -) JSON .
d) ( JSON) JSON ( forge JSON java) Map/List ( , ).

0

:

  • Create a php rest service, for example. a page that returns an xml file for a standard web request (for example, try opening the page in a draft). The Java application will then connect to the php rest service (e.g. a page) and get xml output.

  • The Java application starts a TCP server to which the PHP application connects to the TCP protocol and sends the XML file to the Java application.

  • A PHP application saves an XML file in a column of a database table, a Java application reads it from there.

0
source

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


All Articles