Integrate a Wordpress website (in PHP) with a Java program

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
_Manuel_
Forum Newbie
Posts: 2
Joined: Mon Jan 25, 2010 10:19 pm

Integrate a Wordpress website (in PHP) with a Java program

Post by _Manuel_ »

Hello!
I developed a website using WordPress and it encompasses some php pages.

In another place, I have a Java program accessing a MYSQL database.

Now a user is supposed to be able to fill a form of the website and send data to the java program.

I didn't select the web server I'm going to use for the Java progam, so far.

How can I procede?
_Manuel_
Forum Newbie
Posts: 2
Joined: Mon Jan 25, 2010 10:19 pm

Re: Integrate a Wordpress website (in PHP) with a Java program

Post by _Manuel_ »

No idea?

I was thinking about creating a java webservice (eclipse can help me), but how can a php program transfer data to the webservice?
User avatar
timWebUK
Forum Contributor
Posts: 239
Joined: Thu Oct 29, 2009 6:48 am
Location: UK

Re: Integrate a Wordpress website (in PHP) with a Java program

Post by timWebUK »

The web form would post the data to a database. Then the Java application would access the database.

PHP wouldn't send data to the Java application.
User avatar
JNettles
Forum Contributor
Posts: 228
Joined: Mon Oct 05, 2009 4:09 pm

Re: Integrate a Wordpress website (in PHP) with a Java program

Post by JNettles »

I would recommend building the web services. If you already have your data access models written and working then go ahead and incorporate them into a web service - this will keep your models together in spot and save you from rewriting the same code in a different language. I ran into the same situation awhile back - we had a huge .NET data access layer written for a different project that we needed to utilize in PHP so we wrote web services to expose the models.

Web services can take some getting used to, but they're simple enough.
Post Reply