Home > Store

Creating and Consuming Web Services in Visual Basic (paperback)

Register your product to gain access to bonus material or receive a coupon.

Creating and Consuming Web Services in Visual Basic (paperback)


  • Sorry, this book is no longer in print.
Not for Sale


  • Copyright 2002
  • Dimensions: 7-3/8" x 9-1/8"
  • Pages: 408
  • Edition: 1st
  • Book
  • ISBN-10: 0-321-70139-9
  • ISBN-13: 978-0-321-70139-8

Get on the fast track of what is becoming a required skill for software developers--the ability to create Web Services and clients that consume them. Web Services leverage standards such as XML, XSD, SOAP, and WSDL to enable interoperability across programming languages and platforms. They work well to integrate applications on an intranet and on the Internet. Visual Basic .NET, coupled with the .NET Framework, is an attractive environment for Web Services architecture because it provides for rapid development and easy maintenance.

This book explains each of the standard protocols needed for Web Service interaction on the client or server. These protocols include SOAP, Web Services Description Language (WSDL), and Universal Description Discovery and Integration (UDDI).

Creating and Consuming Web Services in Visual Basic® also includes

  • Information on how to shape SOAP messages and the data they contain
  • Explanations of how to create applications that consume Web Services
  • Detailed case studies that explore how to use Web Services to help solve real-world B2B and B2C problems
  • Thorough coverage of development concerns such as security and availability
  • Instructions for how to create and consume Web services in earlier versions of VB and convert legacy applications to a Web Services platform


Sample Content

Table of Contents

(NOTE: Each chapter concludes with Summary.)


Applications of Web Services.

What You Will Need.

Who Is This Book For?


1. Creating Your First Web Service.

The “Hello World” Operation.

Other Files in the Project.

Passing Complex Types.

Returning Arrays of Simple Types.

Returning Arrays of Structures.

2. Consuming Your Web Service.

Attaching a Web Reference.

Command-Line Interface Applications.

Graphical User Interface (GUI) Applications.

Web Applications.

Web Services Calling Other Web Services.

3. SOAP, WSDL, and UDDI Explained








Document Parts.

Supported Message Patterns.

SOAP Extensibility Elements.



Registering with UDDI.

Query Patterns.

4. Shaping the WSDL, XML, and SOAP Message.

Shaping the WSDL File.



message, portType, and binding.


Using SOAP Headers.

Changing the Location of WSDL Elements.

Creating a Custom SOAP Extension.

Custom SOAP Extension Basics.

An Example SOAP Extension.

Creating a Server Based on a WSDL File.

Using Visual Studio to Register Your SOAP Endpoint in UDDI.

5. Troubleshooting Web Services/Consumers.

Viewing SOAP Message Exchanges.

Debugging a Web Service at the Server.

Debugging a Web Service Remotely.

Debugging Web Services Under Load.

Items to Include in Your Test Plan.

A Simple Example.


6. Security Issues with Web Services.

Equipment Deployment.

Authenticating Users.

Application Level Authorization.

HTTP Basic and Digest Authentication.

X509 Client Certificates.

Guarding Data.

Tracking User Activity.

7. Looking at the “Abilities”.


Clustered Servers.

Multiple Deployment Locations.


Administrator Communication.


Stateless Web Service and Using a Web Farm.

Scalable Components.


Performance Monitor.

Deployment Packages.



I/O Bound.

Computation Intensive.

Memory Hog.

Long-Lived Web Method Calls.

8. Asynchronous Web Services.

Synchronous Versus Asynchronous Calls.

Design Pattern for Asynchronous Method Calls.

Calling a Web Service Asynchronously.

Using the Callback Function.

Using the WaitHandle Methods.

Handling Web Pages That Make Asynchronous Calls to WebMethods.

Server to Server Asynchronous Communications.

Server Web Service.

Client Web Service.

Console Application.

WinForm Application.

9. Stateful Services.

Benefits of Maintaining State: Performance and Scalability.

Improving Performance.

Enhancing Scalability.

Facilitating Web Farms.

Maintaining State with the Session Object.

ASP.NET Session State.

In-Process Session State.

Out-of-Process Session State.

Maintaining State with the Application Object.

Maintaining State with the Cache Object.

Custom State Management.

Managing State as a Web Service.

10. Microsoft SOAP SDK.

Using the SOAP Toolkit on the Server.

Generating the WSDL and WSML files.

Common Edits to the WSDL and WSML Files.

Deploying Your SOAP Web Service.

Using the SOAP Toolkit on the Client.

Using the High-Level Interface.

Using the Low-Level Interface.

11. Converting Legacy Applications to Web Services.

Adding Web Service Support to COM+ Applications.

Reusing an Existing COM Object Within a Web Service.

Migrating from Visual Basic 6 to Visual Basic .NET.


12. Business to Business XML Web Services.

Choosing the Right Technology.

Read-Only Access to Data.

Write-Only Access to Data.

Read/Write Access to Data.

Designing the Web Service.

Building the JLD Database.

Creating the Database Class.

Creating the SecurityToken Class.

Building the Web Service.

Building Elise's Emporium.

Creating the Database.

Building the Product List Page.

Determining Product Availability.

13. Business to Customer XML Web Services.

Designing the Database.

Designing the Application.

Referencing the External Web Service.

Creating the List Window.

Adding the List Window Code.

Designing the Stock Editing Window.

14. Platform Integration.

Assembling the Tools.

Building the Web Services.

Adding the Database Class.

Creating the Products Service.

Creating the Customers Service.

Creating the Orders Service.

Building the Mobile Application.

Creating the Main Menu.

Creating the Customer Viewer.

Creating the Order Viewer.

Creating the Product Catalog.

15. Portals.

Designing the Database.

Configuring the Application.

Adding the Business Objects.

Creating the Web User Controls.

Building the Web Pages.

Creating the Login Page.

Creating the Profile Editor.

Writing the Portal Page.

Building the Log Out Page.

16. Profiting From Your Web Services.

Creating Services that Fill a Need.

Decreasing Business Costs.

Revenue Models.

Flat-Fee Access.

Volume-Based Access Fee.

Creative Use of the Advertising Model.

A Middleman Model.

Marketing the Web Service.


Appendix A. Additional Resources.

XML General.

General .NET Information.

General Web Service Information.

SOAP/XML Protocol.








Sample Web Service.

Appendix B. Installing Visual InterDev.

Installing the Client Components.

Installing the Microsoft Visual InterDev Client.

Installing the Image Composer.

Installing the Music Producer.

Appendix C. Visual InterDev Architecture Components Overview.

Development Architecture.

Testing Architecture.

Deployment Architecture.

Index. 0672321564T06072002


Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership