11.13. An Inquiry Example

11.13.1. Choosing Services That Implement a Specific Interface

Here's a sample application that searches for services implementing a specific interface and lets the user choose which service to invoke. This application uses the UDDI APIs directly by forming and sending SOAP messages.

The application is Web-based using ASP.NET. You can access this application on your server using the URL http://VBWSServer/VBWSBook/Chapter11/WeatherChooser.aspx. The first page, weatherchooser.aspx, sends a find_business message with a tModelBag that contains the tModelKey of the Weather service interface. To form the message, the application uses an XmlTextWriter and a StringWriter as shown in Listing 11.21. Then it uses an instance of ...

Get Real World XML Web Services: For VB and VB .NET Developers 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.