java - How to talk to Tomcat server from a PHP application -


i developing new report engine company, our main web application writing php 5 , running on apache server. new report server designed use apache fop 1.0 ruing on tomcat7,so far created own xslt stylesheets , can manage generate pdf report url , let display in web browser.my goal on project generate dynamic report xml file export php application.

could explain me logic behind how can give 2 talk each others. understand post xml , xslt string report server , post result want(like pdf).

i know need java involved,and php dev. don't have background java,if show me examples or links, appreciate.

i using saxon-b fop 1.0 on tomcat 7 report server.

if need more info me,please leave comment. add soon.

thanks

there 2 things going need study.

  1. http://www.w3schools.com/php/php_ajax_intro.asp tutorial on using xhr object php. should go through that. also, if aren't familiar xhr object, read well: http://www.w3schools.com/xml/xml_http.asp
  2. you're going have create servlet capable of responding these requests. there various tutorials on how create servlet.

here link youtube video fall on when forget how servlets: http://www.youtube.com/watch?v=eokn5ipojvs

in video, uses straight javascript; you're php code going doing javascript did in video (item 1 on list).

the video uses older version of eclipse (i think ganymede), pretty close same process in newest version of eclipse.

just blunt, isn't you're going able figure out , make work properly. you've got @ least day weeks worth of learning here depending on experience , aptitude; , basic. servlet make won't secure, won't have user authentication...my point don't take granted.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -