XML programming using PHP and Ajax (4)

Source: Internet
Author: User
Tags php and php code web services client

Creating a Web Service

The PHP code for the Getnewpolicyinfo Web service is a thin wrapper that examines the type of policy report required and invokes the appropriate stored procedure. The value returned by the stored procedure is then sent back to the client (see Listing 7). Note how simple it is to create a Web service in PHP. The last three rows this feature is exposed as a Web service. A WEB service can be invoked on any client, including in a PHP application, as shown in Listing 8.

Conclusion

In the past few years, XML support has matured across the application tiers, leading to the emergence of a powerful development environment that can change the way enterprise applications are designed. XML enables developers to define rules and structures for business documents, as well as to instantiate documents in memory as layered objects, and developers can navigate, modify, and serialize such objects using standard APIs at any level. Ajax enables web-based client scripts to invoke the DOM API, as well as remote procedure calls to the middle tier. PHP provides one of the easiest ways to process XML and WEB services, so it is ideal for xml-based application development. The last strand of XML evolution is the database layer. DB2 9 enables the database layer to manipulate XML. So this evolution cycle is over.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.