Programming Web Services with Perl
There are currently two object-oriented modules for Perl that provide support for developing SOAP client/server applications: SOAP and SOAP::Lite. This chapter introduces these two modules. By comparing and contrasting the modules, you”ll learn their strengths and weaknesses. The last part of the chapter covers other SOAP-related utility modules, which either augment the client/server SOAP modules or add SOAP-related functionality to other packages and systems. By the time you finish this chapter, you”ll be able to develop basic SOAP applications with the toolkits and utility modules and make an informed choice of software to use in your SOAP projects.
…
Example: Client to Convert a Number to Words
This script, shown in Example 6-1, connects to a public server that converts integer numbers to their text equivalents. It uses the SOAP toolkit to manage all the abstract elements such as XML encoding, the HTTP transport, and decoding the resulting XML. You can find a list of public SOAP services, including this one, at http://www. xmethods.com.* The service uses a RPC model for its interface. The service itself is simple:it takes an integer number and returns to the client a string of English text that expresses the value in words. Our client script takes the integer as a command-line argument and prints the string it gets back from the server.
…
Website: oreilly.com | Filesize: 741kb
No of Page(s): 26
Click here to download Programming Web Services with Perl.
Related Copyrighted Books
Programming Web Services with Perl
Programming Web Services with SOAP
SOAP-based web services in GIS/RDBMS environment [An article from: Environmental Modelling and Software]
Perl and XML
Beginning Perl Web Development: From Novice to Professional (Beginning: From Novice to Professional)
Pro Perl Parsing
Related Tutorial
Tags: SOAP, Web Services
Comments
Leave a Reply