advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   TIP BANK
Browse DevX
Partners & Affiliates
advertisement
advertisement
advertisement
advertisement
 

Use SOAP to Access EJB Components with PHP

PHP code on the front end and EJBs on the back end—how do you make them talk to each other? Apply a little SOAP. Exposing the EJBs as Web services enables PHP to work with them, and SOAP is the key. 


advertisement
magine a software project for which the front-end developers work with PHP and the back-end developers create Enterprise JavaBeans (EJBs). As the project evolves, the front-end applications need to speak to the back-end EJBs, but this can't be done in one simple step. So what's the solution? Well, exposing the EJBs as Web services enables PHP to work with them. This article provides just such a solution.

Many developers face the challenge of mixing Java and PHP, based on the numerous posts I see on different discussion forums asking, "How do I link PHP with EJB?!" The few answers they receive usually suggest using Web services, but they never offer a practical example. Because this problem has no easy solution, the practical example this article offers is complex, involving Java, PHP, and SOAP technologies. (IMHO, the process of exposing EJBs as Web services requires much more coverage than one article can offer.)


It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com.
Already a member?



advertisement