Email:   
Home
In This Issue
EasyPrint
Click here for the RSS feed's XML code. This is not a browser URL.
PROGRAMMING POWER
How to create a Web service to extract data from XML documents
By Steve Callan

Web services are a new breed of self-contained, self-describing, modular Web applications that can be published, located, and invoked across the Web. Web services perform specific functions, which can be anything from simple requests to complicated business processes. Once a Web service is deployed, other applications (and other Web services) can discover and invoke the deployed service. In other words, they are an ideal solution for providing a universal programmatic access to the Internet-a way for a program on one box to talk to any other program on any other box. Not only are they independent of the operating system, but also of the programs' internal implementations.

In concept, Web services and the Web share a lot of similarities. Web browsers allow people to access things on the Web using protocols like HTTP and HTML. With Web services, however, computers interact with one another directly, so a different set of protocols is needed.

XML, or Extensible Markup Language, is used to deliver the structured data to and from the disparate applications. It provides a universal data link that hides each program's internal code so that programs can communicate based on a protocol whose structure and rules they understand (behind the facade of a Web server, the XML message gets converted to a middleware request and the results converted back to XML for return to the requesting application).

A Web service makes a request for data using the Simple Object Access Protocol (SOAP), which is a lightweight XML based protocol for sending messages to and invoking methods on remote objects.

The third key protocol used in Web services is the Web Services Description Language (WSDL). Each Web services server maintains a WSDL file that acts as a directory to the available services on that server as well as of the rules for using each service. By retrieving the WSDL file through a SOAP query and understanding its contents through XML, the calling application is apprised of all the Web services available on that server and of how to request those services.

As an example, a company has a Web application that enables users to fill in and submit purchase orders using a browser. Using the Web services architecture, this system can be exposed as a Web service. A partner can then use the WSDL document to create an application that consumes this Web service (again using XML and SOAP as described by the WSDL document). This application would be integrated with its own order/inventory management system to automate the ordering process.





[ Next ]

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
-- Advertisement --

Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.

The many included activities and demos will make you a pro! Expert instructor help is a click away.

Click here to try a FREE demo course!!

-- Advertisement --

The Ultimate Notes Domino Training Experience - Amsterdam, 11-13 November
Get in-depth technical training that you can put to use on the job right away at THE VIEW's Admin2008 and Lotus Developer2008 Europe! One registration gets you into your choice of over 70 new and updated expert know-how sessions, one-on-one consultations, hands-on labs, and more.

See complete agendas and register by 10 October to save 495 euros!
Copyright © 1998-2008, ZATZ Publishing. All rights reserved worldwide.
Editor's Login