User Guide

Table Of Contents
885
CHAPTER 36
Using Web Services
Web services let you publish and consume remote application functionality over the Internet.
When you consume web services, you access remote functionality to perform an application task.
When you publish a web service, you let remote users access your application functionality to
build it into their own applications.
This chapter describes how to consume and publish web services.
Contents
Web services. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 885
Working with WSDL files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 888
Consuming web services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 891
Publishing web services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 898
Handling complex data types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 909
Troubleshooting SOAP requests and responses. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 914
Web services
Since its inception, the Internet has allowed people to access content stored on remote computers.
This content can be static, such as a document represented by an HTML file, or dynamic, such as
content returned from a Macromedia ColdFusion page or CGI script.
Web services let you access application functionality that someone created and made available on
a remote computer. With a web service, you can make a request to the remote application to
perform an action.
For example, you can request a stock quote, pass a text string to be translated, or request
information from a product catalog. The advantage of web services is that you do not have to
recreate application logic that someone else has already created and, therefore, you can build your
applications faster.