How Web Services Work

Microsoft has used web services to mimic RPC (remote procedure calls). You ask for an "object" from a web service, and what you get back provides the public interface to an object running on the web service's server. You can interact with that object, calling methods and examining or setting properties. In this model, web services allow an object on the server to expose program logic to clients over the Internet. Clients call exposed methods on the web service using standard Internet protocols.

Typically, both ends of the connection communicate using SOAP messages (see the sidebar "SOAP"), which consist of self-describing, text-based XML documents.[*]

[*] It is also possible to communicate via HTTP-GET or HTTP-POST requests.

Get Programming Visual Basic 2005 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.