advertisement
Premier Club Log In/Registration
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   SKILLBUILDING  |   TIP BANK  |   SOURCEBANK  |   FORUMS  |   NEWSLETTERS
Browse DevX
Download the code for this article
Partners & Affiliates
advertisement
advertisement
Average Rating: 4.5/5 | Rate this item | 2 users have rated this item.
 Print Print
 
SOAP's Alive: Try the New Native SOAP Extensions for PHP
With PHP5, Web services and everybody's favorite open source Web development language are now native pals.  

advertisement
n the world of Web development, two technologies have been very, very hot. These are Web services and PHP. The former because they allow big companies with big applications and big ideas to integrate easily; the latter because it is free, easy to use, and easy to learn. Their paths haven't crossed—until now.


With PHP5, finally, there are native SOAP extensions that allow you to build and consume Web services with this excellent Web development language.

But before going any further, let's do a quick of Web services and SOAP. One of the biggest challenges facing the Internet generation was the ability to integrate different systems. It was all very nice to have a fancy J2EE application server managing your Web site, pooling connections to Enterprise Java Beans to keep everything running smoothly, but it was no good when you had to write thousands of lines of code to get it to interface to say, a credit card clearing house. Arguably the largest factor contributing to the dot-com crash was the sheer amount of money startups had to spend to hire staff to handle this back-end integration.

This is a problem that Web services were designed to solve. With your services giving data in a standard language (Extensible Markup Language, XML), defined in a standard way (Web Services Description Language, WSDL), located using a standard means (Universal Directory Discovery and Integration, UDDI) and accessed using a standard methodology (Simple Object Access Protocol, SOAP) all you had to do was build one, and everything would work neatly together.

While Web services built by this means are wildly popular, they have tended to exist primarily in the enterprise-level echelon, being used in a .NET or J2EE environment. Small companies and non-commercial Web sites, perhaps scared off by the high cost of infrastructure required to host Web services have gravitated more toward the ASP or PHP model.

With PHP5 you can now have the best of both worlds, as it is fully enabled to develop and consume Web services. In this article I'll show you how to set up a PHP5-based Web site running under Windows and IIS that consumes standard SOAP-based services.

Author's Note: While the source code for this article is designed for PHP5, it should run on any variation of PHP that supports the SOAP extensions and any Web server that supports it.

Page 1 of 4


advertisement
  Next Page: Setting Up
Page 1: IntroductionPage 3: Consuming a Web Service
Page 2: Setting UpPage 4: Build Your Very Own Web Service with PHP5
advertisement
Advertising Info  |   Member Services  |   Permissions  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About


JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: HyperV-The Killer Feature in WinServer ‘08
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Win Server ‘08
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES