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
advertisement
Average Rating: 4.5/5 | Rate this item | 2 users have rated this item.
Email this articleEmail this article
 
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.

  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
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
Avaya Article: Call Control XML - Powerful, Standards-Based Call Control
Tripwire Whitepaper: Seven Practical Steps to Mitigate Virtualization Security Risks
Internet.com eBook: The Pros and Cons of Outsourcing
Go Parallel Article: Scalable Parallelism with Intel(R) Threading Building Blocks
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Go Parallel Video: Intel(R) Threading Building Blocks: A New Method for Threading in C++
HP Video: Is Your Data Center Ready for a Real World Disaster?
Microsoft Partner Portal Video: Microsoft Gold Certified Partners Build Successful Practices
HP On Demand Webcast: Virtualization in Action
Go Parallel Video: Performance and Threading Tools for Game Developers
Rackspace Hosting Center: Customer Videos
Intel vPro Developer Virtual Bootcamp
HP Disaster-Proof Solutions eSeminar
HP On Demand Webcast: Discover the Benefits of Virtualization
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Microsoft Download: Silverlight 2 Software Development Kit Beta 2
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt
Iron Speed Designer Application Generator
Microsoft Download: Silverlight 2 Beta 2 Runtime
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM IT Innovation Article: Green Servers Provide a Competitive Advantage
Microsoft Article: Expression Web 2 for PHP Developers--Simplify Your PHP Applications
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES